From 6d601fd2bf92c1be2fcd9909b4a30ddbcbea4dd9 Mon Sep 17 00:00:00 2001 From: Acrobot Date: Sat, 7 Dec 2013 18:31:25 +0100 Subject: [PATCH] Fix the message spam --- .../ChestShop/Listeners/ShopRemoval/ShopRemovalLogger.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/ShopRemoval/ShopRemovalLogger.java b/src/main/java/com/Acrobot/ChestShop/Listeners/ShopRemoval/ShopRemovalLogger.java index 50bfae5..2e4eeba 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/ShopRemoval/ShopRemovalLogger.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/ShopRemoval/ShopRemovalLogger.java @@ -18,6 +18,10 @@ public class ShopRemovalLogger implements Listener { @EventHandler(priority = EventPriority.MONITOR) public static void onShopRemoval(final ShopDestroyedEvent event) { + if (event.getDestroyer() != null) { + return; + } + ChestShop.getBukkitServer().getScheduler().runTaskAsynchronously(ChestShop.getPlugin(), new Runnable() { @Override public void run() { String shopOwner = event.getSign().getLine(NAME_LINE);