Skip to content

OnServerRestartInterrupt

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • ServerMgr::RestartServer(string strNotice, int iSeconds)
csharp
//---
	{
		return;
	}
	if (SingletonComponent<ServerMgr>.Instance.restartCoroutine != null)
	{
		if (Interface.CallHook("OnServerRestartInterrupt") != null)
		{
			return;
		}
		ServerMgr.ShowToastToAllClients(GameTip.Styles.Server_Event, ServerMgr.RESTART_INTERRUPTED_PHRASE, false, Array.Empty<string>());
		SingletonComponent<ServerMgr>.Instance.StopCoroutine(SingletonComponent<ServerMgr>.Instance.restartCoroutine);
//---

Released under the MIT License.