r173: Register/bind commands
#6
In r174 you can now also specify the permissions of a command, so you don't have to manually check it.
Code:
self:BindCommand("/god", HandleGodCommand) -- This still works, but you have to manually check permissions
self:BindCommand( "/god", "myplugin.god", HandleGodCommand) -- New version where permissions are checked for you
Both methods work.

You still need to use the AddCommand function for the /help plugin. This is because you might have several command aliases ( /item and /i ) but you don't want all aliases to show in the command list.
Reply
Thanks given by:


Messages In This Thread
r173: Register/bind commands - by FakeTruth - 02-24-2011, 04:06 AM
RE: r173: Register/bind commands - by Tybor - 02-24-2011, 04:43 AM
RE: r173: Register/bind commands - by FakeTruth - 02-24-2011, 05:39 AM
RE: r173: Register/bind commands - by Tybor - 02-24-2011, 07:19 AM
RE: r173: Register/bind commands - by FakeTruth - 02-24-2011, 09:10 AM
RE: r173: Register/bind commands - by FakeTruth - 02-24-2011, 10:54 PM
RE: r173: Register/bind commands - by Tim - 02-25-2011, 10:15 PM
RE: r173: Register/bind commands - by Tybor - 02-25-2011, 02:36 AM



Users browsing this thread: 1 Guest(s)