Thread: Suspicious activity! WHen Unjail'd

Results 1 to 6 of 6
  1. #1 Suspicious activity! WHen Unjail'd 
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    thats my unjail command
    Code:
    if (command.startsWith("unjail") && playerRights >= 1) {
                    try {
                        String otherPName = command.substring(7);
                        int otherPIndex = PlayerHandler.getPlayerID(otherPName);
                            if (otherPIndex != -1) {
                            client p = (client) server.playerHandler.players[otherPIndex];
                            p.toX = 2525;
    			p.toY = 4776;
                            p.sM("You have been unjailed by " + playerName);
    			sM ("You have unjailed "+p.playerName+".");
    			p.sM("you are now free DONT BREAK THE RULES AGAIN");
                        } else { 
                           sM("The name doesnt exist."); 
                        }
                    } catch (Exception e) { 
    sM("Try entering a name you want to unjail..");
                    }
                }
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2009
    Posts
    115
    Thanks given
    3
    Thanks received
    5
    Rep Power
    105
    And...?
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    Quote Originally Posted by moarte View Post
    and...?
    it wont let the player logout
    Reply With Quote  
     

  4. #4  
    Registered Member
    Rock_Gyo's Avatar
    Join Date
    Oct 2009
    Posts
    505
    Thanks given
    27
    Thanks received
    35
    Rep Power
    104
    why you need jail and unjail?...just get temporally bann for 1 hour...24h..
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Oct 2009
    Posts
    115
    Thanks given
    3
    Thanks received
    5
    Rep Power
    105
    Quote Originally Posted by sinzscapeownz View Post
    it wont let the player logout
    After using the unjail command?

    Quote Originally Posted by Rock_Gyo View Post
    why you need jail and unjail?...just get temporally bann for 1 hour...24h..
    Much better way to do it.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Iwin's Avatar
    Join Date
    Mar 2008
    Age
    30
    Posts
    677
    Thanks given
    12
    Thanks received
    56
    Rep Power
    245
    just ignore the error and kick the player its alot easyer than trying to fix it.
    [SPOIL]
    [/SPOIL]
    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
  •