Merge pull request #82 from AtlasMediaGroup/FS-199

Prevents entities of type PLAYER from being purged in /entitywipe (FS-199)
This commit is contained in:
Video 2021-06-17 05:46:28 -06:00 committed by GitHub
commit 02848e3439
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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