Create a way to remove siege weapons for testing

This commit is contained in:
AlexTheCoder 2016-07-05 10:05:53 -04:00
parent cc7fc164bb
commit b409009069

View File

@ -3,6 +3,7 @@ package mineplex.game.clans.clans.siege.weapon;
import java.util.UUID;
import org.apache.commons.lang.Validate;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
@ -487,6 +488,12 @@ public abstract class SiegeWeapon implements Listener
protected void handleLeftClick(Player player)
{
if (player.getGameMode() == GameMode.CREATIVE && player.isSneaking())
{
removeHealth(getHealth());
return;
}
if (_lastLeft == -1)
{
_lastLeft = System.currentTimeMillis();