1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 11:37:30 +02:00

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 d0fb315d63
commit ac921babd3

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));
}
}
}