From a084f6390aea24a3cbf7aa502353d599bb324b96 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:14:31 -0500 Subject: [PATCH] Fix no deathmessage if player is killed by charged respawn anchor after player joining server --- .../dev/mrshawn/deathmessages/listeners/InteractEvent.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/Core/src/main/java/dev/mrshawn/deathmessages/listeners/InteractEvent.java b/Core/src/main/java/dev/mrshawn/deathmessages/listeners/InteractEvent.java index 9b79a85a..bb5313a5 100644 --- a/Core/src/main/java/dev/mrshawn/deathmessages/listeners/InteractEvent.java +++ b/Core/src/main/java/dev/mrshawn/deathmessages/listeners/InteractEvent.java @@ -51,9 +51,6 @@ public void onInteract(PlayerInteractEvent e) { } else if (DeathMessages.majorVersion() >= 16) { if (!getBlock.getWorld().getEnvironment().equals(World.Environment.NETHER)) { if (getBlock.getType().equals(Material.RESPAWN_ANCHOR)) { - RespawnAnchor anchor = (RespawnAnchor) getBlock.getBlockData(); - if (anchor.getCharges() != anchor.getMaximumCharges() && !e.getPlayer().getInventory().getItemInMainHand().getType().equals(Material.GLOWSTONE)) - return; List effected = new ArrayList<>(); for (Player p : e.getClickedBlock().getWorld().getPlayers()) { Optional getPlayer = PlayerManager.getPlayer(p);