https://wiki.bzflag.org/index.php?title=BZFS_API_Events&feed=atom&action=historyBZFS API Events - Revision history2024-03-28T16:19:40ZRevision history for this page on the wikiMediaWiki 1.26.3https://wiki.bzflag.org/index.php?title=BZFS_API_Events&diff=9151&oldid=prevZehra: created page BZFS API Events2016-11-25T02:46:59Z<p>created page BZFS API Events</p>
<p><b>New page</b></p><div>A comparison and overview of BZFS API events.<br />
<br />
{|{{Prettytable}}<br />
|-<br />
| {{Hl3}} |'''BZFS API event''' <br />
| {{Hl3}} |'''Function''' <br />
|-<br />
| [[bz eAllowAutoPilotChangeEvent]] || bz_eAllowAutoPilotChangeEvent is an API event that is called each time a player is about to change autopilot.<br />
|-<br />
| [[bz eAllowCTFCaptureEvent]] || bz_eAllowCTFCapEvent is an API event that is called each time a flag is about to be captured.<br />
|-<br />
| [[bz eAllowFlagGrab]] || bz_eAllowFlagGrab is an API event that is called each time a player is about to grab a flag.<br />
|-<br />
| [[bz eAllowKillCommandEvent]] || bz_eAllowKillCommandEvent is an API event that is called each the /kill command is executed.<br />
|-<br />
| [[bz eAllowPlayer]] || bz_eAllowPlayer is an API event that is called each time a player connects to the server.<br />
|-<br />
| [[bz eAllowSpawn]] || bz_eAllowSpawn is an API event called before a player respawns.<br />
|-<br />
| [[bz eAnointRabbitEvent]] || Bz_eAnointRabbitEvent is an API event that is called each time a new rabbit is to be selected.<br />
|-<br />
| [[bz eAuthenticatonComplete]] || bz_eAuthenticatonComplete is an API event that is called each time global authentication for a player is complete.<br />
|-<br />
| [[bz eAutoPilotChangeEvent]] || bz_eAutoPilotChangeEvent is an API event that is called each time a player is about to change autopilot.<br />
|-<br />
| [[bz eBanEvent]] || bz_eBanEvent is an API event that is called each time a regular ban is executed.<br />
|-<br />
| [[bz eBZDBChange]] || bz_eBZDBChange is an API event that is called each time a BZDB variable is changed.<br />
|-<br />
| [[bz eCaptureEvent]] || bz_eCaptureEvent is an API event that is called each time a team's flag has been captured.<br />
|-<br />
| [[bz eFilteredChatMessageEvent]] || bz_eFilteredChatMessageEvent is an API event that is called for each chat message the server receives. It is called after the server or any plug-ins have done chat filtering. <br />
|-<br />
| [[bz eFlagDroppedEvent]] || bz_eFlagDroppedEvent is an API event that is called each time a flag is dropped by a player.<br />
|-<br />
| [[bz eFlagGrabbedEvent]] || bz_eFlagGrabbedEvent is an API event that is called each time a flag is grabbed by a player.<br />
|-<br />
| [[bz eFlagResetEvent]] || bz_eFlagResetEvent is an API event that is called each time a flag is reset. <br />
|-<br />
| [[bz eFlagTransferredEvent]] || bz_eFlagTransferredEvent is an API event that is called each time a player with Thief steals a flag. <br />
|-<br />
| [[bz eGameEndEvent]] || bz_eGameEndEvent is an API event that is called each time a game ends. This only triggers when the game countdown ends (A Game Over), or when /superkill is initiated.<br />
|-<br />
| [[bz eGamePauseEvent]] || bz_eGamePauseEvent and bz_eGameResumeEvent are API events triggered when a game (i.e., a time- or score-limited match) pauses or resumes, respectively<br />
|-<br />
| [[bz eGameResumeEvent]] || bz_eGamePauseEvent and bz_eGameResumeEvent are API events triggered when a game (i.e., a time- or score-limited match) pauses or resumes, respectively. <br />
|-<br />
| [[bz eGameStartEvent]] || bz_eGameStartEvent and bz_eGameEndEvent are API events triggered when a game (i.e., a time- or score-limited match) begins or ends, respectively.<br />
|-<br />
| [[bz eGetAutoTeamEvent]] || bz_eGetAutoTeamEvent is an API event that is called for each new player is added to a team. <br />
|-<br />
| [[bz eGetPlayerInfoEvent]] || bz_eGetPlayerInfoEvent is an API event that is called each time the server sends out a player info update message to a remote player.<br />
|-<br />
| [[bz eGetPlayerMotto]] || bz_eGetPlayerMotto is an API event that is called when the player joins. It gives us the motto of the player. <br />
|-<br />
| [[bz eGetPlayerSpawnPosEvent]] || bz_eGetPlayerSpawnPosEvent is an API event that is called each time the server needs a new spawn position. <br />
|-<br />
| [[bz eGetWorldEvent]] || bz_eGetWorldEvent is an API event that is called before the BZFS server defines the world. <br />
|-<br />
| [[bz eHostBanModifyEvent]] || bz_eHostBanModifyEvent is an API event that is called each time before a hostban is going to happen.<br />
|-<br />
| [[bz eHostBanNotifyEvent]] || bz_eHostBanNotifyEvent is an API event that is called each time a hostban is executed. <br />
|-<br />
| [[bz eIdBanEvent]] || bz_eIdBanEvent is an API event that is called each time a ban on bzid (idban) is executed.<br />
|-<br />
| [[bz eIdleNewNonPlayerConnection]] || bz_eIdleNewNonPlayerConnection is an API event that is called each time there is an idle connection. <br />
|-<br />
| [[bz eKickEvent]] || bz_eKickEvent is an API event triggered when a player is kicked from the server. This event may be triggered by both the /kick Slash Command,another plug-in, or the game's core logic...<br />
|-<br />
| [[bz eKillEvent]] || bz_eKillEvent is an API event triggered when a player sends the /kill Slash Command to kill another player.<br />
|-<br />
| [[bz eListServerUpdateEvent]] || bz_eListServerUpdateEvent is an API event called before the server adds itself to the list server. <br />
|-<br />
| [[bz eLoggingEvent]] || bz_eLoggingEvent is an API event called whenever a debug message is outputted. These can normally be seen with the -d verbose options.<br />
|-<br />
| [[bz eLuaDataEvent]] || bz_eLuaDataEvent is an API event that is called each time a BZDB variable is changed.<br />
|-<br />
| [[bz eMessageFilteredEvent]] || bz_eMessageFilteredEvent is an API event that is called whenever a message is censored by the swear filter.<br />
|-<br />
| [[bz eMsgDebugEvent]] || bz_eMsgDebugEvent is an API event called every time packets are sent to the server.<br />
|-<br />
| [[bz eNetDataReceiveEvent]] || bz_eNetDataReceiveEvent is an API event that is called each time net data is received.<br />
|-<br />
| [[bz eNetDataSendEvent]] || bz_eNetDataSendEvent is an API event that is called each time net data is sent. <br />
|-<br />
| [[bz eNewNonPlayerConnection]] || bz_eNewNonPlayerConnection is an API event that is called each time there is a connection to the server not from a player. <br />
|-<br />
| [[bz eNewRabbitEvent]] || Bz_eNewRabbitEvent is an API event that is called each time a new rabbit is selected. <br />
|-<br />
| [[bz eNullEvent]] || bz_eNullEvent is the start point for the bz_eEventType enumeration. It is never called and has no data. <br />
|-<br />
| [[bz ePlayerAuthEvent]] || bz_ePlayerAuthEvent is an API event triggered when a player's authorization status changes. <br />
|-<br />
| [[bz ePlayerCollision]] || bz_ePlayerCollision is an API event that is called each time two players collide.<br />
|-<br />
| [[bz ePlayerCustomDataChanged]] || bz_ePlayerCustomDataChanged is an API event that is called each time bz_setPlayerCustomData() is run. <br />
|-<br />
| [[bz ePlayerDieEvent]] || bz_ePlayerDieEvent is an API event that is called each time a tank is killed. <br />
|-<br />
| [[bz ePlayerJoinEvent]] || bz_ePlayerJoinEvent is an API event that is called each time a player joins the game. <br />
|-<br />
| [[bz ePlayerPartEvent]] || bz_ePlayerPartEvent is an API event that is called each time a player parts (ie, leaves) a game. <br />
|-<br />
| [[bz ePlayerPausedEvent]] || bz_ePlayerPausedEvent is an API event that is called each time a playing tank is paused. <br />
|-<br />
| [[bz ePlayerPauseRequestEvent]] || bz_ePlayerPauseRequestEvent is an API event that is called each time a player wants to pause.<br />
|-<br />
| [[bz ePlayerScoreChanged]] || bz_ePlayerScoreChanged is an API event that is called when a player's score changes.<br />
|-<br />
| [[bz ePlayerSentCustomData]] || bz_ePlayerSentCustomData is an API event that is called each time a player is sent custom data. <br />
|-<br />
| [[bz ePlayerSpawnEvent]] || bz_ePlayerSpawnEvent is an API event that is called each time a playing tank is being spawned into the world.<br />
|-<br />
| [[bz ePlayerTeamChangeEvent]] || bz_ePlayerTeamChangeEvent is an API event that is called each time a player switches teams via bz_changeTeam().<br />
|-<br />
| [[bz ePlayerUpdateDoneEvent]] || bz_ePlayerUpdateDoneEvent is an API event that is called each time a player update finishes. <br />
|-<br />
| [[bz ePlayerUpdateEvent]] || bz_ePlayerUpdateEvent is an API event that is called each time a player sends an update to the server. <br />
|-<br />
| [[bz ePluginLoaded]] || bz_ePluginLoaded is an API event that is called each time a plugin is loaded. <br />
|-<br />
| [[bz ePluginUnloaded]] || bz_ePluginUnloaded is an API event that is called when a plugin is unloaded. <br />
|-<br />
| [[bz eRawChatMessageEvent]] || bz_eRawChatMessageEvent is an API event that is called for each chat message the server receives. It is called before any filtering is done. <br />
|-<br />
| [[bz eReloadEvent]] || bz_eReloadEvent is an API event that is called each time a player reloads. <br />
|-<br />
| [[bz eReportFiledEvent]] || bz_eReportFiledEvent is an API event that is called each time a player or plugin files a report.<br />
|-<br />
| [[bz eServerMsgEvent]] || bz_eServerMsgEvent is an API event that is called each time the server sends a message.<br />
|-<br />
| [[bz eShotEndedEvent]] || bz_eShotEndedEvent is an API event that is called each time a shot ends. <br />
|-<br />
| [[bz eShotExpiredEvent]] || bz_eShotExpiredEvent is an API event that is called each time a shot expires. <br />
|-<br />
| [[bz eShotFiredEvent]] || bz_eShotFiredEvent is an API event that is called each time a shot is fired. <br />
|-<br />
| [[bz eShotRicochetEvent]] || bz_eShotRicochetEvent is an API event that is called each time a shot ricochetes. <br />
|-<br />
| [[bz eShotStoppedEvent]] || bz_eShotStoppedEvent is an API event that is called each time a shot stops.<br />
|-<br />
| [[bz eShotTeleportEvent]] || bz_eShotTeleportEvent is an API event that is called each time a shot teleports via a teleporter. <br />
|-<br />
| [[bz eSlashCommandEvent]] || bz_eSlashCommandEvent is an API event that is called each time a player sends a slash command.<br />
|-<br />
| [[bz eTeamScoreChanged]] || bz_eTeamScoreChanged is an API event that is called when a team's score changes.<br />
|-<br />
| [[bz eTeleportEvent]] || bz_eTeleportEvent is called when a tank passes through a teleportor. <br />
|-<br />
| [[bz eTickEvent]] || bz_eTickevent is an API event that is called once for each BZFS main loop. The wait time between tick calls can vary greatly depending on server load network conditions. Plug-ins that wish to enforce a maximum wait time between ticks should call [[bz_setMaxWaitTime]] with the longest wait time that is acceptable.<br />
|-<br />
| [[bz eUnknownSlashCommand]] || bz_eUnknownSlashCommand is an API event that is called when the BZFS server does not have an installed handler for a specific slash command.<br />
|-<br />
| [[bz eWorldFinalized]] || bz_eWorldFinalized is an API event that is called when the world is done loading. <br />
|-<br />
| [[bz eZoneEntryEvent]] || bz_eZoneEntryEvent is an API event that is called each time a player enters a zone on a BZW map. The event is unused and has no data. <br />
|-<br />
| [[bz eZoneExitEvent]] || bz_eZoneExitEvent is an API event that is called each time a player leaves a zone on a BZW map. The event is unused and has no data. <br />
|}<br />
<br />
[[Category:BZFS API Docs]]</div>Zehra