geforkt von Mirrors/Paper
SPIGOT-3551: Recursively unrestrict advancements
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
587e93b11a
Commit
d68b0a0f44
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren