Plugin Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Redirected page to Server plugins)
 
Line 1: Line 1:
The following commands are server commands that are meant to be executed by the host in order to control plugins.
#redirect [[Server plugins]]
__TOC__
==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>}}
 
<code><plugin></code> 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>"
[[Category:Console Commands]]

Latest revision as of 07:50, 29 October 2010

Redirect to: