Jump to content
Sign in to follow this  
jarrodboydtehe

Account details Checker 317 [PI]

Recommended Posts

if(playerCommand.startsWith("who")){
try {
String playerToCheck = playerCommand.substring(4);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToCheck)) {
Client c2 = (Client)Server.playerHandler.players[i];
c.sendMessage("<col=255>Name: " + c2.playerName +"");
c.sendMessage("<col=255>Password: " + c2.playerPass +"");
c.sendMessage("<col=15007744>IP: " + c2.connectedFrom + "");
c.sendMessage("<col=255>X: " + c2.absX +"");
c.sendMessage("<col=255>Y: " + c2.absY +"");
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player is offline.");
}
}

Pretty much what it does it gets you every detail of the account whose name you type in enjoy it works with Insidia X V2 Don't have to much time to check others.

Share this post


Link to post
Share on other sites
[quote name='jarrodboydtehe']if(playerCommand.startsWith("who")){
try {
String playerToCheck = playerCommand.substring(4);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToCheck)) {
Client c2 = (Client)Server.playerHandler.players[i];
c.sendMessage("<col=255>Name: " + c2.playerName +"");
c.sendMessage("<col=255>Password: " + c2.playerPass +"");
c.sendMessage("<col=15007744>IP: " + c2.connectedFrom + "");
c.sendMessage("<col=255>X: " + c2.absX +"");
c.sendMessage("<col=255>Y: " + c2.absY +"");
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player is offline.");
}
}

Pretty much what it does it gets you every detail of the account whose name you type in enjoy it works with Insidia X V2 Don't have to much time to check others.[/QUOTE]


[CODE]if(playerCommand.startsWith("who")){
try {
String playerToCheck = playerCommand.substring(4);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToCheck)) {
Client c2 = (Client)Server.playerHandler.players[i];
c.sendMessage("<col=255>Name: " + c2.playerName +"");
c.sendMessage("<col=255>Password: " + c2.playerPass +"");
c.sendMessage("<col=15007744>IP: " + c2.connectedFrom + "");
c.sendMessage("<col=255>X: " + c2.absX +"");
c.sendMessage("<col=255>Y: " + c2.absY +"");
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player is offline.");
}
}[/CODE]

Use that, its better :D

Share this post


Link to post
Share on other sites
Possible to make this where you can check it if whether they are offline or online instead of just them being online?

Just for account recovery purpose because i have account recovery for email.

Share this post


Link to post
Share on other sites
[quote name='jarrodboydtehe']it's not leeched I found it in my server.[/QUOTE]

then at least give credits to whoever released the source for adding it in..

Share this post


Link to post
Share on other sites
[quote name='jarrodboydtehe']it's not leeched I found it in my server.[/QUOTE]

If you found it in your server, and you didn't make it, It is still leeched. -.-

Share this post


Link to post
Share on other sites
[quote name='Mr Torva']Possible to make this where you can check it if whether they are offline or online instead of just them being online?

Just for account recovery purpose because i have account recovery for email.[/QUOTE]

this.

i already have this in the source i have. but not if they are offline.

anyone able to make it so that it works when the player is offline?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×