Create a way to remove siege weapons for testing
This commit is contained in:
parent
cc7fc164bb
commit
b409009069
@ -3,6 +3,7 @@ package mineplex.game.clans.clans.siege.weapon;
|
|||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.apache.commons.lang.Validate;
|
import org.apache.commons.lang.Validate;
|
||||||
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
@ -487,6 +488,12 @@ public abstract class SiegeWeapon implements Listener
|
|||||||
|
|
||||||
protected void handleLeftClick(Player player)
|
protected void handleLeftClick(Player player)
|
||||||
{
|
{
|
||||||
|
if (player.getGameMode() == GameMode.CREATIVE && player.isSneaking())
|
||||||
|
{
|
||||||
|
removeHealth(getHealth());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_lastLeft == -1)
|
if (_lastLeft == -1)
|
||||||
{
|
{
|
||||||
_lastLeft = System.currentTimeMillis();
|
_lastLeft = System.currentTimeMillis();
|
||||||
|
Loading…
Reference in New Issue
Block a user