Bugfix - unregistering didn't de-authenticate player.

This commit is contained in:
samo_lego 2020-04-11 19:32:10 +02:00
parent 2430d220d1
commit c4ca8ca18f
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public class UnregisterCommand {
return 0;
}
else if (AuthHelper.checkPass(player.getUuidAsString(), pass.toCharArray())) {
SimpleAuth.deauthenticatePlayer(player);
SimpleAuth.db.delete(player.getUuidAsString(), null);
player.sendMessage(accountDeleted);
return 1;