Add per-arena setting: show-death-messages

This commit is contained in:
garbagemule 2014-01-22 13:59:17 +01:00
parent 9b161cb1c2
commit cf41a6add2
2 changed files with 5 additions and 1 deletions

View File

@ -37,4 +37,5 @@ display-timer-as-level: false
use-scoreboards: true
isolated-chat: false
global-join-announce: false
global-end-announce: false
global-end-announce: false
show-death-messages: true

View File

@ -440,6 +440,9 @@ public class ArenaListener
callKillEvent(player.getKiller(), player);
}
arena.playerDeath(player);
if (!arena.getSettings().getBoolean("show-death-messages", true)) {
event.setDeathMessage(null);
}
} else if (arena.inSpec(player)) {
event.getDrops().clear();
event.setDroppedExp(0);