Whoa, thanks! This is awesome if it works Gonna test it.
|
Hate it when people login with names like 'zEzIMA'? this will automatically change it to 'Zezima'.
Difficulty: 1/10
Source: Pimpscape
Search for:
It should be in your run() void.Code:playerName = inStream.readString();
Under it add:
It is fully documented so you can understand what my code is doing!Code:playerName = playerName.toLowerCase(); //Converts the entire thing to lowercase String firstLetter = playerName.substring(0,1).toUpperCase(); //Declare the first letter upper case String lastBit = playerName.substring(1); //Declare the rest of the username (without the first letter) playerName = firstLetter+""+lastBit; //Put it together!
Credits: 100% to me!
I do not have a moparscape account so if you see this anywhere else it has been leeched!
Whoa, thanks! This is awesome if it works Gonna test it.
Thanks I needed this for my new server
No problem guys, i like helping the community. =D
This has been around forever..
Oh sorry, didn't know.
Just every source I have had has had this in it., along with replacing illegal chars to "_".
btw this wont exactly word unless you have the restofname.toLowerCase
Becuse if i loged in like this "hElLo" it would come out as "HElLo"
Nice this is great but I really dont care how people name their characters on my server unless they name it "Thisserversucks" or something like that
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |