mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Remove a debug message in utils
This commit is contained in:
1 parent
c611e33172
commit
54150ae056
3 files changed
+5
-5
No files matched your search
@@ -117,7 +117,7 @@ public class BlockListener implements Listener {
|
||||
HopperMinecart hm = (HopperMinecart) event.getDestination().getHolder();
|
||||
Location minecartLoc = new Location(hm.getWorld(), hm.getLocation().getBlockX(), hm.getLocation().getBlockY()+1, hm.getLocation().getBlockZ());
|
||||
if(shop.getShop(minecartLoc)!=null)
|
||||
event.setCancelled(true);
|
||||
event.setCancelled(true);{
|
||||
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);
|
||||
hm.remove();
|
||||
@@ -127,17 +127,18 @@ public class BlockListener implements Listener {
|
||||
if (event.getDestination().getHolder() instanceof Hopper) {
|
||||
Hopper h = (Hopper) event.getDestination().getHolder();
|
||||
Location minecartLoc = new Location(h.getWorld(), h.getLocation().getBlockX(), h.getLocation().getBlockY()+1, h.getLocation().getBlockZ());
|
||||
if(shop.getShop(minecartLoc)!=null)
|
||||
if(shop.getShop(minecartLoc)!=null) {
|
||||
event.setCancelled(true);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//Protect Entity pickup shop
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onMobChangeBlock(EntityChangeBlockEvent event) {
|
||||
|
||||
if ((event.getEntity() instanceof Enderman) ||
|
||||
(event.getEntity() instanceof Wither) ||
|
||||
(event.getEntity() instanceof Zombie) ||
|
||||
|
||||
@@ -285,7 +285,6 @@ public class Util {
|
||||
item.addEnchantment(ench, level);
|
||||
}
|
||||
}
|
||||
Bukkit.getServer().broadcastMessage("´¥·¢makeItem");
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user