-
Notifications
You must be signed in to change notification settings - Fork 2
Official Extensions
DreamDevs edited this page Jan 21, 2024
·
4 revisions
This extension hooks with Vault API and allows to add or remove money from players. It may be useful when you want to reward players. You have to remember - Vault is an API and It isn't standalone plugin, It only hooks with other plugins, so be sure that you have something like Essentials or your own economy plugin.
This extension has one config file that contains three sections: messages, broadcast and chests.
- Messages section allows you to customize messages that are displayed to player, when he opens the chest (except Broadcast message, which is visible for all players),
- Broadcast section when enabled, every time someone finds (for example) 50 dollars, then message will appear to all players.
- Chests section this section requires chest id and values>: min-money-amount;max-money-amount;chance. They're all real numbers. Last argument has to be between 0 and 1, where 0 represents 0% and 1 represents 100%
This is default configuration file:
# 3 messages contains %MONEY% placeholder and last one also has %PLAYER% placeholder.
Messages:
Nothing-Found: '&7Sorry, but you found nothing...'
Money-Found: '&aYou found %MONEY%$ in this chest!'
Money-Lost: '&cYou lost %MONEY%$ in this chest!'
Broadcast-Found: '&6&l! &e%PLAYER% &afound &e%MONEY%!'
# Enable or disable this feature
# Min-Money-To-Display - This option sets the minimum amount of money that has to be found in the chest to display broadcast message.
Broadcast:
Use: true
Min-Money-To-Display: 50.0
# Pattern is simple:
# CHEST ID: MINIMUM:MAXIMUM:CHANCE
Chests:
default: 0.0;10.0;0.5
This extension prepares your server to basic functions of ChestPvP server. Start your adventure with items!