mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 00:58:50 +01:00
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
Block a user