mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Fix unknown cmd msg for mc namespaced cmds (#9059)
This commit is contained in:
parent
f8be86a50e
commit
771aa3ec89
@ -87,13 +87,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||||||
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
||||||
|
}
|
||||||
if (command instanceof VanillaCommandWrapper) {
|
node = clone;
|
||||||
LiteralCommandNode<CommandSourceStack> node = (LiteralCommandNode<CommandSourceStack>) ((VanillaCommandWrapper) command).vanillaCommand;
|
}
|
||||||
+ dispatcher.vanillaCommandNodes.add(node); // Paper
|
+ dispatcher.vanillaCommandNodes.add(node); // Paper
|
||||||
if (!node.getLiteral().equals(label)) {
|
|
||||||
LiteralCommandNode<CommandSourceStack> clone = new LiteralCommandNode(label, node.getCommand(), node.getRequirement(), node.getRedirect(), node.getRedirectModifier(), node.isFork());
|
|
||||||
|
|
||||||
|
dispatcher.getDispatcher().getRoot().addChild(node);
|
||||||
|
} else {
|
||||||
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
||||||
|
|
||||||
// Spigot start
|
// Spigot start
|
||||||
|
Loading…
Reference in New Issue
Block a user