if (args.hasFlag('i')) {
CommandBook.inst().checkPermission(sender, "commandbook.bans.ban.ip");
banAddress = player.getAddress().getAddress();
for (Player aPlayer : CommandBook.server().getOnlinePlayers()) {
if (aPlayer.getAddress().getAddress().equals(banAddress)) {
player.kickPlayer(message == null ? "Banned!" : message);
getBanDatabase().logKick(player, sender, message);
}
}
} else {
player.kickPlayer(message == null ? "Banned!" : message);