Spigot выполнить команду в качестве консоли

ConsoleCommandSender console = Bukkit.getServer().getConsoleSender();
String command = "command";
Bukkit.dispatchCommand(console, command)
Helpful Hedgehog