Uknown Command
#10
(05-11-2015, 04:45 PM)xoft Wrote: You can just put the reverse-compatibility layer (PluginManager = cPluginManager) to a separate file in your plugin and it will get loaded along with the other files. But as I said, the mapping will not solve everything, that's why it's not being done in the first place.

The subcommands have always supported permissions assigned to them, but they don't support inheriting permissions from their parent.
For example, consider you have a command "cmd" with a child "cmd sub". If you assign a permission to "cmd sub" it will not be checked for "cmd" (which is quite logical). But if you assign a permission to "cmd", it will not be checked for "cmd sub", which is somewhat counter-intuitive.

It doesn't matter much, because you can check any number of permissions inside the handler, using the cPlayer:HasPermission() function.

Oh, cool. Neat to know that the file will get automatically loaded on top of my main plugin file. No need for require() then.

Ahh, I see. I didn't realize the parent part. Must of skipped past it in my head. I get it now.
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: 2 Guest(s)