mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Add per-arena setting: show-death-messages
This commit is contained in:
parent
9b161cb1c2
commit
cf41a6add2
@ -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
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user