Static (10)

All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.

  • Called whenever a Carbon server command is called.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches ConsoleSystem.Run.

Example
void OnConsoleCommand()
{
    Puts("OnConsoleCommand was called!");
}

This hook is marked as AlwaysPatched, which means it is loaded in Carbon at all times.

  • Called when an RCON command is run.

  • Called when an RCON command is run.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RCon.OnCommand.

Example
void OnRconCommand(System.Net.IPAddress ip, string command, System.String[] arguments)
{
    Puts("OnRconCommand was called!");
}

This hook is marked as AlwaysPatched, which means it is loaded in Carbon at all times.

  • Called after the server startup has been completed and is awaiting connections.

  • Also called for plugins that are hotloaded while the server is already started running.

  • Called after the server startup has been completed and is awaiting connections.

  • Also called for plugins that are hotloaded while the server is already started running.

  • Boolean parameter, false if called on plugin hotload and true if called on server initialization.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ServerMgr.OpenConnection.

Example
void OnServerInitialized(bool initialLoad = default)
{
    Puts("OnServerInitialized was called!");
}

This hook is marked as AlwaysPatched, which means it is loaded in Carbon at all times.

Last updated