diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 1564dd717a..9f404c1a45 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -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; }