mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-10 13:49:14 +01:00
Reset ban reason to null on /ban <player>, if no reason is set.
This commit is contained in:
parent
1101a3243d
commit
f3345247ed
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user