Thread: Possible to have Name Restrictons?

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Possible to have Name Restrictons? 
    Registered Member
    Join Date
    Mar 2013
    Posts
    191
    Thanks given
    13
    Thanks received
    12
    Rep Power
    26
    I was wondering if it was possible to have Username restrictions, such as having a name starting with (Mod).
    Reply With Quote  
     

  2. #2  
    L O S E Y O U R S E L F
    Format's Avatar
    Join Date
    Aug 2013
    Posts
    2,311
    Thanks given
    1,131
    Thanks received
    1,461
    Rep Power
    5000
    It's possible.


    Reply With Quote  
     

  3. #3  
    Registered Member _Andy's Avatar
    Join Date
    May 2013
    Age
    28
    Posts
    643
    Thanks given
    224
    Thanks received
    111
    Rep Power
    4
    Quote Originally Posted by Format View Post
    It's possible.
    haha

    ot: yeah, check loginpacketsdecoder
    quit
    Reply With Quote  
     

  4. #4  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    You will want to add an if statement in loginpacketsdecoder something like
    If username.Startswith("mod ")
    Return

    I believe there is a method in utils.java that handles unuseable usernames


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Sep 2013
    Posts
    248
    Thanks given
    93
    Thanks received
    38
    Rep Power
    0
    everything is possible in java.
    Reply With Quote  
     

  6. #6  
    arr.each { |x| x }


    Join Date
    Jul 2013
    Posts
    1,388
    Thanks given
    190
    Thanks received
    345
    Rep Power
    2791
    Yes this is possible. Just use comon sense.
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Sep 2011
    Posts
    1,034
    Thanks given
    133
    Thanks received
    257
    Rep Power
    76
    Quote Originally Posted by Engin View Post
    everything is possible in java.
    Could you MineRuneCraftScape? then smash an egg?
    Reply With Quote  
     

  8. #8  
    L O S E Y O U R S E L F
    Format's Avatar
    Join Date
    Aug 2013
    Posts
    2,311
    Thanks given
    1,131
    Thanks received
    1,461
    Rep Power
    5000
    Code:
    name.contains("mod") || name.contains("admin")) {
    I haven't tested for errors but

    Code:
    name.contains().equalsIgnoreCase("mod") || name.contains().equalsIgnoreCase("admin")) {


    Reply With Quote  
     

  9. #9  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Quote Originally Posted by Format View Post
    Code:
    name.contains("mod") || name.contains("admin")) {
    I haven't tested for errors but

    Code:
    name.contains().equalsIgnoreCase("mod") || name.contains().equalsIgnoreCase("admin")) {
    You realise that will cancel out anynames containing those words, so If someone wanted the name "Modern" they wouldnt be able to, instead this would be better

    name.startsWith().equalsIgnoreCase("mod ") || name.startsWith().equalsIgnoreCase("admin ")) {


    Reply With Quote  
     

  10. #10  
    L O S E Y O U R S E L F
    Format's Avatar
    Join Date
    Aug 2013
    Posts
    2,311
    Thanks given
    1,131
    Thanks received
    1,461
    Rep Power
    5000
    Quote Originally Posted by Santa Hat View Post
    You realise that will cancel out anynames containing those words, so If someone wanted the name "Modern" they wouldnt be able to, instead this would be better

    name.startsWith().equalsIgnoreCase("mod ") || name.startsWith().equalsIgnoreCase("admin ")) {
    I know lol was just adding to his knowledge.


    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. Replies: 0
    Last Post: 07-31-2012, 02:05 AM
  2. Replies: 3
    Last Post: 08-20-2011, 11:07 AM
  3. Is it possible to have 317 deob load 474 cache?
    By King Man002 in forum Configuration
    Replies: 19
    Last Post: 02-03-2011, 12:17 PM
  4. Replies: 0
    Last Post: 09-12-2009, 03:47 PM
  5. [tut]Combat hit totals (Kinda fun to have)..
    By Santa Clause in forum Tutorials
    Replies: 5
    Last Post: 05-10-2007, 08:30 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
  •