Xdragon
June 20th, 2010, 19:48
You need only to copy and paste lol
Open client.java and do this whith your other Commands:
if (command.equalsIgnoreCase("players")) {
sM("There are currently " + PlayerHandler.getPlayerCount()
+ " players!");
sendQuest("@dre@SERVERNAME - Online Players", 8144);
clearQuestInterface();
sendQuest("@dbl@Online players(" + PlayerHandler.getPlayerCount()
+ "):", 8145);
int line = 8146;
for (int i = 1; i < PlayerHandler.maxPlayers; i++) {
client playa = getClient(i);
if (!validClient(i))
continue;
if (playa.playerName != null) {
String title = "";
if (playa.playerRights == 1) {
title = "Mod, ";
} else if (playa.playerRights == 2) {
title = "Admin, ";
}
title += "level-" + playa.combatLevel;
String extra = "";
if (playerRights > 0) {
extra = "(" + playa.playerId + ") ";
}
sendQuest("@dre@" + extra + playa.playerName + "@dbl@ ("
+ title + ") is at " + playa.absX + ", "
+ playa.absY, line);
line++;
}
}
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
If that Dont work try this one :
if (command.equalsIgnoreCase("players")) {
sM("There are currently " + onlinePlayers + " players!");
sendQuest("@dre@SERVERNAME - @RED@O@bla@@blu@n@bla@@gre@line@bla@ @red@Players@bla@", 8144);
clearQuestInterface();
sendQuest("@dbl@Online players(" + PlayerHandler.getPlayerCount()
+ "):", 8145);
int line = 8146;
for (int i = 1; i < PlayerHandler.maxPlayers; i++) {
client playa = getClient(i);
if (!validClient(i))
continue;
if (playa.playerName != null) {
String title = "";
if (playa.playerRights == 1) {
title = "Mod, ";
} else if (playa.playerRights == 2) {
title = "Admin, ";
}
title += "level-" + playa.combatLevel;
String extra = "";
if (playerRights > 0) {
extra = "(" + playa.playerId + ") ";
}
sendQuest("@dre@" + extra + playa.playerName + "@dbl@ ("
+ title + ") is at " + playa.absX + ", "
+ playa.absY, line);
line++;
}
}
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
I didnt make this i dont know who did but i thought more helpful threads more people here :D
So no Credit for me !
Have fun!
Open client.java and do this whith your other Commands:
if (command.equalsIgnoreCase("players")) {
sM("There are currently " + PlayerHandler.getPlayerCount()
+ " players!");
sendQuest("@dre@SERVERNAME - Online Players", 8144);
clearQuestInterface();
sendQuest("@dbl@Online players(" + PlayerHandler.getPlayerCount()
+ "):", 8145);
int line = 8146;
for (int i = 1; i < PlayerHandler.maxPlayers; i++) {
client playa = getClient(i);
if (!validClient(i))
continue;
if (playa.playerName != null) {
String title = "";
if (playa.playerRights == 1) {
title = "Mod, ";
} else if (playa.playerRights == 2) {
title = "Admin, ";
}
title += "level-" + playa.combatLevel;
String extra = "";
if (playerRights > 0) {
extra = "(" + playa.playerId + ") ";
}
sendQuest("@dre@" + extra + playa.playerName + "@dbl@ ("
+ title + ") is at " + playa.absX + ", "
+ playa.absY, line);
line++;
}
}
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
If that Dont work try this one :
if (command.equalsIgnoreCase("players")) {
sM("There are currently " + onlinePlayers + " players!");
sendQuest("@dre@SERVERNAME - @RED@O@bla@@blu@n@bla@@gre@line@bla@ @red@Players@bla@", 8144);
clearQuestInterface();
sendQuest("@dbl@Online players(" + PlayerHandler.getPlayerCount()
+ "):", 8145);
int line = 8146;
for (int i = 1; i < PlayerHandler.maxPlayers; i++) {
client playa = getClient(i);
if (!validClient(i))
continue;
if (playa.playerName != null) {
String title = "";
if (playa.playerRights == 1) {
title = "Mod, ";
} else if (playa.playerRights == 2) {
title = "Admin, ";
}
title += "level-" + playa.combatLevel;
String extra = "";
if (playerRights > 0) {
extra = "(" + playa.playerId + ") ";
}
sendQuest("@dre@" + extra + playa.playerName + "@dbl@ ("
+ title + ") is at " + playa.absX + ", "
+ playa.absY, line);
line++;
}
}
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
I didnt make this i dont know who did but i thought more helpful threads more people here :D
So no Credit for me !
Have fun!