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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user