Adds an item to your hand as a prize when you win. You need to specify the drop chance. Be sure to change the drop type in the config for this mode. You can set rewards for 1, 2 and 3 places.
/events additem <place: 1-3> <chance>
Quick restart
/events trigger
Quick start of spefic event
/events trigger <event>
Finish the event right now
/events stop
Permissions
You must use a permission manager like LuckPerms which supports .* permissions notation. Bukkit doesn't support this notation by default!
For what
Permission
Gives all mode access to the player
fun.events.*
Gives the player permission to restart this mode
fun.events.trigger
Main config (config.yml)
Events enable: true #If "false", this mode will not be available
Events min server online: 0 #How much online must be on the server in allowed worlds for the mode to work
Events time for event: 300 #In ticks. How long will the event last?
Events cooldown: 300 #In ticks. How long will it take for the next event to start?
Events chosen randomly: false #If the value is "false", then they will be taken in order from the list "Events list". If "true", then in random order.
Events sound start: 'UI_TOAST_IN' #What sound will be made at the start of the event?
Events give items: false #Give out items specified by the admin at the start of the event
Events title enable: true #Will the title be displayed when you win?
Events title fade in time: 10 #In ticks
Events title stay time: 40 #In ticks
Events title fade out time: 10 #In ticks
Events fireworks: #Victory animations. You can set 1 and more animations. Or set [] to disable
- 'SALUT_24'
Events list: #List of all possible events
- FARMER
- WOODMAN
- DAMAGE
- DEATH
- EGG_SHELL
- SHEAR
- BREED
- SHOOTING
- FISHING
- JUMPING
- KILLING_PLAYERS
- KILLING_MOBS
- DIGGING_ORE
- CRAFTING
Events worlds: #As list of world names. In which worlds will the mode be availabl
- 'world'
Events scoreboards enable: true #If "false", then messages will be displayed in the chat
Events chat scoreboard interval: 30 #If "false", then messages will be displayed in the chat every 30 seconds
Events chat scoreboard send message when get point: true #Send a message when a player gets a point
Mode config (events.yml)
Event rewards:
Drop mode 1 place: MONEY
Money reward 1 place: 10000.0
Items reward 1 place: [] #Set by command
Command reward 1 place: []
Drop mode 2 place: MONEY
Money reward 2 place: 2500.0
Items reward 2 place: [] #Set by command
Command reward 2 place: []
Drop mode 3 place: MONEY
Money reward 3 place: 1000.0
Items reward 3 place: [] #Set by command
Command reward 3 place: []
# ╔═════════════════════════════════════════════════════════════════════════════╗
# ║ HERE YOU CAN PUT ITEMS, WHICH WILL BE GIVEN TO PLAYERS WHEN EVENT STARTED ║
# ║ MATERIAL/AMOUNT ║
# ╚═════════════════════════════════════════════════════════════════════════════╝
FARMER starting items:
- IRON_HOE/1
- WHEAT_SEEDS/16
WOODMAN starting items: []
DAMAGE starting items: []
DEATH starting items: []
EGG_SHELL starting items: []
SHEAR starting items: []
BREED starting items: []
SHOOTING starting items: []
FISHING starting items: []
JUMPING starting items: []
KILLING_PLAYERS starting items: []
KILLING_MOBS starting items: []
DIGGING_ORE starting items: []
CRAFTING starting items: []
You can change the type of reward. Just change it in the config above. Here are what they are:
1) MONEY - Gives only money
2) ITEM - Gives only one item with some chance
3) ALLITEMS - Gives all items in list
4) COMMAND - Executes commands. Example:
Command reward:
- eco give %player% 1000
- say Cool