mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Fix sleeping ignored vanish setting overriding permission (#4201)
This commit is contained in:
parent
fed26071ac
commit
ff9f93fba4
1 changed files with 1 additions and 1 deletions
|
@ -901,7 +901,7 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
|||
if (isAuthorized("essentials.vanish.effect")) {
|
||||
this.getBase().removePotionEffect(PotionEffectType.INVISIBILITY);
|
||||
}
|
||||
if (ess.getSettings().sleepIgnoresVanishedPlayers()) {
|
||||
if (ess.getSettings().sleepIgnoresVanishedPlayers() && !isAuthorized("essentials.sleepingignored")) {
|
||||
getBase().setSleepingIgnored(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue