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.

OnConsoleCommand

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

  • Hook flags: and

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

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

OnRconCommand

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

  • Hook flags: and

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

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

OnServerInitialized

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

  • Hook flags: and

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

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

Last updated