Make anti-death-message spam also silence death messages from other plugins

Via changing priority of the onPlayerDeath listener from lowest to highest.
This commit is contained in:
RoboMWM 2016-01-21 16:12:47 -08:00
parent f7232b1a7f
commit 00bfad3b6b

View File

@ -915,7 +915,7 @@ class PlayerEventHandler implements Listener
}
//when a player dies...
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
void onPlayerDeath(PlayerDeathEvent event)
{
//FEATURE: prevent death message spam by implementing a "cooldown period" for death messages