mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
SPIGOT-3551: Recursively unrestrict advancements
This commit is contained in:
parent
bde2a93cfe
commit
178caf9ac2
1 changed files with 4 additions and 0 deletions
|
@ -262,6 +262,10 @@ public final class CraftServer implements Server {
|
|||
}
|
||||
|
||||
public boolean getPermissionOverride(ICommandListener listener) {
|
||||
while (listener instanceof CommandListenerWrapper) {
|
||||
listener = ((CommandListenerWrapper) listener).base;
|
||||
}
|
||||
|
||||
return unrestrictedAdvancements && listener instanceof AdvancementRewards.AdvancementCommandListener;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue