Command execution from plugins
#2
To enable command blocks, you need to set CommandBlocksEnabled to true on your world.ini file on the world you want to enable command blocks.

For the command execute, here is an example:
local pluginManager = cRoot:Get():GetPluginManager()
local MyCvar = "/spawn" -- Teleports back to spawn
pluginManager:ExecuteCommand( a_Player, MyCvar )

You should also check the API for all the information, it will help alot. Smile
Reply
Thanks given by: Seadragon91 , NiLSPACE , sphinxc0re


Messages In This Thread
RE: Command execution from plugins - by JonnyBoy0719 - 10-16-2015, 03:00 AM



Users browsing this thread: 1 Guest(s)