▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/RewardBridge
RewardBridge

RewardBridge

A simple cross-server rewards system

18
1

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:

  1. Hold the item in hand.
  2. Type /rewardbridge encodehand
  3. The base64 string of the item will be sent to a new file called encoded-items.yml located in your plugins\RewardBridge folder
  4. Copy this base64 string and paste it to the command.
  5. Example: /rewardbridge add Jolly SMP base64:
  6. 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

  1. Add a database in your MySQL server. (you can name it whatever you want)
  2. Download the latest release and paste it into your plugins folder.
  3. Start the server once to generate the config file.
  4. 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)

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:5 месяцев назад
Обновлён:5 месяцев назад
Главная