This plugin contains a custom enchantment effect to give out a random amount of tokens to all online players!
NOTE: This is a polymorphic custom enchantment! You can define multiple similar custom enchantments such as Blessing, Charity, Experiential, etc with this custom enchant!
If you already purchased Blessing and/or Charity enchantments and would like to transfer your licenses to this enchant, please contact us at vk2gpz.freshdesk.com.
Installation:
Just install TE-GenerousEnchant.jar in TokenEnchant/enchants folder. Then you can either "restart the server" or "reload the plugin (not /te reload)". GenerousEnchantment will automatically be loaded into TokenEnchant framework.
Configuration:
Once you restart the server, Generous_config.yml will be auto-generated in your enchants folder. You can customize this file to suit your server's needs.
Enchants:
Blessing: # give out tokens to online players.
description: "Give out random amount of tokens to all online players!"
event_map:
BlockBreakEvent: "NORMAL"
price: 10
max: 5
recipient_needs: none # if this option is true, the recipient must have the same enchant (inhand, any, none).
command: "te add"
reward_message: "&aYou're blessed by &e%player% &aand received &e%amount% &atokens!"
rewards:
1:
min: 5
max: 10
2:
min: 10
max: 15
3:
min: 20
max: 25
4:
min: 30
max: 35
5:
min: 40
max: 45
occurrence: 0.04 # 4% chance of occurrence at the max level.
Charity: # give out tokens to online players.
description: "Give out random amount of $ to all online players!"
event_map:
BlockBreakEvent: "NORMAL"
price: 10
max: 5
recipient_needs: none # if this option is true, the recipient must have the same enchant (inhand, any, none).
command: "eco give"
reward_message: "&aYou're blessed by &e%player% &aand received $&e%amount% &a!"
rewards:
1:
min: 5
max: 10
2:
min: 10
max: 15
3:
min: 20
max: 25
4:
min: 30
max: 35
5:
min: 40
max: 45
occurrence: 0.04 # 4% chance of occurrence at the max level.
Experiential: # give out tokens to online players.
description: "Give out random exp to all online players!"
event_map:
BlockBreakEvent: "NORMAL"
price: 10
max: 5
recipient_needs: none # if this option is true, the recipient must have the same enchant (inhand, any, none).
command: "exp give"
reward_message: "&aYou're blessed by &e%player% &aand received &e%amount% &aexp!"
rewards:
1:
min: 5
max: 10
2:
min: 10
max: 15
3:
min: 20
max: 25
4:
min: 30
max: 35
5:
min: 40
max: 45
occurrence: 0.04 # 4% chance of occurrence at the max level.