UnityEngine.GameObject.FindObjectsOfType needs to be replaced, for example, by BaseNetworkable.serverEntities.OfType.