This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz registerCustomSlashCommand: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Allejo (talk | contribs)
added bz_registerCustomSlashCommand page
 
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{apicall
#REDIRECT [[Category:BZFS API Docs]]
| name            = bz_registerCustomSlashCommand
| description    = 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.
| param1          = command
| param1type      = const char*
| param1desc      = 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.
| param2          = *handler
| param2type      = bz_CustomSlashCommandHandler
| param2desc      = The name of the handler of the slash command. i.e. &SAMPLE_PLUGIN_slashcommands
}}

Latest revision as of 02:46, 27 November 2025