Originally Posted by
Norm
How can a player have two usernames: Reflexxx_ and ImJustPax
Do mean if the player has one of those names?
Is there a get method in the player class that returns the username?
Call that method to get the name and then use the equals method to compare the name to each of the possible names, one at a time.
If it can be either name, use the OR operator to build the if statement.
if(test first name OR test second name) {
... it was one of those two
}else {
... not one of those two
}
Thanks. Gave a bright light in the dark!