diff --git a/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java b/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java index cf5dda656..a694c78f9 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java @@ -271,7 +271,7 @@ public class PetManager extends MiniClientPlugin //Named Pet if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0) { - //pet.setCustomNameVisible(true); + pet.setCustomNameVisible(true); pet.setCustomName(Get(player).getPets().get(petType)); } @@ -300,9 +300,9 @@ public class PetManager extends MiniClientPlugin DisguiseGuardian disguise = new DisguiseGuardian(pet); - if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0) + if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0) { - disguise.setName(Get(player).getPets().get(entityType)); + disguise.setName(Get(player).getPets().get(petType)); disguise.setCustomNameVisible(true); } @@ -317,9 +317,9 @@ public class PetManager extends MiniClientPlugin Zombie zombie = pet.getWorld().spawn(pet.getLocation(), Zombie.class); zombie.setBaby(true); zombie.getEquipment().setHelmet(new ItemStack(Material.PUMPKIN)); - if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0) + if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0) { - zombie.setCustomName(Get(player).getPets().get(entityType)); + zombie.setCustomName(Get(player).getPets().get(petType)); zombie.setCustomNameVisible(true); } disguise.getEntity().getBukkitEntity().setPassenger(zombie); @@ -332,9 +332,9 @@ public class PetManager extends MiniClientPlugin disguiseZombie.setChestplate(new ItemStack(Material.BANNER)); disguiseZombie.setHeldItem(new ItemStack(Material.WOOD_HOE)); - if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0) + if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0) { - disguiseZombie.setName(Get(player).getPets().get(entityType)); + disguiseZombie.setName(Get(player).getPets().get(petType)); disguiseZombie.setCustomNameVisible(true); } @@ -354,9 +354,9 @@ public class PetManager extends MiniClientPlugin UtilEnt.silence(zombie, true); - if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0) + if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0) { - zombie.setCustomName(Get(player).getPets().get(entityType)); + zombie.setCustomName(Get(player).getPets().get(petType)); zombie.setCustomNameVisible(true); } } @@ -369,9 +369,9 @@ public class PetManager extends MiniClientPlugin disguiseVillager.setBaby(); disguiseVillager.setHeldItem(new ItemStack(Material.BOW)); - if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0) + if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0) { - disguiseVillager.setName(Get(player).getPets().get(entityType)); + disguiseVillager.setName(Get(player).getPets().get(petType)); disguiseVillager.setCustomNameVisible(true); } @@ -386,9 +386,9 @@ public class PetManager extends MiniClientPlugin UtilEnt.silence(zombie, true); - if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0) + if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0) { - zombie.setCustomName(Get(player).getPets().get(entityType)); + zombie.setCustomName(Get(player).getPets().get(petType)); zombie.setCustomNameVisible(true); }