mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
Remove SERVER_ONLY command flag functionality
This will throw a warning for players on 1.21.6
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user