Cuberite Forum
ExecuteConsoleCommand Issue - 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: ExecuteConsoleCommand Issue (/thread-2320.html)



ExecuteConsoleCommand Issue - JuliB - 01-16-2016

Hello. I need to use the ExecuteConsoleCommand, but it doesn't work.
Line:

lua Wrote:cPluginManager:Get():ExecuteConsoleCommand("stop")

Error:
Quote:error in function 'ExecuteConsoleCommand'.
argument #1 is 'cPluginManager'; 'cPluginManager' expected.

lua Wrote:cPluginManager:ExecuteConsolecommand
and
lua Wrote:cRoot:Get():GetPluginManager()
doesn't work too