Cleanup player argument matching in loops

Cleanup ess cleanup timestamp matching
This commit is contained in:
KHobbits 2013-05-05 07:05:43 +01:00
parent 2d70bb19f7
commit 162b67aaa6
10 changed files with 212 additions and 156 deletions

View file

@ -36,7 +36,12 @@ public class Commandext extends EssentialsCommand
return;
}
extinguishPlayers(server, user, commandLabel);
if (args[0].trim().length() < 2)
{
throw new Exception(_("playerNotFound"));
}
extinguishPlayers(server, user, args[0]);
}
private void extinguishPlayers(final Server server, final CommandSender sender, final String name) throws Exception