Two new events have been added and a bug has been fixed.
Added events such as: - BLOCKS_PLACE - BLOCKS_BREAK
Code (YAML):
Events:
"breakEvent":
type: BLOCKS_BREAK
interval: 108000
# duration of the event in seconds (3 hours) cooldown: 216000
#In seconds is 6 hours #material: DIAMOND_ORE # The block that will be broken, can you just don't put anything, and it will be any block actions-start:
- 'message: %prefix% &fThe player who breaks the most blocks.' - 'message: &fwill earn 2 items of hearts. &c
(!
)'
- sound:ENTITY_PLAYER_LEVELUP:1:1
actions-end:
- 'message: %prefix% &fThe winner player is &a%insanehearts_eventbreak_winner;breakEvent%.' - 'message: &fhas won 2 items of hearts &c
(!
).'
- sound:ENTITY_PLAYER_LEVELUP:1:1
rewards: - heart_item:item-normal;2
- 'title: &a&l + 2:&f'
- sound:ENTITY_PLAYER_LEVELUP:1:1
"placeEvent":
type: BLOCKS_PLACE
interval: 108000
# duration of the event in seconds (3 hours) cooldown: 216000
#In seconds is 6 hours #material: DIAMOND_ORE # The block that will be placed, can you just don't put anything, and it will be any block actions-start:
- 'message: %prefix% &fThe player who places the most blocks.' - 'message: &fwill earn 2 items of hearts. &c
(!
)'
- sound:ENTITY_PLAYER_LEVELUP:1:1
actions-end:
- 'message: %prefix% &fThe winner player is &a%insanehearts_eventplace_winner;placeEvent%.' - 'message: &fhas won 2 items of hearts &c
(!
).'
- sound:ENTITY_PLAYER_LEVELUP:1:1
rewards: - heart_item:item-normal;2
- 'title: &a&l + 2:&f'
- sound:ENTITY_PLAYER_LEVELUP:1:1
fixed an error when starting events if they were not started and no player was active on the server