nemoigescape
Active Member
- Joined
- May 24, 2009
- Sythe Gold
- 0
- Messages
- 131
diffuculty 0/10
open client.java
press cntr+f and search for
roughly 3 lines under this you will see something very similar to this
you will need to edit in the names relevant to your server
then you are going to want to do the same for when you log out
search for
and you will see the same thing again but with +playerName+ " has logged out instead
this is very simple nothing to it just delete old names and replace hehe
I thought i would also introduce myself as this is my first topic, i have been coding now for roughly 3 weeks and i catch on pretty quick and easily
i thought id post my first tut and see how you guys like it and i may make more if there wanted/liked
hope you all like it
open client.java
press cntr+f and search for
Code:
updatePlayers();
Code:
if(playerName.equalsIgnoreCase("random name"))
{
PlayerHandler.messageToAll = "member " +playerName+ " has logged in";
}
if(playerName.equalsIgnoreCase("randomname") || playerName.equalsIgnoreCase("randomname"))
{
PlayerHandler.messageToAll = "Member " +playerName+ " has logged in";
}
then you are going to want to do the same for when you log out
search for
Code:
public void logout(){
and you will see the same thing again but with +playerName+ " has logged out instead
this is very simple nothing to it just delete old names and replace hehe
I thought i would also introduce myself as this is my first topic, i have been coding now for roughly 3 weeks and i catch on pretty quick and easily
i thought id post my first tut and see how you guys like it and i may make more if there wanted/liked
hope you all like it