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
Events have been added to improve the player's experience; events such as
PLAYER_HUNT: the server will search for a player either randomly or by their number of hearts for players to kill. PLAYER_DEATHS: the player with the most kills in a period of time will receive rewards. PLAYER_KILLS: the player who kills the most players in a period of time will receive rewards.
Different features such as: “Auction”, “messages”, “economies” have been separated in different configuration files for a better understanding of the complete plugin configuration.
A folder called “messages” has been added to contain different translations to some languages, for now the Spanish one has been added.
Fixed some bugs with the heart objects, due to a bug in the configuration and removed the code of the reinforced hearts as it caused a major failure in the mathematics of the hearts, will not be added until the update 1.5
Hardened cores have been added and performance has been improved a bit, (the load each time a transaction is made has been decreased but now everything is loaded with the /ih reload command which can increase resource usage if this command is abused).