Fix the message spam

This commit is contained in:
Acrobot 2013-12-07 18:31:25 +01:00
parent 387961d242
commit 6d601fd2bf
1 changed files with 4 additions and 0 deletions

View File

@ -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);