Updated some output strings to include the account name alongside the character name

This commit is contained in:
Waverunner
2015-01-19 19:11:14 -05:00
parent 7e86e7284d
commit 5743423603
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -33,11 +33,11 @@ public class ConnectionService extends Service {
for (Player p : zonedInPlayers) {
if (p.getTimeSinceLastPacket() > DISAPPEAR_THRESHOLD) {
p.setPlayerState(PlayerState.DISCONNECTED);
System.out.println(p.getCharacterName() + " disappeared");
System.out.println("[" + p.getUsername() +"]" + p.getCharacterName() + " disappeared");
new PlayerEventIntent(p, PlayerEvent.PE_DISAPPEAR).broadcast();
} else if (p.getTimeSinceLastPacket() > LD_THRESHOLD) {
if (p.getPlayerState() != PlayerState.LOGGED_OUT)
System.out.println("Logged out " + p.getCharacterName());
System.out.println("[" + p.getUsername() +"]" + "Logged out " + p.getCharacterName());
p.setPlayerState(PlayerState.LOGGED_OUT);
}
}