Remove the debug in hope that it magically lets the build not fail

This commit is contained in:
ArcticZeroo 2017-10-29 12:32:39 -04:00 committed by Alexander Meech
parent 530e7c116b
commit d045dbbf9b
1 changed files with 0 additions and 11 deletions

View File

@ -115,35 +115,26 @@ public abstract class ItemUsable extends Item implements IThrown
@EventHandler
public void Throw(PlayerInteractEvent event)
{
Bukkit.broadcastMessage("Throwing an ItemUsable (" + _itemName + ")");
if (_throwAction == null)
Bukkit.broadcastMessage("Action is null");
return;
Player player = event.getPlayer();
if (((CraftPlayer)player).getHandle().spectating)
Bukkit.broadcastMessage("Player is spectating");
return;
if (!UtilGear.isMat(player.getItemInHand(), GetType()))
Bukkit.broadcastMessage("Wrong material type");
return;
if (!UtilItem.getDisplayName(player.getItemInHand()).equals(_itemName))
Bukkit.broadcastMessage("Wrong item name");
return;
if (!UtilEvent.isAction(event, _throwAction))
Bukkit.broadcastMessage("Throw action is not an action");
return;
if (UtilBlock.usable(event.getClickedBlock()))
Bukkit.broadcastMessage("Clicked block is not usable");
return;
Bukkit.broadcastMessage("Use is valid, now checking trigger/cooldown");
event.setCancelled(true);
//Check Allowed
@ -151,11 +142,9 @@ public abstract class ItemUsable extends Item implements IThrown
Bukkit.getServer().getPluginManager().callEvent(trigger);
if (trigger.IsCancelled())
Bukkit.broadcastMessage("Trigger was cancelled");
return;
if (!EnergyRecharge(player, GetName(), _throwEnergy, _throwDelay))
Bukkit.broadcastMessage("On cooldown");
return;
if (_throwStock)