summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 1564dd71..9f404c1a 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;
}