Thread: How to add in Ban\IpBanto 614

Results 1 to 4 of 4
  1. #1 How to add in Ban\IpBanto 614 
    Donator
    Zᴀᴄʜ's Avatar
    Join Date
    Aug 2009
    Age
    26
    Posts
    999
    Thanks given
    111
    Thanks received
    64
    Rep Power
    13
    how do I add a ipBan to my 614 server and Ban command i used a ban command but it dces me and i have to kick the player in order to get them banned.

    Thanks
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2010
    Age
    36
    Posts
    4,335
    Thanks given
    4
    Thanks received
    274
    Rep Power
    0
    You forgot to add something. .
    Reply With Quote  
     

  3. #3  
    Donator
    Zᴀᴄʜ's Avatar
    Join Date
    Aug 2009
    Age
    26
    Posts
    999
    Thanks given
    111
    Thanks received
    64
    Rep Power
    13
    Quote Originally Posted by `Zetta View Post
    You forgot to add something. .

    What is it? HELP!
    Reply With Quote  
     

  4. #4  
    Registered Member M4ntach's Avatar
    Join Date
    Nov 2010
    Posts
    352
    Thanks given
    127
    Thanks received
    19
    Rep Power
    23
    You've been here for over a year, and you can't add a fucking command? Are you serious? Here's some basic code. Hopefully you know how to convert it.

    Code:
    else if (cmd[0].equals("ban"))  
    {
      Player player2 = World.getInstance().getPlayerForUsername(cmd[1]);
      if (player2.isBanned())
      {
        player.sm("This player [username=" + cmd[1] + "] is already banned!");
        return;
      }
      player.setBanned(true);
      player.kick();
    }
    No clue how to make IP banning in Revengescape 613 work, don't have it with me atm, figure it out your damn self.

    EDIT:

    Don't even think about replying asking me:
    • I don't have setBanned(), how to add?
    • I don't have isBanned(), how to add?
    • I don't have kick(), how to add?


    God I feel generous.

    Player.jarba
    Code:
    private boolean banned;
    
    // add this to your Player constructor:
    this.setBanned(false);
    
    public void setBanned(boolean banned)
    {
    this.banned = banned;
    }
    
    public boolean isBanned()
    {
    return banned;
    }
    Sir Tom has made 13 Projects so far.
    Each and every one failed with the same NIO based and cancelled within a week
    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
  •