Fix sleeping ignored vanish setting overriding permission (#4201)

This commit is contained in:
Josh Roy 2021-06-06 19:12:07 -04:00 committed by GitHub
parent fed26071ac
commit ff9f93fba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}