Improved entitywiper. Fixes #512

This commit is contained in:
JeromSar
2016-08-26 12:34:18 +02:00
parent b153debdef
commit 6a86f66cf6
3 changed files with 73 additions and 39 deletions

View File

@ -15,7 +15,7 @@ public class Command_entitywipe extends FreedomCommand
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
FUtil.adminAction(sender.getName(), "Removing all server entities.", true);
msg((plugin.ew.wipeEntities(true, true)) + " entities removed.");
msg((plugin.ew.wipeEntities()) + " entities removed.");
return true;
}

View File

@ -19,7 +19,7 @@ public class Command_purgeall extends FreedomCommand
FUtil.adminAction(sender.getName(), "Purging all player data", true);
// Purge entities
plugin.ew.wipeEntities(true, true);
plugin.ew.wipeEntities();
for (Player player : server.getOnlinePlayers())
{