From f3345247ed52880cf32f886660c714066bf7bcb5 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Fri, 30 Mar 2012 11:40:44 +0100 Subject: [PATCH] Reset ban reason to null on /ban , if no reason is set. --- Essentials/src/com/earth2me/essentials/commands/Commandban.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandban.java b/Essentials/src/com/earth2me/essentials/commands/Commandban.java index bc09cbba8..ca6707088 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandban.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandban.java @@ -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;