mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-07 09:53:04 +00:00
-> Add IP Data to Bans
This commit is contained in:
@ -75,7 +75,7 @@ public class BanCMD extends PlexCommand
|
||||
punishment.setCustomTime(false);
|
||||
plugin.getPunishmentManager().doPunishment(punishedPlayer, punishment);
|
||||
Bukkit.broadcastMessage(sender.getName() + " - Banning " + plexPlayer.getName());
|
||||
if (Bukkit.getOfflinePlayer(targetUUID).isOnline())
|
||||
if (Bukkit.getPlayer(targetUUID) != null)
|
||||
{
|
||||
Bukkit.getPlayer(targetUUID).kickPlayer("§cYou've been banned.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user