diff --git a/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java b/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java index 9eae213a0..72186e7bb 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/pet/PetManager.java @@ -298,9 +298,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); } @@ -315,9 +315,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); @@ -330,9 +330,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); } @@ -352,9 +352,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); } } @@ -367,9 +367,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); } @@ -384,9 +384,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); }