if (player == null) {
responseLogin.setStatus((short) 1);//Username/password is wrong.
System.out.println("User '" + user_id + "' has failed to log in.");
} else {
if (client.getPlayer() == null || player.getID() != client.getPlayer().getID()) {
GameClient thread = client.getServer().getThreadByPlayerID(player.getID());
if (thread != null) {
responseLogin.setStatus((short) 2);//Account is being used.
thread.stopClient();
} else {
PlayerDAO.updateLogin(player.getID(), client.getIP());
GameServer.getInstance().setActivePlayer(player);
player.setClient(client);
player.setLastSaved(System.currentTimeMillis());