Browse Source

Admin login events captured.

master
MagicBot 2 years ago
parent
commit
21ff024bf8
  1. 4
      src/engine/net/client/handlers/LoginToGameServerMsgHandler.java

4
src/engine/net/client/handlers/LoginToGameServerMsgHandler.java

@ -112,6 +112,10 @@ public class LoginToGameServerMsgHandler extends AbstractClientMsgHandler { @@ -112,6 +112,10 @@ public class LoginToGameServerMsgHandler extends AbstractClientMsgHandler {
Logger.info("Login from Account: " + sessionInfo.getAccount().getUname() + " Character: " +
sessionInfo.getPlayerCharacter().getName() + " machineID: " + sessionInfo.getMachineID());
// Log Admin Login Event
if (pc.getAccount().status.equals(Enum.AccountStatus.ADMIN))
DbManager.AccountQueries.WRITE_ADMIN_LOG(pc.getCombinedName(), "ADMIN LOGIN EVENT");
DbManager.AccountQueries.SET_ACCOUNT_LOGIN(sessionInfo.getAccount(), sessionInfo.getPlayerCharacter().getName(), origin.getClientIpAddress(), sessionInfo.getMachineID());
return true;
}

Loading…
Cancel
Save