mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Made the Ban command kick a matching player if they are online.
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
8ce68d156e
commit
903b75184d
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ public class BanCommand extends VanillaCommand {
|
|||
}
|
||||
|
||||
Bukkit.getOfflinePlayer(args[0]).setBanned(true);
|
||||
if (Bukkit.getPlayer(args[0]) != null) Bukkit.getPlayer(args[0]).kickPlayer("Banned by admin.");
|
||||
Command.broadcastCommandMessage(sender, "Banning " + args[0]);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue