Thread: How do I stop new players from logging in with "?" in front of their name?

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 How do I stop new players from logging in with "?" in front of their name? 
    Aganoth Developer

    Aust1n's Avatar
    Join Date
    Aug 2012
    Posts
    1,857
    Thanks given
    280
    Thanks received
    406
    Rep Power
    60
    How do I stop new players from logging in with "?" in front of their name?
    There always spamming my server, can some 1 help me out.




    Reply With Quote  
     

  2. #2  
    GooRoo
    Guest
    Post your player.java
    Reply With Quote  
     

  3. #3  
    Registered Member Taylor Moon's Avatar
    Join Date
    Aug 2012
    Posts
    2,565
    Thanks given
    625
    Thanks received
    1,303
    Rep Power
    66
    if(!name.contains("[A-Za-z0-9]") {
    return;
    }
    Reply With Quote  
     

  4. #4  
    Aganoth Developer

    Aust1n's Avatar
    Join Date
    Aug 2012
    Posts
    1,857
    Thanks given
    280
    Thanks received
    406
    Rep Power
    60
    I couldnt post it so u have to download it. it was to long

    Link:
    UPLOAD.EE - Download Player.java




    Reply With Quote  
     

  5. #5  
    Aganoth Developer

    Aust1n's Avatar
    Join Date
    Aug 2012
    Posts
    1,857
    Thanks given
    280
    Thanks received
    406
    Rep Power
    60
    Quote Originally Posted by Taylor Moon View Post
    if(!name.contains("[A-Za-z0-9]") {
    return;
    }
    Where do i add that in player.java?




    Reply With Quote  
     

  6. #6  
    GooRoo
    Guest
    Go to the file and ctrl+A and paste in a spoiler.
    Reply With Quote  
     

  7. #7  
    Aganoth Developer

    Aust1n's Avatar
    Join Date
    Aug 2012
    Posts
    1,857
    Thanks given
    280
    Thanks received
    406
    Rep Power
    60
    It wont let me, cause its too long




    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2012
    Posts
    134
    Thanks given
    3
    Thanks received
    5
    Rep Power
    11
    Quote Originally Posted by Aust1n View Post
    It wont let me, cause its too long
    Paste it into a pastebin and post the link here.
    Reply With Quote  
     

  9. #9  
    GooRoo
    Guest
    Post in pastebin.
    Reply With Quote  
     

  10. #10  
    Aganoth Developer

    Aust1n's Avatar
    Join Date
    Aug 2012
    Posts
    1,857
    Thanks given
    280
    Thanks received
    406
    Rep Power
    60
    Player.java - Pastebin
    Theres the paste bin




    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Project Nebula "The Empyreal Front"
    By Zaves in forum Projects
    Replies: 8
    Last Post: 02-27-2012, 12:28 AM
  2. Stop making "Methods" or "Frames" classes..
    By Colby in forum RS2 Server
    Replies: 32
    Last Post: 01-03-2010, 02:05 PM
  3. Replies: 6
    Last Post: 09-07-2009, 05:37 AM
  4. Replies: 0
    Last Post: 08-15-2009, 03:01 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •