From d171d7eb8e1ceb21b398279a645278bcab12f00a Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 11 Feb 2020 12:03:36 +1100 Subject: [PATCH] SPIGOT-5572: Fix console/API completion of Vanilla commands --- .../org/bukkit/craftbukkit/command/VanillaCommandWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java index a3ae4a9ffa..f344614600 100644 --- a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java +++ b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java @@ -91,6 +91,6 @@ public final class VanillaCommandWrapper extends BukkitCommand { } private String toDispatcher(String[] args, String name) { - return "/" + name + ((args.length > 0) ? " " + Joiner.on(' ').join(args) : ""); + return name + ((args.length > 0) ? " " + Joiner.on(' ').join(args) : ""); } }