bz_registerCustomSlashCommand

From BZFlagWiki
Revision as of 05:33, 15 June 2011 by Allejo (Talk | contribs) (added bz_registerCustomSlashCommand page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

void bz_registerCustomSlashCommand (const char* command, bz_CustomSlashCommandHandler *handler)


Registers a custom slash commands that is used by the plugin. The event listener must later be unregistered by a call to bz_removeCustomSlashCommand in the bz_Unload (2.0.x) or Cleaup() (2.4+) function.

Parameters:
command  -  The custom slash command that this listener was previously registered to handle. This is so that if this listener is registered for multiple event types, only one of those will be removed.
*handler  -  The name of the handler of the slash command. i.e. &SAMPLE_PLUGIN_slashcommands