Fix spam issues

Former-commit-id: 491a8e3123e314db46d3d1b47c36a580c1a0dc24
This commit is contained in:
Ghost_chu committed 2018-07-31 14:12:46 +08:00
1 parent 9e514b6bb1
commit 63cd598892
1 file changed
+4 -3
@@ -127,9 +127,10 @@ public class BlockListener implements Listener {
return;
}
event.setCancelled(true);
h.setType(Material.AIR);
plugin.getLogger().warning("[Exploit Alert] a HopperMinecart tried to move the item of "+shop);
Util.sendMessageToOps(ChatColor.RED+"[QuickShop][Exploit alert] A HopperMinecart tried to move the item of "+shop);
Block removeHopper=(Block)h;
removeHopper.setType(Material.AIR);
plugin.getLogger().warning("[Exploit Alert] a Hopper tried to move the item of "+shop);
Util.sendMessageToOps(ChatColor.RED+"[QuickShop][Exploit alert] A Hopper tried to move the item of "+shop);
}
}
}