![]() |
Bind console command (solved) - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Bind console command (solved) (/thread-2271.html) |
Bind console command (solved) - JuliB - 12-25-2015 Hello, I wrote a plugin that works (hooray:D) when I execute it as user, but I can't execute it via the console. (Unknown command...) I use the cPluginManager.BindCommand - hook. Are more details necessary? Do I need another hook? Julian RE: Bind console command - xoft - 12-25-2015 There's another function for binding console commands: cPluginManager:BindConsoleCommand(). That's because console command handler functions have a different signature than in-game command functions. RE: Bind console command - JuliB - 12-25-2015 Thank you and facepalm! Juli |