Fix sleeping ignored vanish setting overriding permission (#4201)
This commit is contained in:
parent
fed26071ac
commit
ff9f93fba4
|
@ -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 New Issue