Jump to content
  • 0
madman

command ::player help

Question

ok i cant get it to exclude me from a title im trying to put in
[code]
}
if (player.getUsername().equalsIgnoreCase("madman"))
if (player.getSkills().getLevel(0) == 99 || player.getSkills().getLevel(1) == 99 || player.getSkills().getLevel(2) ==

99 || player.getSkills().getLevel(3) == 99){
titles = "<col=000000>[pro]";
}
[/code]

if (player.getUsername().equalsIgnoreCase("madman"))
this line wont stop it from making my title pro

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
[code]if (!player.getUsername().equalsIgnoreCase("madman"))[/code]

?

Also, your command can be enhanced to this:

[code]if (!player.getUsername().equalsIgnoreCase("madman"))
for (int i = 0; i < 3; i++)
if (player.getSkills().getLevel(i) == 99)
titles = "<col=000000>[pro]";
[/code] Edited by Hash

Share this post


Link to post
Share on other sites
  • 0
hmmmm that works for me but it removes the title for other players

Share this post


Link to post
Share on other sites
  • 0
any other ideas because im still trying to mess with it and still not working running out of ideas :(

Share this post


Link to post
Share on other sites
  • 0
i fixed the problem ty hash for trying to help

Share this post


Link to post
Share on other sites
  • 0
[quote name='madman']i fixed the problem ty hash for trying to help[/QUOTE]

Oh, the command I proposed you is if the player has 99 in both 4 skills, not if they have 99 in only one. That's why ;)

Share this post


Link to post
Share on other sites

×