mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Reset pending confirmations on login (#2033)
On login, resets any pending confirmations for the user. Fixes #2021, closes #2023.
This commit is contained in:
parent
2ced9469d7
commit
16b2c3dee3
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue