Reset ban reason to null on /ban <player>, if no reason is set.

This commit is contained in:
KHobbits 2012-03-30 11:40:44 +01:00
parent 1101a3243d
commit f3345247ed

View File

@ -50,7 +50,9 @@ public class Commandban extends EssentialsCommand
else
{
banReason = _("defaultBanReason");
user.setBanReason("");
}
user.setBanned(true);
user.kickPlayer(banReason);
final String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;