MC-Market is now BuiltByBit. Read more

[Free] qFetch - Fetch data from your servers! ✅

Status
This thread has been locked.

sergivb01

sergivb01
Premium
Reputation
3
Posts
62
Reactions
69
Resources
3
DESCRIPTION:
This open-src plugin allow you to fetch data from other servers via Redis. It has a simple but rich public API (example below). A config is available with simple but useful settings. I coded this because I saw someone who did it on MCM recently but I didn't liked how he did it and the price he was selling it, so I decided to do it by myself and publish it for free. Enjoy it!

COMMAND:
/qfetch <server> - Perm: qfetch.command


SCREENSHOT:
dzkqSNx2SDqS_ZhYJjVBng.png


CONFIGURATION:
Code:
redis:
  host: "localhost"
  port: 6379
  timeout: 2000
  auth:
    enabled: false
    password: ""

#delay in seconds
delay: 5

#server name
server-name: "hcf"

PUBLIC API:
Code:
    /**
    * Returns whether the requested server exists in database.
    * @param server Server name
     * @return Does the server exist
     */
    ServerSyncAPI.serverDataExists(serverName);

    /**
     * Returns data from requested server
     * @param server Server name
     * @return Data from requested server
     */
    ServerSyncAPI.getServerData(serverName);

SRC: https://github.com/sergivb01/qFetch
JAR: https://void.cat/#6871cbd58685b74e0ab0cddf5389b4ada211cc6b
RESOURCE: http://www.mc-market.org/resources/5818/

Thank you! Please pm me with ideas for plugins!
 
Last edited:
ReliableSite: Dedicated Servers

sergivb01

sergivb01
Premium
Reputation
3
Posts
62
Reactions
69
Resources
3
Nice, also, you can also make this like Kohi did it in the past. I am sure you will not believe it but... They used MOTDs for the gamestates, spectators, alive players, etc.
I used that when I didn't know what redis was.
 

DaddyImPregnant

Full time failure
Supreme
Reputation
56
Posts
1,473
Reactions
989
Resources
6
Thanks, I was about to buy qSync
 
Status
This thread has been locked.
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.