public override void OnServerDisconnect(NetworkConnection conn)
    {
        NetworkServer.DestroyPlayersForConnection(conn);

        if (conn.lastError != NetworkError.Ok)
        {
            if (LogFilter.logError)
            {
                Debug.LogError("ServerDisconnected due to error: " + conn.lastError);
            }
        }

        currentGamemode = sgm.currentGamemode;
        Debug.Log("Yes");
        currentGamemode.handlePlayerLeft();
        base.OnServerDisconnect(conn);
    }