diff options
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandban.java')
-rw-r--r-- | Essentials/src/net/ess3/commands/Commandban.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandban.java b/Essentials/src/net/ess3/commands/Commandban.java index 85b7ffc1b..91db02db8 100644 --- a/Essentials/src/net/ess3/commands/Commandban.java +++ b/Essentials/src/net/ess3/commands/Commandban.java @@ -6,8 +6,8 @@ import net.ess3.api.IUser; import net.ess3.permissions.Permissions; import net.ess3.user.Ban; import lombok.Cleanup; -import net.ess3.api.server.CommandSender; -import net.ess3.api.server.Player; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; public class Commandban extends EssentialsCommand @@ -55,13 +55,12 @@ public class Commandban extends EssentialsCommand } user.setBanned(true); - user.kickPlayer(banReason); - for (Player onlinePlayer : server.getOnlinePlayers()) + user.getPlayer().kickPlayer(banReason); + for (Player player : server.getOnlinePlayers()) { - final IUser player = onlinePlayer.getUser(); if (Permissions.BAN_NOTIFY.isAuthorized(player)) { - onlinePlayer.sendMessage(_("playerBanned", senderName, user.getName(), banReason)); + player.sendMessage(_("playerBanned", senderName, user.getName(), banReason)); } } } |