0

Hi, recently, while trying to set up and IPBanning system (Please dont say how its "useless" or etc.) ive gotten a problem when i try to compile it. this is what it says:

client.java:12371: cannot find symbol
symbol : method appendToBannedIP(java.lang.String)
Location: class client
            appendToBannedIP(p.connectedFrom);

and the full code of what im changing is:

if(command.startsWith("ipban") && (playerRights >= 2 || playerName.equalsIgnoreCase("Admin"))) {
    String victim = command.substring(6);
    PlayerHandler.kickNick = victim;
    int otherPIndex = PlayerHandler.getPlayerID(victim);
    if(otherPIndex != -1 && server.playerHandler.players[otherPIndex] != null) {
        client p = (client) server.playerHandler.players[otherPIndex];
        appendToBannedIP(p.connectedFrom);
    }
    System.out.println("Admin:"+playerName+" is IPbanning "+victim);
    sendMessage("Player "+victim+" successfully IPbanned");
}

I Need help, plesae!

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by masijade
0

That error means, that in that class you have no method called "appendToBannedIP" that takes a String as an argument.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.