A simple cross-server rewards system
A plugin to add and redeem rewards across servers
This plugin uses MySQL as its storage, and MySQL ONLY.
This means that you need to have a MySQL database set up on
your server.
To add rewards to a player:
/rewardbridge add <player> <server> <material:amount | base64:<string>>
/rewardbridge encodehand <name>
alias: /rb
To claim any unclaimed rewards (Opens a custom GUI)
/rewards
I have a velocity proxy with servers named Lobby and SMP. The servers have different inventory sets.
My lobby server has the Crazycrates plugin installed. I want the prizes of
the crates to be sent to the SMP server. So I make the Crate prize run the
rewardbridge command instead of giving me an item.
When I open the crate in the lobby, all rewards get sent to my
reward backpack in the SMP server. All I have to do is go into
my SMP server and type /rewards to claim my winnings.
mysql:
host: localhost
port: 3306
database: rewards
username: root
password: password
# List all your servers here (these will become separate tables in your database)
server_names:
- smp
- creative
- lobby
# Name of THIS server
local_server_name: keysmp
messages:
reward_added: "&aAdded reward for &f%player% &ain &f%server%"
no_space: "&cNot enough inventory space!"
#Whether the player that claims his rewards via /rewards will get the "claimed" message below.
#Disabled by default because of message spam upon retrieving many items.
claimedmessage: false
#claimedmessage above must be true in order for this to work
claimed: "&aYou claimed your rewards!"
You can use this without a proxy setup, just input your server name into the config and you can still use the command normally. (This is to add a reward system without giving your players the items directly, to make them claim it manually)