@ -49,7 +49,7 @@ public class dbAccountHandler extends dbHandlerBase {
public void WRITE_ADMIN_LOG(String adminName, String logEntry) {
prepareCallable("INSERT INTO dyn_admin_log(`DateTime`, `Account`, `Event`)"
prepareCallable("INSERT INTO dyn_admin_log(`dateTime`, `charName`, `eventString`)"
+ " VALUES (?, ?, ?)");
setTimeStamp(1, System.currentTimeMillis());
setString(2, adminName);
@ -204,7 +204,7 @@ public enum DevCmdManager {
+ ") '";
logString += cmd + ' ' + argString + '\'';
Logger.info( logString);
DbManager.AccountQueries.WRITE_ADMIN_LOG(pcName, cmd + " " + argString);
DbManager.AccountQueries.WRITE_ADMIN_LOG(pcName, "COMMAND: " + cmd + " " + argString);
// execute command;
try {
@ -115,7 +115,8 @@ public class LoginToGameServerMsgHandler extends AbstractClientMsgHandler {
// Log Admin Login Event
if (pc.getAccount().status.equals(Enum.AccountStatus.ADMIN))
DbManager.AccountQueries.WRITE_ADMIN_LOG(pc.getCombinedName(), "ADMIN LOGIN EVENT");
DbManager.AccountQueries.WRITE_ADMIN_LOG(pc.getCombinedName(), "ADMIN LOGIN");
DbManager.AccountQueries.SET_ACCOUNT_LOGIN(sessionInfo.getAccount(), sessionInfo.getPlayerCharacter().getName(), origin.getClientIpAddress(), sessionInfo.getMachineID());
return true;
}