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 availableEvents min server online:0#How much online must be on the server in allowed worlds for the mode to workEvents 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 eventEvents title enable:true#Will the title be displayed when you win?Events title fade in time:10#In ticksEvents title stay time:40#In ticksEvents title fade out time:10#In ticksEvents 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 - CRAFTINGEvents 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 chatEvents chat scoreboard interval:30#If "false", then messages will be displayed in the chat every 30 secondsEvents 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:MONEYMoney reward 1 place:10000.0Items reward 1 place: [] #Set by commandCommand reward 1 place: []Drop mode 2 place:MONEYMoney reward 2 place:2500.0Items reward 2 place: [] #Set by commandCommand reward 2 place: []Drop mode 3 place:MONEYMoney reward 3 place:1000.0Items reward 3 place: [] #Set by commandCommand 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/16WOODMAN 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