Skip to content

Commit

Permalink
remove death message in lobby (MULTIARENA only) and in game (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicegamer7 authored Feb 20, 2022
1 parent 705edfd commit 3b4a81d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,12 @@ public void onDamageByEntity(EntityDamageByEntityEvent e) {

@EventHandler
public void onDeath(PlayerDeathEvent e) {
e.setDeathMessage(null);
Player victim = e.getEntity(), killer = e.getEntity().getKiller();
ITeam killersTeam = null;
IArena a = Arena.getArenaByPlayer(victim);
if ((BedWars.getServerType() == ServerType.MULTIARENA && BedWars.getLobbyWorld().equals(e.getEntity().getWorld().getName())) || a != null) {
e.setDeathMessage(null);
}
if (a != null) {
if (a.isSpectator(victim)) {
victim.spigot().respawn();
Expand Down

0 comments on commit 3b4a81d

Please sign in to comment.