Jump to content

EvoIllusions

Member
  • Content count

    2
  • Joined

  • Last visited

About EvoIllusions

  • Rank
    Bronze Member
  • Birthday 05/15/1995
  1. Love how nobody helps in this community..
  2. Okay I am trying to make a button able to complete a staff command...let us test this with the command 'kick'. Here is what I have so far: [code] case 78034: try { String playerToBan = playerCommand.substring(5); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Server.playerHandler.players[i].disconnected = true; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } break; [/code] Problem with that; it has no way of knowing what player I am talking about and it cannot read 'playerCommand'. Possible solution(s); making a interface come up in the chatbox where I can type in the player name. Compiler Error: [code]src\server\model\players\packets\ClickingButtons.java:469: error: cannot find symbol String playerToBan = playerCommand.substring(5); ^ symbol: variable playerCommand location: class ClickingButtons Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .[/code] Could somebody please help me with this? I don't know where to define playerCommand, and I don't know how to make it to where when I click it I have to type in the players name.
×