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

@ -38,3 +38,4 @@ use-scoreboards: true
isolated-chat: false isolated-chat: false
global-join-announce: 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); callKillEvent(player.getKiller(), player);
} }
arena.playerDeath(player); arena.playerDeath(player);
if (!arena.getSettings().getBoolean("show-death-messages", true)) {
event.setDeathMessage(null);
}
} else if (arena.inSpec(player)) { } else if (arena.inSpec(player)) {
event.getDrops().clear(); event.getDrops().clear();
event.setDroppedExp(0); event.setDroppedExp(0);