mirror of
https://github.com/moparisthebest/xAuth
synced 2024-12-21 22:58:51 -05:00
Resetting of active status to 0 upon disconnect fixed
This commit is contained in:
parent
78e827eade
commit
ce9757e2d5
@ -48,7 +48,12 @@ public class LoginCommand implements CommandExecutor {
|
||||
xAuthMessages.send("loginErrPassword", player);
|
||||
return true;
|
||||
//} else if (xAuthSettings.activation && account.getActive() == 0) {
|
||||
} else if (xAuthSettings.activation && plugin.getDataManager().getActive(player.getName()) == 0) {
|
||||
}
|
||||
|
||||
int active = plugin.getDataManager().getActive(player.getName());
|
||||
account.setActive(active);
|
||||
|
||||
if (xAuthSettings.activation && active == 0) {
|
||||
xAuthMessages.send("loginErrActivate", player);
|
||||
return true;
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ public class DataManager {
|
||||
prepStmt = connection.prepareStatement(
|
||||
"SELECT `active`" +
|
||||
" FROM `" + xAuthSettings.tblAccount + "`" +
|
||||
" WHERE playername = ?"
|
||||
" WHERE `playername` = ?"
|
||||
);
|
||||
prepStmt.setString(1, playerName);
|
||||
rs = prepStmt.executeQuery();
|
||||
|
Loading…
Reference in New Issue
Block a user