generated from Rosewood-Development/RoseTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Files
Robin edited this page Jan 21, 2024
·
1 revision
The plugin will load any configuration files that are located within the /vouchers/
folder in your plugin. This is to allow you to keep all your vouchers carefully organized.
Here are some examples on how you can configure the plugin
Here is a very basic example for a money pouch voucher
small-money-pouch:
item: # The item that will be given to the player
material: SUNFLOWER
name: '&eSmall Money Pouch'
lore:
- ''
- '&f| &7This voucher will give you'
- '&f| &7a small amount of money!'
- '&f| &7[1,000 - 5,000]'
- ''
glow: true
commands: # The commands that will be executed if the player redeems the voucher
- '[console] eco give %player_name% %rng_1000,5000%'
Here is a more advanced example for a temporary VIP rank voucher
vip-rank:
item: # The item that will be given to the player
material: DIAMOND
name: '&#b00b1eVIP Rank'
lore:
- ''
- '&f| &7This voucher will give you'
- '&f| &7the VIP rank for 1 hour!'
- ''
glow: true
requirement-min: 1 # The amount of requirements needed to meet to redeem the voucher
cooldown: 1h # The cooldown of the voucher (1h = 1 hour, 1m = 1 minute, 1s = 1 second)
on-cooldown: # The commands that will be executed if the player is on cooldown
- '[message] &cYou can use this again in %cooldown%!'
deny-commands: # If the player does not meet the requirements, these commands will be executed
- '[message] &cYou already have the VIP Rank!'
requirements:
no-vip: # The name of the requirement
type: '!permission' # The type of requirement
input: 'groups.vip' # The input of the requirement
commands: # The commands that will be executed if the player meets the requirements
- '[console] lp user %player_name% parent addtemp vip 1h'
- '[message] &aYou now have VIP Rank for an hour!'