1. Download this Plugin and add it to your plugins folder, make sure you also have UltraPrisonCore in there as well.
2. Add the following text to your UltraPrisonCore enchantments.yml (make sure it is under the
enchants: section):
3. There are 2 placeholders that can be used with both the messages and broadcast
- %gems% - returns the amount of gems given to the players
- %player% - returns the player that triggered the enchantment
Code (YAML):
'126':
RawName
: gemsfinderglobal
#Raw Name, can be used for commands
Name
: '&a&lGems Giveaway'
# Name that appears in the GUI Menu and On the Pickaxe
Material
: EMERALD
# Item that appears in the GUI Menu
Enabled
: true
# If the Enchantment is Enabled
InGuiSlot
: 5
# Slot the Item is in in the GUI (0-53)
Increase-Cost-by
: 100
# Amount of money the enchantment goes up by per level
Max
: 100
# Max amount of levels
Chance
: 50.0
# Chance of the enchantment occuring
MaxAmount
: 500
# Maximum amount of gems that can be received per player
MinAmount
: 100
# Minimum amount of gems that can be received per player
Cost
: 100
# Base Cost
MessageEnabled
: true
# If the broadcast and player message are enbaled
Message
:
"&b&lPrisons &8&l> &aHey, %player%! You just gave everyone on the server
%gems% Gems!"
# Message sent to the player who triggered the enchantment
Broadcast
:
"&b&lPrisons &8&l> &b&l%player% &fhas just set off the &b&lGems Giveaway
&fenchantment, giving everyone online &a&l%gems% Gems! Make sure to say thanks!"
# Broadcast sent across the server when the enchantment is enabled
Description
:
# Description in the GUI
- '&7Gives gems while mining'
Refund
:
# If the Refund Section is Enabled
Enabled
: true
InGuiSlot
: 5