Plugin Commands: Difference between revisions
m (→Usage: unpreified) |
No edit summary |
||
Line 20: | Line 20: | ||
--------------------- | --------------------- | ||
==plugin_unload== | ==plugin_unload== | ||
'''plugin_unload''' is used to unload a loaded plugin (depending on the plugin this may be unstable and cause a server to crash. | '''plugin_unload''' is used to unload a loaded plugin (depending on the plugin this may be unstable and cause a server to crash. However, one would hope a seasoned programmer could easily avoid this pitfall... | ||
===Usage=== | ===Usage=== | ||
After using [[plugin_print]] to determin plugin ID's if you want to unload a plugin you must type the following. | After using [[plugin_print]] to determin plugin ID's if you want to unload a plugin you must type the following. |
Revision as of 15:34, 15 August 2006
The following commands are server commands that are meant to be executed by the host in order to control plugins.
plugin_load
plugin_load is used to load a plugin after the server is started (some plugins may not work, or cause instability when doing this).
Usage
To use it you must input the following:
Syntax: plugin_load <plugin>
<plugin>
is a DLL or SO file that rests in the addons directory, you must *NOT* put in the file extension when using plugin_load.
plugin_print
plugin_print is a server side command that displays the currently loaded plugin. This is used alongside plugin_unload to unload a plugin.
Usage
Syntax: plugin_print
Example of output:
Loaded plugins: --------------------- 0: "Detox Server Plugin v0.91" ---------------------
plugin_unload
plugin_unload is used to unload a loaded plugin (depending on the plugin this may be unstable and cause a server to crash. However, one would hope a seasoned programmer could easily avoid this pitfall...
Usage
After using plugin_print to determin plugin ID's if you want to unload a plugin you must type the following.
Syntax: plugin_unload <id>
You will get a confirmation message as follows:
Unloaded plugin "<id>"