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 eUnknownSlashCommand: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
No edit summary
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Events}}
 
==Overview==
The '''bz_eUnknownSlashCommand''' is an API event that is called when the [[BZFS]] server does not have an installed handler for a specific [[Slash_Commands|slash command]].
 
==Data==
'''bz_eUnknownSlashCommand''' returns the '''bz_UnknownSlashCommandEventData_V1''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_eUnknownSlashCommandEvent
  |-
  |from
  |int
  |The player who sent the slash command
  |-
  |handled
  |bool
  |The current state representing if the command has been handled by a previous plug-in. Plug-ins that handle the command should set this value to true to communicate it's state to other plug-ins that have yet to process.
  |-
  |message
  |[[bz_ApiString]]
  |The full text of the chat message for the slash command, containing the command and all associated parameters.
  |-
  |time
  |double
  |The local server time of the event.
  |}
 
==Uses==
This event should not be used by plug-ins to implement custom slash commands. This event is in the process of being deprectated and should be replaced with uses of [[bz_registerCustomSlashCommand]].
 
[[Category:BZFS_API_Docs]]
[[Category:BZFS_API_Events]]

Latest revision as of 02:46, 27 November 2025