bz_unloadPlugin

From BZFlagWiki
Jump to: navigation, search

bool bz_unloadPlugin (const char* path)


Unloads a plugin that is currently loaded.

Parameters:
path  -  The exact path of the plugin file.
Returns:
Whether or not the plugin unloaded successfully.


Example[edit]

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;