mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 03:43:51 -07:00
SPIGOT-3551: Recursively unrestrict advancements
This commit is contained in:
@@ -262,6 +262,10 @@ public final class CraftServer implements Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean getPermissionOverride(ICommandListener listener) {
|
public boolean getPermissionOverride(ICommandListener listener) {
|
||||||
|
while (listener instanceof CommandListenerWrapper) {
|
||||||
|
listener = ((CommandListenerWrapper) listener).base;
|
||||||
|
}
|
||||||
|
|
||||||
return unrestrictedAdvancements && listener instanceof AdvancementRewards.AdvancementCommandListener;
|
return unrestrictedAdvancements && listener instanceof AdvancementRewards.AdvancementCommandListener;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user