Skip to content

IOnServerShutdown

WARNING

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

Usage

  • No return behavior

Example Autogenerated

csharp
private void IOnServerShutdown(  )
{
    Puts( "IOnServerShutdown works!" );
}

Location

  • ServerMgr::Shutdown()
csharp
internal void Shutdown()
{
	Interface.CallHook("IOnServerShutdown");
	BasePlayer[] array = BasePlayer.activePlayerList.ToArray<BasePlayer>();
	for (int i = 0; i < array.Length; i++)
	{
		array[i].Kick("Server Shutting Down", true);
	}
//---

Released under the MIT License.