SPIGOT-3551: Recursively unrestrict advancements

This commit is contained in:
md_5 2017-09-06 16:07:41 +10:00
parent bde2a93cfe
commit 178caf9ac2

View file

@ -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;
}