Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Fix spam issues
Browse files Browse the repository at this point in the history
Former-commit-id: 491a8e3
  • Loading branch information
Ghost-chu committed Jul 31, 2018
1 parent 9e514b6 commit 63cd598
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ public void onInventoryMove(InventoryMoveItemEvent event){
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);
}
}
}
Expand Down

0 comments on commit 63cd598

Please sign in to comment.