mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-16 15:45:58 +01: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
@ -308,6 +308,9 @@ public class EssentialsPlayerListener implements Listener {
|
|||||||
user.setGodModeEnabled(false);
|
user.setGodModeEnabled(false);
|
||||||
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 New Issue
Block a user