mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-07 05:00:47 +02:00
Reset ban reason to null on /ban <player>, if no reason is set.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user