diff --git a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/arena/spectator/SpectatorListeners.java b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/arena/spectator/SpectatorListeners.java index 2e8b09bc8..3d1f0af34 100644 --- a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/arena/spectator/SpectatorListeners.java +++ b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/arena/spectator/SpectatorListeners.java @@ -72,12 +72,11 @@ public void onSpectatorItemInteract(PlayerInteractEvent e) { } @EventHandler - public void onSpectatorBlockInteract(PlayerInteractEvent e) { + public void onSpectatorInteract(PlayerInteractEvent e) { if (e.getClickedBlock() == null) return; if (!BedWars.getAPI().getArenaUtil().isSpectating(e.getPlayer())) return; - if (e.getClickedBlock().getType().toString().contains("DOOR")) // Disable spectator interact - e.setCancelled(true); + e.setCancelled(true); } @EventHandler