Skip to content

IOnServerCommand

WARNING

This is an internal hook and will not be called in plugins. See Internal Hooks for more information.

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void IOnServerCommand( Arg arg )
{
    Puts( "IOnServerCommand works!" );
}

Location

  • ConsoleSystem::Internal(ConsoleSystem/Arg arg)
csharp
//---
{
	if (arg.Invalid)
	{
		return false;
	}
	object returnvar = Interface.CallHook("IOnServerCommand", arg);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	if (!arg.HasPermission())
//---

Released under the MIT License.