Change kit helmet to skull.
This commit is contained in:
parent
bd63ff84e7
commit
e89785963a
@ -1 +1 @@
|
||||
[[{"location":"C:\\@Thanos\\Documents\\Minecraft\\Mineplex\\projects\\Mineplex\\Plugins\\Mineplex.Core","type":"PROJECT","hints":{"PROJECT_NAME":"Mineplex.Core"}},"ABSENT"],[{"location":"C:\\@Thanos\\Documents\\Minecraft\\Mineplex\\projects\\Mineplex\\Plugins\\Nautilus.Game.Arcade","type":"PROJECT","hints":{"PROJECT_NAME":"Nautilus.Game.Arcade"}},"ABSENT"],[{"location":"C:\\@Thanos\\Documents\\Minecraft\\Mineplex\\projects\\Mineplex\\Plugins\\Libraries\\craftbukkit.jar","type":"JAR","hints":{}},"ABSENT"]]
|
||||
[[{"location":"C:\\@Thanos\\Documents\\Minecraft\\Mineplex\\projects\\Mineplex\\Plugins\\Libraries\\craftbukkit.jar","type":"JAR","hints":{}},"ABSENT"],[{"location":"C:\\@Thanos\\Documents\\Minecraft\\Mineplex\\projects\\Mineplex\\Plugins\\Mineplex.Core.Common","type":"PROJECT","hints":{"PROJECT_NAME":"Mineplex.Core.Common"}},"ABSENT"]]
|
@ -119,6 +119,7 @@ public class DeathEffect
|
||||
}.runTaskLater(_plugin, 60L);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void spawnChickenHead(DeathEffectData data)
|
||||
{
|
||||
Location loc = data.getLocation();
|
||||
|
@ -8,7 +8,9 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.EntityEquipment;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.LeatherArmorMeta;
|
||||
import org.bukkit.inventory.meta.SkullMeta;
|
||||
|
||||
import mineplex.core.common.util.UtilSkull;
|
||||
import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.kit.Kit;
|
||||
import nautilus.game.arcade.kit.KitAvailability;
|
||||
@ -24,7 +26,7 @@ public class KitBawksFood extends Kit
|
||||
new String[] { "You must listen to Bawk Bawk." },
|
||||
new Perk[] { },
|
||||
EntityType.SKELETON,
|
||||
new ItemStack(Material.COOKED_CHICKEN)
|
||||
new ItemStack(Material.AIR)
|
||||
);
|
||||
}
|
||||
|
||||
@ -34,16 +36,22 @@ public class KitBawksFood extends Kit
|
||||
// Items may be added manually when a challenge starts.
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void SpawnCustom(LivingEntity ent)
|
||||
{
|
||||
EntityEquipment equipment = ent.getEquipment();
|
||||
|
||||
ItemStack helmet = new ItemStack(Material.LEATHER_HELMET);
|
||||
LeatherArmorMeta helmetMeta = (LeatherArmorMeta) helmet.getItemMeta();
|
||||
helmetMeta.setColor(Color.WHITE);
|
||||
helmetMeta.spigot().setUnbreakable(true);
|
||||
helmet.setItemMeta(helmetMeta);
|
||||
ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 0, (byte) 3);
|
||||
SkullMeta meta = (SkullMeta) skull.getItemMeta();
|
||||
meta.setOwner(UtilSkull.getPlayerHeadName(EntityType.CHICKEN));
|
||||
skull.setItemMeta(meta);
|
||||
|
||||
// ItemStack helmet = new ItemStack(Material.LEATHER_HELMET);
|
||||
// LeatherArmorMeta helmetMeta = (LeatherArmorMeta) helmet.getItemMeta();
|
||||
// helmetMeta.setColor(Color.WHITE);
|
||||
// helmetMeta.spigot().setUnbreakable(true);
|
||||
// helmet.setItemMeta(helmetMeta);
|
||||
|
||||
ItemStack chestplate = new ItemStack(Material.LEATHER_CHESTPLATE);
|
||||
LeatherArmorMeta chestplateMeta = (LeatherArmorMeta) chestplate.getItemMeta();
|
||||
@ -63,7 +71,7 @@ public class KitBawksFood extends Kit
|
||||
bootsMeta.spigot().setUnbreakable(true);
|
||||
boots.setItemMeta(bootsMeta);
|
||||
|
||||
equipment.setHelmet(helmet);
|
||||
equipment.setHelmet(skull);
|
||||
equipment.setChestplate(chestplate);
|
||||
equipment.setLeggings(leggings);
|
||||
equipment.setBoots(boots);
|
||||
|
Loading…
Reference in New Issue
Block a user