Updates for banning

Removing the ban workaround

We might remove the ban commands completely.
This commit is contained in:
snowleo 2011-09-07 22:34:53 +02:00
parent b828222176
commit 4c6cc5ced0
15 changed files with 141 additions and 197 deletions

View file

@ -47,8 +47,8 @@ public class Commandtempban extends EssentialsCommand
final String banReason = Util.format("tempBanned", Util.formatDateDiff(banTimestamp));
player.setBanReason(banReason);
player.setBanTimeout(banTimestamp);
player.setBanned(true);
player.kickPlayer(banReason);
ess.getBans().banByName(player.getName());
String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;
for(Player p : server.getOnlinePlayers())