Manage Plugins systemclient
System defined in core/system/sh_manage_plugins.lua
Registers the Manage Plugins system, which lists every plugin by author and lets admins load or unload them.
The page is shown to players with access to /PluginLoad or /PluginUnload. The unloaded plugins are requested over
the SystemPluginGet Cable message, and SystemPluginSet toggles a plugin with plugin.SetUnloaded on the server
and updates the page for every admin.
Summary
Methods
PluginLoad or PluginUnload.Methods
Shows the Manage Plugins system to players who may use PluginLoad or PluginUnload.
Returns
- Boolean Whether the player has either command's access flags
SYSTEM:OnDisplay(systemPanel, systemForm)
client gamemodes/catwork/gamemode/core/system/sh_manage_plugins.lua:36Lists every plugin except the schema, grouped by author, colored by state, as buttons that toggle loading.
Asks the server for the unloaded plugins with the SystemPluginGet Cable message; clicking a plugin that is not
disabled sends SystemPluginSet to load or unload it.
Parameters
- systemPanel Panel The system panel to add the plugin lists to
- systemForm Panel The system's form (unused, the system does not create one)
SYSTEM:UpdatePluginButtons()
client gamemodes/catwork/gamemode/core/system/sh_manage_plugins.lua:127Recolors the plugin buttons to match each plugin's current state.
Disabled plugins turn orange and stop being clickable, unloaded ones red and loaded ones green.