mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
This commit is contained in:
parent
eb341c0704
commit
91b2622ba2
1 changed files with 5 additions and 0 deletions
|
@ -301,6 +301,11 @@ public class EssentialsPlayerListener implements Listener {
|
|||
ess.getLogger().log(Level.INFO, "Set socialspy to false for {0} because they had it enabled without permission.", user.getName());
|
||||
}
|
||||
|
||||
if (user.isGodModeEnabled() && !user.isAuthorized("essentials.god")) {
|
||||
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.stopTransaction();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue