You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Karthlan edited this page Aug 4, 2012
·
2 revisions
Command is a lua class assisting in creating new player commands.
Functions
Command:New(Command name) – Used to create a new instance.
self:register() – Used to register the command.
self.handler(event) – Override to set callback for the command.
Variables
self.words – The word used for calling the function.
self.groups – The groups allowed to use the command, use "All" to let all groups use the command and use group names in an array to let certain groups use the command. Ex. {"Gamemaster", "Senior Gamemaster"}.
Event Structure
event.player – The player who called the command.
event.param – The parameter passed in the command. Ex. /goto Azlan.