0

Fixed sudo

This commit is contained in:
Pepich 2017-02-07 03:40:40 +01:00
parent 43981f77ed
commit ca82b948c8

View File

@ -19,7 +19,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class Misc implements Module, Listener
{ {
private boolean enabled = false; private boolean enabled = false;
@ -171,7 +171,8 @@ public class Misc implements Module, Listener
return true; return true;
} }
} }
Bukkit.dispatchCommand(target, command); Bukkit.dispatchCommand(target, command.replaceFirst("^/", ""));
Utils.sendMessage(sender, null, "Sudoed " + target + " into running " + command);
} }
else else
((Player) target).chat(command); ((Player) target).chat(command);