From 379788b7c3d8452cf43fbbf5ebc36bed80d87b50 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 22 Nov 2021 16:44:43 +0100 Subject: [PATCH] Update WorldListener.java --- .../java/rip/tilly/bedwars/listeners/game/WorldListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/rip/tilly/bedwars/listeners/game/WorldListener.java b/src/main/java/rip/tilly/bedwars/listeners/game/WorldListener.java index 098554c..738aaf9 100644 --- a/src/main/java/rip/tilly/bedwars/listeners/game/WorldListener.java +++ b/src/main/java/rip/tilly/bedwars/listeners/game/WorldListener.java @@ -71,6 +71,9 @@ public class WorldListener implements Listener { game.broadcastWithSound(playerTeam.getPlayerTeam().getChatColor() + player.getName() + " &ehas destroyed " + opposingTeam.getPlayerTeam().getChatColor() + opposingTeam.getPlayerTeam().getName() + "'s &ebed!", Sound.ENDERDRAGON_GROWL); game.broadcastSound(Sound.ENDERDRAGON_GROWL); + playerData.setGameBedsDestroyed(playerData.getGameBedsDestroyed() + 1); + playerData.setBedsDestroyed(playerData.getBedsDestroyed() + 1); + block.getDrops().clear(); Location location = block.getLocation(); World world = location.getWorld();