Well i just kind of scratched this up for you but here you go..
Code:
if (playerCommand.equalsIgnoreCase("staff") && c.playerRights <= 1) {
c.sendMessage("There are currently "+PlayerHandler.getPlayerCount()+ " staff online.");
c.getPA().sendFrame126("Staff Online", 8144);
c.getPA().sendFrame126("@dbl@Online Staff(" + PlayerHandler.getPlayerCount()+ "):", 8145);
int line = 8147;
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 = "Moderator, ";
} else if (p.playerRights == 2) {
title = "Admin, ";
} else if (p.playerRights == 3) {
title = "Owner, ";
}
title += "level-" + p.combatLevel;
String extra = "";
if (c.playerRights > 0) {
extra = "(" + p.playerId + ") ";
}
c.getPA().sendFrame126("@dre@" + extra + p.playerName + "@dbl@ ("+ title + ") is at " + p.absX + ", "+ p.absY, line);
line++;
}
}
c.getPA().showInterface(8134);
c.flushOutStream();
}
}
Not all my work at all most credits to <Zenocko >