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

From BZFlagWiki
Jump to navigation Jump to search
Allejo (talk | contribs)
wrote page for bz_Unload
 
Zehra (talk | contribs)
merged content into BZFS API Updates
Tag: New redirect
 
Line 1: Line 1:
===Code Example===
#REDIRECT [[BZFS API Updates]]
  BZF_PLUGIN_CALL int bz_Unload ( void ) {
      bz_debugMessage(4,"SAMPLE_PLUGIN plugin unloaded");
      return 0;
  }
 
===Functions===
The [[bz_Unload]] function is required for all plugins. In this function all debug messages, events, map objects, and slash commands are unregistered. Available functions for this are as follows:
* [[bz_debugMessage]]
* [[bz_removeEvent]]
* [[bz_removeCustomSlashCommand]]
* [[bz_removeCustomMapObject]]
 
===Deprecation===
All calls to [[bz_Unload]] have been deprecated as of 2.4 and will be replaced with:
  '''virtual void Cleanup() {Flush();}'''
 
More information on this function can be found on the [[BZFS_API_2.4_Upgrade]] page.

Latest revision as of 18:37, 30 November 2025

Redirect to: