find something like
adminCommands or playerRights >= 2
and if you dont have anything like that just do
Code:
if (playerCommand.startsWith("ipban") && playerRights > 1 && playerRights != 4) {
try {
String playerToBan = playerCommand.substring(6);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
Connection.addIpToBanList(Server.playerHandler.pla yers[i].connectedFrom);
Connection.addIpToFile(Server.playerHandler.player s[i].connectedFrom);
c.sendMessage("You have IP banned the user: "+Server.playerHandler.players[i].playerName+" with the host: "+Server.playerHandler.players[i].connectedFrom);
Server.playerHandler.players[i].disconnected = true;
}
}
}