This wiki is archived and useful information is being migrated to the main bzflag.org website

bz_registerCustomSlashCommand

From BZFlagWiki
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