Thread: [PI] Name Capitalization

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI] Name Capitalization 
    Registered Member SpinninRecords's Avatar
    Join Date
    Aug 2013
    Age
    22
    Posts
    330
    Thanks given
    60
    Thanks received
    25
    Rep Power
    32
    This is really bugging me and I would like to change it. On my [PI] Server in some places your name isn't capitalized. These places include when you
    -auto-join a clan chat
    -login screen
    -when you yell.

    If needed I'm using "Galkons Refactored Client"



    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jun 2013
    Age
    39
    Posts
    523
    Thanks given
    16
    Thanks received
    67
    Rep Power
    0
    Server sided: Misc.something

    Client sided: Not sure, but you can download the name fixing api by searching it on google. Called WordUtils or Common lang
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Jun 2013
    Age
    39
    Posts
    523
    Thanks given
    16
    Thanks received
    67
    Rep Power
    0
    Quote Originally Posted by Logic View Post
    Misc.capitalize(playerName)
    ^ That should work, and Logic, is it same for Client? :/
    Reply With Quote  
     

  4. #4  
    Registered Member SpinninRecords's Avatar
    Join Date
    Aug 2013
    Age
    22
    Posts
    330
    Thanks given
    60
    Thanks received
    25
    Rep Power
    32
    Quote Originally Posted by Logic View Post
    Misc.capitalize(playerName)

    Where would I put that code?
    Reply With Quote  
     

  5. #5  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    26
    Posts
    2,758
    Thanks given
    903
    Thanks received
    406
    Rep Power
    0
    nvm sorry
    Spoiler for sig too large:

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣

    Quote Originally Posted by Huey View Post
    I always applaud ppl that actually release shit. But okay me again and I'm negging your okaying ass. K homie?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jun 2013
    Age
    39
    Posts
    523
    Thanks given
    16
    Thanks received
    67
    Rep Power
    0
    Quote Originally Posted by SpinninRecords View Post
    Where would I put that code?
    This is for server sided. You can put it anywhere like this:

    Code:
    c.sendMessage(Misc.capitalize(c.getName()) + " is smart.");
    Use the one Linus provided for Client.
    Reply With Quote  
     

  7. #7  
    Registered Member SpinninRecords's Avatar
    Join Date
    Aug 2013
    Age
    22
    Posts
    330
    Thanks given
    60
    Thanks received
    25
    Rep Power
    32
    Quote Originally Posted by FiveRiverFlo View Post
    This is for server sided. You can put it anywhere like this:

    Code:
    c.sendMessage(Misc.capitalize(c.getName()) + " is smart.");
    Use the one Linus provided for Client.
    But I mean for capitalizing the client login, and yell how would it go? I'll try it and see if it works.

    Thanks SOO MUCH @ Everyone who helped
    Reply With Quote  
     

  8. #8  
    Registered Member SpinninRecords's Avatar
    Join Date
    Aug 2013
    Age
    22
    Posts
    330
    Thanks given
    60
    Thanks received
    25
    Rep Power
    32
    Here is my yell Code

    Code:
    if (playerCommand.startsWith("yell")) {
    String rank = "";
    String Message = playerCommand.substring(4).toLowerCase(); 
    if (c.playerRights == 1) {
    rank = "@[email protected] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 2) {
    rank = "@[email protected] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 3) {
    rank = "@[email protected] @[email protected])"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 4) {
    rank = "@[email protected][$] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 5) {
    rank = "@[email protected][$] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 45) {
    rank = "@[email protected][$]@[email protected][$] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    Reply With Quote  
     

  9. #9  
    Server Developer

    Titanium's Avatar
    Join Date
    Oct 2011
    Posts
    2,708
    Thanks given
    1,215
    Thanks received
    673
    Rep Power
    2392
    Quote Originally Posted by SpinninRecords View Post
    Here is my yell Code

    Code:
    if (playerCommand.startsWith("yell")) {
    String rank = "";
    String Message = playerCommand.substring(4).toLowerCase(); 
    if (c.playerRights == 1) {
    rank = "@[email protected] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 2) {
    rank = "@[email protected] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 3) {
    rank = "@[email protected] @[email protected])"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 4) {
    rank = "@[email protected][$] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 5) {
    rank = "@[email protected][$] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    if (c.playerRights == 45) {
    rank = "@[email protected][$]@[email protected][$] @[email protected]"+ c.playerName +" :@[email protected]";
    }
    + Misc.Capitalize(c.playerName)+

    or w.e you named your capitalize method.


    Inactive from RSPS. Times have changed.
    Reply With Quote  
     

  10. #10  
    Registered Member SpinninRecords's Avatar
    Join Date
    Aug 2013
    Age
    22
    Posts
    330
    Thanks given
    60
    Thanks received
    25
    Rep Power
    32
    Quote Originally Posted by Titanium View Post
    + Misc.Capitalize(c.playerName)+

    or w.e you named your capitalize method.
    I got this error; So I probably need to change my Capitalize method. How do I change it?
    CANT SEEM TO COPY THE CODE. I GOT AN IMAGE
    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)

Similar Threads

  1. 5$ fix [PI] NAMES
    By HiImRusty in forum Help
    Replies: 2
    Last Post: 10-17-2011, 06:02 PM
  2. [PI] Name titles?
    By nbness2 in forum Help
    Replies: 1
    Last Post: 08-28-2011, 10:40 PM
  3. Replies: 3
    Last Post: 05-23-2011, 05:37 PM
  4. Strange name capitalization problem
    By jordan641 in forum Help
    Replies: 3
    Last Post: 12-15-2010, 06:14 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
  •