Remove SERVER_ONLY command flag functionality

This will throw a warning for players on 1.21.6
This commit is contained in:
Owen1212055
2025-06-06 22:42:24 -04:00
parent 7c2ffd5e57
commit c609d6dc29
4 changed files with 7 additions and 7 deletions

View File

@@ -178,7 +178,7 @@
}
return null;
@@ -392,17 +_,111 @@
@@ -392,17 +_,110 @@
}
public void sendCommands(ServerPlayer player) {
@@ -252,7 +252,6 @@
+ }
+ // Paper end - Brigadier API
+ if (!org.spigotmc.SpigotConfig.sendNamespaced && commandNode.getName().contains(":")) continue; // Spigot
+ if (commandNode.wrappedCached != null && commandNode.wrappedCached.apiCommandMeta != null && commandNode.wrappedCached.apiCommandMeta.serverSideOnly()) continue; // Paper
if (commandNode.canUse(source)) {
ArgumentBuilder<S, ?> argumentBuilder = commandNode.createBuilder();
+ // Paper start