mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +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
|
@ -309,6 +309,9 @@ public class EssentialsPlayerListener implements Listener {
|
||||||
ess.getLogger().log(Level.INFO, "Set god mode to false for {0} because they had it enabled without permission.", user.getName());
|
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();
|
user.stopTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue