Program: 187550
Project: 187550
Buggy source:
public boolean onCommand(CommandSender sender,Command command,String label,String[] args){
  if (sender instanceof Player) {
    Player petOwner=(Player)sender;
    if (MyPetList.hasMyPet(petOwner)) {
      MyPet myPet=MyPetList.getMyPet(petOwner);
      if (!MyPetPermissions.has(petOwner,"String_Node_Str")) {
        return true;
      }
      if (myPet.getStatus() == PetState.Despawned) {
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")).replace("String_Node_Str",myPet.petName));
        return true;
      }
 else       if (myPet.getStatus() == PetState.Dead) {
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str").replace("String_Node_Str",myPet.petName).replace("String_Node_Str","String_Node_Str" + myPet.respawnTime)));
        return true;
      }
      if (args.length < 1) {
        return false;
      }
      String name="String_Node_Str";
      for (      String arg : args) {
        if (!name.equals("String_Node_Str")) {
          name+="String_Node_Str";
        }
        name+=arg;
      }
      if (myPet.petName.replaceAll("String_Node_Str","String_Node_Str").equalsIgnoreCase(name)) {
        if (myPet.getSkills().isSkillActive("String_Node_Str")) {
          MyPetCustomInventory inv=((Inventory)myPet.getSkills().getSkill("String_Node_Str")).inv;
          inv.dropContentAt(myPet.getLocation());
        }
        if (!MyPetConfiguration.REMOVE_PETS_AFTER_RELEASE) {
          LivingEntity normalEntity=(LivingEntity)myPet.getLocation().getWorld().spawnEntity(myPet.getLocation(),myPet.getPetType().getEntityType());
          if (myPet instanceof MyChicken) {
            if (((MyChicken)myPet).isBaby()) {
              ((Chicken)normalEntity).setBaby();
            }
 else {
              ((Chicken)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyCow) {
            if (((MyCow)myPet).isBaby()) {
              ((Cow)normalEntity).setBaby();
            }
 else {
              ((Cow)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyCreeper) {
            ((Creeper)normalEntity).setPowered(((MyCreeper)myPet).isPowered());
          }
 else           if (myPet instanceof MyEnderman) {
            MaterialData materialData=new MaterialData(((MyEnderman)myPet).getBlockID(),(byte)((MyEnderman)myPet).getBlockData());
            ((Enderman)normalEntity).setCarriedMaterial(materialData);
          }
 else           if (myPet instanceof MyIronGolem) {
            ((IronGolem)normalEntity).setPlayerCreated(true);
          }
 else           if (myPet instanceof MyMooshroom) {
            if (((MyMooshroom)myPet).isBaby()) {
              ((MushroomCow)normalEntity).setBaby();
            }
 else {
              ((MushroomCow)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyMagmaCube) {
            ((MagmaCube)normalEntity).setSize(((MyMagmaCube)myPet).getSize());
          }
 else           if (myPet instanceof MyOcelot) {
            ((Ocelot)normalEntity).setCatType(Type.WILD_OCELOT);
            ((Ocelot)normalEntity).setTamed(false);
            if (((MyOcelot)myPet).isBaby()) {
              ((Ocelot)normalEntity).setBaby();
            }
 else {
              ((Ocelot)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyPig) {
            ((Pig)normalEntity).setSaddle(((MyPig)myPet).hasSaddle());
            if (((MyPig)myPet).isBaby()) {
              ((Pig)normalEntity).setBaby();
            }
 else {
              ((Pig)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MySheep) {
            ((Sheep)normalEntity).setSheared(((MySheep)myPet).isSheared());
            ((Sheep)normalEntity).setColor(((MySheep)myPet).getColor());
            if (((MySheep)myPet).isBaby()) {
              ((Sheep)normalEntity).setBaby();
            }
 else {
              ((Sheep)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyVillager) {
            ((Villager)normalEntity).setProfession(Profession.getProfession(((MyVillager)myPet).getProfession()));
            if (((MyVillager)myPet).isBaby()) {
              ((Villager)normalEntity).setBaby();
            }
 else {
              ((Villager)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyWolf) {
            ((Wolf)normalEntity).setTamed(false);
            if (((MyWolf)myPet).isBaby()) {
              ((Wolf)normalEntity).setBaby();
            }
 else {
              ((Wolf)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MySlime) {
            ((Slime)normalEntity).setSize(((MySlime)myPet).getSize());
          }
 else           if (myPet instanceof MyZombie) {
            ((Zombie)normalEntity).setBaby(((MyZombie)myPet).isBaby());
            World world=myPet.getCraftPet().getHandle().world;
            Location petLocation=myPet.getLocation();
            for (            ItemStack is : ((MyZombie)myPet).getEquipment()) {
              if (is != null) {
                EntityItem itemEntity=new EntityItem(world,petLocation.getX(),petLocation.getY(),petLocation.getZ(),is);
                itemEntity.pickupDelay=10;
                world.addEntity(itemEntity);
              }
            }
          }
 else           if (myPet instanceof MySkeleton) {
            if (((MySkeleton)myPet).isWither()) {
              ((Skeleton)normalEntity).setSkeletonType(SkeletonType.WITHER);
              ((CraftSkeleton)normalEntity).getHandle().setEquipment(0,new ItemStack(Item.STONE_SWORD));
            }
 else {
              ((CraftSkeleton)normalEntity).getHandle().setEquipment(0,new ItemStack(Item.BOW));
            }
            World world=myPet.getCraftPet().getHandle().world;
            Location petLocation=myPet.getLocation();
            for (            ItemStack is : ((MySkeleton)myPet).getEquipment()) {
              if (is != null) {
                EntityItem itemEntity=new EntityItem(world,petLocation.getX(),petLocation.getY(),petLocation.getZ(),is);
                itemEntity.pickupDelay=10;
                world.addEntity(itemEntity);
              }
            }
          }
 else           if (myPet instanceof MyPigZombie) {
            ((CraftPigZombie)normalEntity).getHandle().setEquipment(0,new ItemStack(Item.GOLD_SWORD));
            World world=myPet.getCraftPet().getHandle().world;
            Location petLocation=myPet.getLocation();
            for (            ItemStack is : ((MyPigZombie)myPet).getEquipment()) {
              if (is != null) {
                EntityItem itemEntity=new EntityItem(world,petLocation.getX(),petLocation.getY(),petLocation.getZ(),is);
                itemEntity.pickupDelay=10;
                world.addEntity(itemEntity);
              }
            }
          }
        }
        myPet.removePet();
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")).replace("String_Node_Str",myPet.petName));
        MyPetList.removeInactiveMyPet(MyPetList.setMyPetInactive(myPet.getOwner()));
        DebugLogger.info(sender.getName() + "String_Node_Str");
        if (MyPetConfiguration.STORE_PETS_ON_PET_RELEASE) {
          DebugLogger.info(MyPetPlugin.getPlugin().savePets(false) + "String_Node_Str");
        }
        return true;
      }
 else {
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")).replace("String_Node_Str",myPet.petName));
        return true;
      }
    }
 else {
      sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")));
    }
    return true;
  }
  sender.sendMessage("String_Node_Str");
  return false;
}

Fixed version (ground truth):
public boolean onCommand(CommandSender sender,Command command,String label,String[] args){
  if (sender instanceof Player) {
    Player petOwner=(Player)sender;
    if (MyPetList.hasMyPet(petOwner)) {
      MyPet myPet=MyPetList.getMyPet(petOwner);
      if (!MyPetPermissions.has(petOwner,"String_Node_Str")) {
        return true;
      }
      if (myPet.getStatus() == PetState.Despawned) {
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")).replace("String_Node_Str",myPet.petName));
        return true;
      }
 else       if (myPet.getStatus() == PetState.Dead) {
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str").replace("String_Node_Str",myPet.petName).replace("String_Node_Str","String_Node_Str" + myPet.respawnTime)));
        return true;
      }
      if (args.length < 1) {
        return false;
      }
      String name="String_Node_Str";
      for (      String arg : args) {
        if (!name.equals("String_Node_Str")) {
          name+="String_Node_Str";
        }
        name+=arg;
      }
      if (myPet.petName.replaceAll("String_Node_Str","String_Node_Str").equalsIgnoreCase(name)) {
        if (myPet.getSkills().isSkillActive("String_Node_Str")) {
          MyPetCustomInventory inv=((Inventory)myPet.getSkills().getSkill("String_Node_Str")).inv;
          inv.dropContentAt(myPet.getLocation());
        }
        if (!MyPetConfiguration.REMOVE_PETS_AFTER_RELEASE) {
          LivingEntity normalEntity=(LivingEntity)myPet.getLocation().getWorld().spawnEntity(myPet.getLocation(),myPet.getPetType().getEntityType());
          if (myPet instanceof IMyPetEquipment) {
            World world=myPet.getCraftPet().getHandle().world;
            Location petLocation=myPet.getLocation();
            for (            ItemStack is : ((IMyPetEquipment)myPet).getEquipment()) {
              if (is != null) {
                EntityItem itemEntity=new EntityItem(world,petLocation.getX(),petLocation.getY(),petLocation.getZ(),is);
                itemEntity.pickupDelay=10;
                world.addEntity(itemEntity);
              }
            }
          }
          if (myPet instanceof MyChicken) {
            if (((MyChicken)myPet).isBaby()) {
              ((Chicken)normalEntity).setBaby();
            }
 else {
              ((Chicken)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyCow) {
            if (((MyCow)myPet).isBaby()) {
              ((Cow)normalEntity).setBaby();
            }
 else {
              ((Cow)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyCreeper) {
            ((Creeper)normalEntity).setPowered(((MyCreeper)myPet).isPowered());
          }
 else           if (myPet instanceof MyEnderman) {
            MaterialData materialData=new MaterialData(((MyEnderman)myPet).getBlockID(),(byte)((MyEnderman)myPet).getBlockData());
            ((Enderman)normalEntity).setCarriedMaterial(materialData);
          }
 else           if (myPet instanceof MyIronGolem) {
            ((IronGolem)normalEntity).setPlayerCreated(true);
          }
 else           if (myPet instanceof MyMooshroom) {
            if (((MyMooshroom)myPet).isBaby()) {
              ((MushroomCow)normalEntity).setBaby();
            }
 else {
              ((MushroomCow)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyMagmaCube) {
            ((MagmaCube)normalEntity).setSize(((MyMagmaCube)myPet).getSize());
          }
 else           if (myPet instanceof MyOcelot) {
            ((Ocelot)normalEntity).setCatType(Type.WILD_OCELOT);
            ((Ocelot)normalEntity).setTamed(false);
            if (((MyOcelot)myPet).isBaby()) {
              ((Ocelot)normalEntity).setBaby();
            }
 else {
              ((Ocelot)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyPig) {
            ((Pig)normalEntity).setSaddle(((MyPig)myPet).hasSaddle());
            if (((MyPig)myPet).isBaby()) {
              ((Pig)normalEntity).setBaby();
            }
 else {
              ((Pig)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MySheep) {
            ((Sheep)normalEntity).setSheared(((MySheep)myPet).isSheared());
            ((Sheep)normalEntity).setColor(((MySheep)myPet).getColor());
            if (((MySheep)myPet).isBaby()) {
              ((Sheep)normalEntity).setBaby();
            }
 else {
              ((Sheep)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyVillager) {
            ((Villager)normalEntity).setProfession(Profession.getProfession(((MyVillager)myPet).getProfession()));
            if (((MyVillager)myPet).isBaby()) {
              ((Villager)normalEntity).setBaby();
            }
 else {
              ((Villager)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MyWolf) {
            ((Wolf)normalEntity).setTamed(false);
            if (((MyWolf)myPet).isBaby()) {
              ((Wolf)normalEntity).setBaby();
            }
 else {
              ((Wolf)normalEntity).setAdult();
            }
          }
 else           if (myPet instanceof MySlime) {
            ((Slime)normalEntity).setSize(((MySlime)myPet).getSize());
          }
 else           if (myPet instanceof MyZombie) {
            ((Zombie)normalEntity).setBaby(((MyZombie)myPet).isBaby());
          }
 else           if (myPet instanceof MySkeleton) {
            if (((MySkeleton)myPet).isWither()) {
              ((Skeleton)normalEntity).setSkeletonType(SkeletonType.WITHER);
              ((CraftSkeleton)normalEntity).getHandle().setEquipment(0,new ItemStack(Item.STONE_SWORD));
            }
 else {
              ((CraftSkeleton)normalEntity).getHandle().setEquipment(0,new ItemStack(Item.BOW));
            }
          }
 else           if (myPet instanceof MyPigZombie) {
            ((CraftPigZombie)normalEntity).getHandle().setEquipment(0,new ItemStack(Item.GOLD_SWORD));
          }
        }
        myPet.removePet();
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")).replace("String_Node_Str",myPet.petName));
        MyPetList.removeInactiveMyPet(MyPetList.setMyPetInactive(myPet.getOwner()));
        DebugLogger.info(sender.getName() + "String_Node_Str");
        if (MyPetConfiguration.STORE_PETS_ON_PET_RELEASE) {
          DebugLogger.info(MyPetPlugin.getPlugin().savePets(false) + "String_Node_Str");
        }
        return true;
      }
 else {
        sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")).replace("String_Node_Str",myPet.petName));
        return true;
      }
    }
 else {
      sender.sendMessage(MyPetBukkitUtil.setColors(MyPetLanguage.getString("String_Node_Str")));
    }
    return true;
  }
  sender.sendMessage("String_Node_Str");
  return false;
}