Thread: is there anyway to make myself unbannable on my rsps?

Results 1 to 7 of 7
  1. #1 is there anyway to make myself unbannable on my rsps? 
    Registered Member
    Join Date
    Nov 2012
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    hey i am the owner oh holyscape, a trisidiax source client. and i was wondering if there was anyway i could make myself and anyone in a admin position unbannable
    Reply With Quote  
     

  2. #2  
    Hella Hard Homie


    Join Date
    Jan 2011
    Posts
    587
    Thanks given
    179
    Thanks received
    43
    Discord
    View profile
    Rep Power
    111
    After the line where the target is submitted in the ban commmand (the target = command.substring(5), or something similar (I am doing this at the top of my head))

    Add:
    if (target.playerRights =< 2){
    sendMessage("You cannot ban admin+!")
    return;
    }

    If you cant figure it out, post your ban command please
    [Only registered and activated users can see links. ]

    Quote Originally Posted by Winston Churchill
    "Success is the ability to go from one failure to another with no loss of enthusiasm"
    Austin still owes me $43
    Reply With Quote  
     

  3. #3  
    Old Webdeveloper
    Dondxon's Avatar
    Join Date
    Aug 2011
    Posts
    1,147
    Thanks given
    209
    Thanks received
    108
    Rep Power
    65
    or try connections.java, denie saving a ban for playerrights 3 or your username.
    Do you need any PHP work done? Or are you looking for RSPS integrations? click [Only registered and activated users can see links. ].

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  4. #4  
    Hella Hard Homie


    Join Date
    Jan 2011
    Posts
    587
    Thanks given
    179
    Thanks received
    43
    Discord
    View profile
    Rep Power
    111
    Quote Originally Posted by Dondxon View Post
    or try connections.java, denie saving a ban for playerrights 3 or your username.
    On alot of servers bans are saved in the character file or in a log.. Mostly never handled in connections.java?.. It is easiest to put it in the actual banning command, so that the admins can actually be banned but not by other staff members, which is usefull as sometimes admin accounts can get hacked, and imagine an unbanneble (not even by owner) admin running around your server..
    [Only registered and activated users can see links. ]

    Quote Originally Posted by Winston Churchill
    "Success is the ability to go from one failure to another with no loss of enthusiasm"
    Austin still owes me $43
    Reply With Quote  
     

  5. #5  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Quote Originally Posted by Aekramer View Post
    On alot of servers bans are saved in the character file or in a log.. Mostly never handled in connections.java?.. It is easiest to put it in the actual banning command, so that the admins can actually be banned but not by other staff members, which is usefull as sometimes admin accounts can get hacked, and imagine an unbanneble (not even by owner) admin running around your server..
    Thats why you would do something such as
    Code:
    if (PlayerHandler.players[i].playerRights > c.playerRights) {
    c.sendMessage("You cannot ban a member of a higher rank.");
    break;
    }
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2008
    Posts
    411
    Thanks given
    9
    Thanks received
    64
    Rep Power
    38
    What if an admin has gone rogue?
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Nov 2009
    Posts
    1,427
    Thanks given
    559
    Thanks received
    266
    Rep Power
    236
    Make a string array in your config class.

    Code:
    public static final String[] UNBANNABLE = {"name1", "name2"};
    In your ban command, at the top just add a return statement if the name to ban is in the unbannable list.
    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

Similar Threads

  1. Replies: 29
    Last Post: 01-30-2012, 11:54 PM
  2. how to make a rsps
    By traik20 in forum Advertise
    Replies: 8
    Last Post: 01-11-2012, 08:31 PM
  3. Replies: 10
    Last Post: 12-11-2011, 04:11 AM
  4. Need Someone To Make An RSPS With!!!
    By Wrecked... in forum Requests
    Replies: 2
    Last Post: 05-17-2011, 12:15 AM
Tags for this Thread

View Tag Cloud

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