mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Reset ban reason to null on /ban <player>, if no reason is set.
This commit is contained in:
parent
1101a3243d
commit
f3345247ed
1 changed files with 2 additions and 0 deletions
|
@ -50,7 +50,9 @@ public class Commandban extends EssentialsCommand
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
banReason = _("defaultBanReason");
|
banReason = _("defaultBanReason");
|
||||||
|
user.setBanReason("");
|
||||||
}
|
}
|
||||||
|
|
||||||
user.setBanned(true);
|
user.setBanned(true);
|
||||||
user.kickPlayer(banReason);
|
user.kickPlayer(banReason);
|
||||||
final String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;
|
final String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;
|
||||||
|
|
Loading…
Reference in a new issue