Lmfao, what part of this is advanced?
here, have my :layers command.. you'll have to change a few things.
Code:
if (playerCommand.equalsIgnoreCase("players")) {
c.clearNewQuestInterface();
if (PlayerHandler.getPlayerCount() == 1){
c.sendMessage("You are alone in the world.");
} else{
c.sendMessage("There are currently "+PlayerHandler.getPlayerCount()+ " players online.");
}
c.getPA().sendFrame126(Config.SERVER_NAME+" - Online Players: " + PlayerHandler.getPlayerCount()+"", 41003);
//c.getPA().sendFrame126("@whi@Online players(" + PlayerHandler.getPlayerCount()+ "):", 41009);
int line = 41009;
for (int i = 1; i < Config.MAX_PLAYERS; i++) {
Client p = c.getClient(i);
if (!c.validClient(i))
continue;
if (p.playerName != null) {
String title = "";
if (p.playerRights == 1) {
title = "@gre@Donator@whi@,@whi@ ";
}else if (p.playerRights == 2) {
title = "@red@Respected@whi@,@whi@ ";
}else if (p.playerRights == 3) {
title = "@xxx@Legendary@whi@,@whi@ ";
}else if (p.playerRights == 4) {
title = "@blu@Support@whi@,@whi@ ";
}else if (p.playerRights == 5 || p.playerRights ==6 || p.playerRights == 7) {
title = "@mag@Mod@whi@,@whi@ ";
} else if (p.playerRights == 8 || p.playerRights == 9 || p.playerRights == 10 ) {
title = "@yel@Admin@whi@,@whi@ ";
} else if (p.playerRights == 11) {
title = "@yel@Head of Staff@whi@,@whi@ ";
} else if (p.playerRights == 12) {
title = "@dre@Owner@whi@, ";
} /* else if (p.playerRights == 11); {
title = "@dre@Head of Staff@whi@, ";
} */
title += "level-" + p.combatLevel;
String extra = "";
if (p.exprate == 1) {
extra = "[ @gre@ROOKIE @whi@] ";
} else if (p.exprate == 2){
extra = "[ @yel@AVERAGE @whi@] ";
} else if (p.exprate == 3){
extra = "[@red@ LEGEND @whi@ ] ";
}
c.getPA().sendFrame126("@whi@" + extra + p.playerName + "@gre@ [@whi@"+ title + "@gre@]", line);
line++;
}
}
c.getPA().showInterface(41000);
c.flushOutStream();
}