mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01: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…
Reference in a new issue