String hash = database.getAuth(name).getHash();
try {
if (PasswordSecurity.comparePasswordWithHash(args[0], hash)) {
PlayerAuth auth = new PlayerAuth(name, hash, ip, new Date().getTime());
database.updateSession(auth);
PlayerCache.getInstance().addPlayer(auth);
LimboPlayer limbo = LimboCache.getInstance().getLimboPlayer(name);
if (limbo != null) {
player.getInventory().setContents(limbo.getInventory());