Team Manifest
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Team Manifest

Team Manifest
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  

 

 [TUT] Name Changer [/TUT]

Go down 
AuthorMessage
TM_Monster




Posts : 1
Join date : 2012-03-18
Age : 27
Location : United States

[TUT] Name Changer [/TUT] Empty
PostSubject: [TUT] Name Changer [/TUT]   [TUT] Name Changer [/TUT] EmptySun Mar 18, 2012 10:21 pm

Go to EntityClientPlayerMp
And Under public void sendChatMessage
Add this


Code:

Code:

if(par1Str.startsWith(".name"))
 {
 try
 {
 String cmd[] = par1Str.split(" ");
 String host = cmd[1];mc.session = new Session((new StringBuilder()).append(host).toString(), "")
 mc.thePlayer.addChatMessage("\247c Name Changed Reconnect To The Server");
 }
 catch(Exception ex)
 {
 mc.thePlayer.addChatMessage("\247cError: User .name test");
 }
 }

Sorry this is not skid-proof.
Back to top Go down
 
[TUT] Name Changer [/TUT]
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Team Manifest :: Minecraft :: Minecraft Coding-
Jump to: