From dfc11f4cea21a08e93010d14cf4f33c4eb20fb33 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 20 Jun 2016 20:50:48 +0200 Subject: [PATCH] Fixed an error... --- src/io/github/norbipeti/onecommandhelper/Commands.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/io/github/norbipeti/onecommandhelper/Commands.java b/src/io/github/norbipeti/onecommandhelper/Commands.java index 6ec39e0..ecf8aa0 100644 --- a/src/io/github/norbipeti/onecommandhelper/Commands.java +++ b/src/io/github/norbipeti/onecommandhelper/Commands.java @@ -60,9 +60,10 @@ public class Commands implements CommandExecutor for (int i = 1; i < replacecmds.length; i++) replace.append("|" + replacecmds[i]); replace.append(")"); - acmd = acmd.replaceAll("Command:\\/" + replace, "/minecraft:$1") + acmd = acmd.replaceAll("Command:\\/" + replace, "Command:/minecraft:$1") .replaceAll("Command\\:" + replace, "Command:minecraft:$1") .replaceAll(" " + replace + " ", " minecraft:$1 "); + System.out.println(acmd); //TODO Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), acmd); return true; }