- Tags
-
- Tags
- None
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:
CONFIGURATION:
PUBLIC API:
SRC: https://github.com/sergivb01/qFetch
Thank you! Please pm me with ideas for plugins!
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:

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
Thank you! Please pm me with ideas for plugins!