dispatchcommand bukkit code example
Example: spigot dispatchcommand
//as console :
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "command");
//or as player :
player.performCommand("command without /");
//as console :
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "command");
//or as player :
player.performCommand("command without /");