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:
parent
f7232b1a7f
commit
00bfad3b6b
|
|
@ -915,7 +915,7 @@ class PlayerEventHandler implements Listener
|
||||||
}
|
}
|
||||||
|
|
||||||
//when a player dies...
|
//when a player dies...
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
void onPlayerDeath(PlayerDeathEvent event)
|
void onPlayerDeath(PlayerDeathEvent event)
|
||||||
{
|
{
|
||||||
//FEATURE: prevent death message spam by implementing a "cooldown period" for death messages
|
//FEATURE: prevent death message spam by implementing a "cooldown period" for death messages
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user