NwPluginAPI based plugin for SCP:Secret Laboratory. Provides custom commands for managing other NwPluginAPI based plugins at runtime.
This plugin was created using official Northwood Plugin API. No additional dependencies need to be installed in order to run it.
- Run
p install Pogromca-SCP/PluginCommands
in the server console. - Restart the server.
- Download
PluginCommands.dll
file from latest release. - Place downloaded file in your server's plugins folder
{ServerDirectory}/PluginAPI/plugins/{port|global}
. - Restart the server.
Commands from this plugin can be accessed from remote admin or server console.
plugincommands
subcommands
Command | Usage | Aliases | Description | Required permissions |
---|---|---|---|---|
load | [Plugin Name] | enable on | Loads an installed plugin. | ServerConsoleCommands |
reload | [Plugin Name] | refresh reset | Reloads an installed plugin. | ServerConsoleCommands |
unload | [Plugin Name] | disable off | Unloads an installed plugin. | ServerConsoleCommands |
In order to make your own plugin work properly with commands you need to implement methods with PluginEntryPoint
and PluginUnload
attributes (example provided below). Never assume what is the state of your plugin when these methods are called! Your implementations should be able to handle every possible scenario.
using PluginAPI.Core.Attributes;
class ExamplePlugin
{
[PluginEntryPoint("Plugin name", "1.0.0", "Plugin description", "Plugin author")]
void LoadPlugin()
{
// Initialize plugin here.
// NOTE: Your plugin may be already loaded when this method is called.
}
[PluginUnload]
void UnloadPlugin()
{
// Cleanup plugin resources here.
// NOTE: Your plugin may be already unloaded when this method is called.
}
}