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

Shows the Manage Plugins system to players who may use PluginLoad or PluginUnload.
Lists every plugin except the schema, grouped by author, colored by state, as buttons that toggle loading.
Recolors the plugin buttons to match each plugin's current state.

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:36

Lists 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)

Recolors 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.

Defined in