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

From BZFlagWiki
Jump to navigation Jump to search
Sigonasr2 (talk | contribs)
m Don't know for sure.
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_unloadPlugin
| returns      = Whether or not the plugin unloaded successfully.
| returntype    = bool
| description  = Unloads a plugin that is currently loaded.
| param1      = path
| param1type  = const char*
| param1desc  = The exact path of the plugin file.
}}
 
===Example===
Load the '''FlagOnSpawn''' plugin which then gets unloaded the moment a player joins.
case bz_eWorldFinalized: {
bz_loadPlugin("/home/name/path/to/flagOnSpawn.so","WG:-1");
}break;
case bz_ePlayerJoinEvent: {
bz_unloadPlugin("/home/name/path/to/flagOnSpawn.so");
}break;

Latest revision as of 18:47, 30 November 2025