Spigot Execute Command As Console

[Solved] Spigot Execute Command As Console | Java - Code Explorer | yomemimo.com
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

Answers related to spigot execute command as console

Code Explorer Popular Question For Java