ensure zombies don't burn to death, by losing equipment

This commit is contained in:
Ben 2016-04-03 18:29:13 +01:00
parent 40361acc9b
commit 7558bd01b7
2 changed files with 9 additions and 1 deletions

View File

@ -119,7 +119,8 @@ public class Cannon extends SiegeWeapon
return false;
}
if(_clans.hasTimer(player)) {
if(_clans.hasTimer(player))
{
UtilPlayer.message(player, F.main("Clans", "You cannot ride on a Cannon whilst on PvPTimer"));
return false;
}
@ -329,6 +330,7 @@ public class Cannon extends SiegeWeapon
addEntity(weapon, "WEAPON");
insert();
}

View File

@ -116,6 +116,12 @@ public class AttackEnemyObjective extends OrderedObjective<ClansMainTutorial>
for (Player player : getActivePlayers())
{
_shooters.get(player.getName()).forEach(shooter -> {
shooter.setHealth(shooter.getMaxHealth());
shooter.getEquipment().setItemInHand(new ItemStack(Material.BOW, 1));
shooter.getEquipment().setChestplate(new ItemStack(Material.GOLD_CHESTPLATE, 1));
shooter.getEquipment().setBoots(new ItemStack(Material.GOLD_BOOTS, 1));
shooter.getEquipment().setHelmet(new ItemStack(Material.GOLD_HELMET, 1));
if (player.getLocation().distance(shooter.getLocation()) > 16)
{