From be700a90ceba2b5b00df3ce718b3f2318bf1b09c Mon Sep 17 00:00:00 2001 From: Video Date: Wed, 16 Jun 2021 22:42:45 -0600 Subject: [PATCH] Simple fix --- .../totalfreedommod/command/Command_entitywipe.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_entitywipe.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_entitywipe.java index ff2043b2..f83157f5 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_entitywipe.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_entitywipe.java @@ -64,6 +64,12 @@ public class Command_entitywipe extends FreedomCommand return true; } + if (type == EntityType.PLAYER) + { + msg("Player entities cannot be purged.", ChatColor.RED); + return true; + } + if (!getAllEntities().contains(type)) { msg(FUtil.formatName(type.name()) + " is an entity, however: it is a mob.", ChatColor.RED);