Update Commandkillall.java

Add support for horses
This commit is contained in:
Pocketkid2 2013-07-28 19:03:57 -07:00 committed by Chris Ward
parent ddc8c07cd7
commit c15540862d

View File

@ -121,6 +121,13 @@ public class Commandkillall extends EssentialsCommand
continue;
}
}
if (entity instanceof Horse)
{
if (((Horse)entity).isTamed())
{
continue;
}
}
if (animals)
{
if (entity instanceof Animals || entity instanceof NPC || entity instanceof Snowman || entity instanceof WaterMob)
@ -159,4 +166,4 @@ public class Commandkillall extends EssentialsCommand
}
sender.sendMessage(_("kill", numKills));
}
}
}