Compatibility
Minecraft: Java Edition
1.21.10
1.21–1.21.8
Platforms
Creators
Details
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.
Commands
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
To add custom items:
- Hold the item in hand.
- Type /rewardbridge encodehand <name>
- The base64 string of the item will be sent to a new file called encoded-items.yml located in your plugins\RewardBridge folder
- Copy this base64 string and paste it to the command.
- Example: /rewardbridge add Jolly SMP base64:<PasteItHere>
- When Jolly joins the SMP server and types /rewards, he will see the items in a custom GUI.
Practical use case:
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.
Installation Steps
- Add a database in your MySQL server. (you can name it whatever you want)
- Download the latest release and paste it into your plugins folder.
- Start the server once to generate the config file.
- Setup the config with your database credentials and other settings and messages you would like.
Sample Config
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!"
Note:
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)



