Uknown Command
#3
(05-10-2015, 03:51 PM)xoft Wrote: The cPluginManager:BindCommand() function doesn't support multi-word commands. You can only register the first word, and provide a handler that will handle the additional words.

A much better (and simpler) way is to use the Info.lua file: http://mc-server.xoft.cz/LuaAPI/InfoFile.html
There you can define multi-word commands and the helper library InfoReg.lua will take care of registering everything for you and providing the command handlers needed to make it all work. Not to mention that the Info.lua file makes a great documentation for your plugin.

Alright, I'll give the info.lua stuff a look. Quick question, I notice that the API has .BindCommand and :BindCommand what is the difference between the two?
Reply
Thanks given by:


Messages In This Thread
Uknown Command - by Shadowraix - 05-10-2015, 12:10 PM
RE: Uknown Command - by xoft - 05-10-2015, 03:51 PM
RE: Uknown Command - by Shadowraix - 05-10-2015, 04:15 PM
RE: Uknown Command - by xoft - 05-10-2015, 04:22 PM
RE: Uknown Command - by Shadowraix - 05-11-2015, 04:56 AM
RE: Uknown Command - by worktycho - 05-11-2015, 05:32 AM
RE: Uknown Command - by xoft - 05-11-2015, 07:28 AM
RE: Uknown Command - by Shadowraix - 05-11-2015, 09:42 AM
RE: Uknown Command - by xoft - 05-11-2015, 04:45 PM
RE: Uknown Command - by Shadowraix - 05-12-2015, 06:49 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:02 AM
RE: Uknown Command - by Shadowraix - 05-12-2015, 07:07 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:22 AM
RE: Uknown Command - by Shadowraix - 05-12-2015, 07:27 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:24 AM



Users browsing this thread: 6 Guest(s)