Server (24)
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.
OnBroadcastCommand
Called before a command is broadcasted to all connected clients.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ConsoleNetwork.BroadcastToAllClients of Assembly-CSharp.dll.
OnMessagePlayer
Useful for intercepting server messages before they get to their intended target.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BasePlayer.ChatMessage of Assembly-CSharp.dll.
OnNativeCommandHasPermission
Overrides Rust's native checks for command execution authorization.
Example: allow `inventory.give` to be executed by regular players.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches Arg.HasPermission.
Called when a new savefile is created (usually when map has wiped).
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches SaveRestore.Load of Assembly-CSharp.dll.
Called when a new RCON connection is opened.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches RConListener.ProcessConnections of Assembly-CSharp.dll.
Called when a save file is loaded.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches SaveRestore.Load of Assembly-CSharp.dll.
This hook requires OnNewSave, which loads alongside OnSaveLoad.
Called before a command is sent from the server to a player (or a group of players).
Usually commands aren't sent to a group of players, so in most cases it's safe to use only OnSendCommand with a single Connection.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ConsoleNetwork.SendClientCommand of Assembly-CSharp.dll.
Called before a command is sent from the server to a player (or a group of players).
Usually commands aren't sent to a group of players, so in most cases it's safe to use only OnSendCommand with a single Connection.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ConsoleNetwork.SendClientCommand of Assembly-CSharp.dll.
Gets called when executing a native command.
Useful for intercepting commands before they get to their intended target.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CorePlugin.IOnServerCommand of Carbon.Common.dll.
Called after all steam information for the server has has been updated.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerMgr.UpdateServerInformation of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerMgr.Initialize of Assembly-CSharp.dll.
Called before a SERVER message is sent to a player.
Return a non-null value to stop message from being sent.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Chat.Broadcast of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerMgr.RestartServer of Assembly-CSharp.dll.
This hook requires OnServerRestartInterrupt, which loads alongside OnServerRestart.
Called when a server restart is being cancelled.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerMgr.RestartServer of Assembly-CSharp.dll.
Called before the server saves.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches SaveRestore.DoAutomatedSave of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerUsers.Remove of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerUsers.Set of Assembly-CSharp.dll.
Called every tick (defined by the tick rate of the server).
For better performance, avoid using heavy calculations in this hook.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerMgr.DoTick of Assembly-CSharp.dll.
Last updated