mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-3551: Recursively unrestrict advancements
By: md_5 <git@md-5.net>
This commit is contained in:
parent
587e93b11a
commit
d68b0a0f44
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