Question : spigot execute command as console
Answered by : helpful-hedgehog-ibbt0by4jbdw
ConsoleCommandSender console = Bukkit.getServer().getConsoleSender();
String command = "command";
Bukkit.dispatchCommand(console, command)
Source : | Last Update : Fri, 29 Jan 21