From ca82b948c85e9e9f13f4ef883f6de93c30003306 Mon Sep 17 00:00:00 2001 From: Pepich Date: Tue, 7 Feb 2017 03:40:40 +0100 Subject: [PATCH] Fixed sudo --- src/com/redstoner/modules/misc/Misc.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/misc/Misc.java b/src/com/redstoner/modules/misc/Misc.java index fba5792..1d5fcc9 100644 --- a/src/com/redstoner/modules/misc/Misc.java +++ b/src/com/redstoner/modules/misc/Misc.java @@ -19,7 +19,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 1, minor = 0, revision = 2, compatible = 1) +@Version(major = 1, minor = 0, revision = 3, compatible = 1) public class Misc implements Module, Listener { private boolean enabled = false; @@ -171,7 +171,8 @@ public class Misc implements Module, Listener return true; } } - Bukkit.dispatchCommand(target, command); + Bukkit.dispatchCommand(target, command.replaceFirst("^/", "")); + Utils.sendMessage(sender, null, "Sudoed " + target + " into running " + command); } else ((Player) target).chat(command);