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