Reset pending confirmations on login (#2033)

On login, resets any pending confirmations for the user. Fixes #2021,
closes #2023.
This commit is contained in:
md678685 2018-06-15 19:09:27 +01:00 committed by GitHub
parent 2ced9469d7
commit 16b2c3dee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -308,6 +308,9 @@ public class EssentialsPlayerListener implements Listener {
user.setGodModeEnabled(false);
ess.getLogger().log(Level.INFO, "Set god mode to false for {0} because they had it enabled without permission.", user.getName());
}
user.setConfirmingClearCommand(null);
user.getConfirmingPayments().clear();
user.stopTransaction();
}