r173: Register/bind commands
#8
(02-24-2011, 10:54 PM)FakeTruth Wrote: 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

Heart
I love it when i get to type less.
:P
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)