Skip to content

Commit

Permalink
remove death message in lobby (MULTIARENA only) and in game (andrei10…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicegamer7 authored and Cubixmeister committed Apr 6, 2022
1 parent a0acbc9 commit 7e5bb7b
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 7e5bb7b

Please sign in to comment.