NotBadI am still in different positionobject OnPlayerRespawned(BasePlayer player) { var vector = new Vector3(configData.x, 0, configData.z); vector.y = TerrainMeta.HeightMap.GetHeight(vector); return new BasePlayer.SpawnPoint() { pos = (Vector3)vector}; }But when I do this command it works
[ChatCommand("Hey")] void HelloCommand(BasePlayer player) { player.Teleport(new Vector3(configData.x, configData.y, configData.z)); }
Because you are using hook the wrong way.
OnPlayerRespawn returns object (which may be a spawnpoint to override defaults)
OnPlayerRespawned returns void, you cannot change the spawnpoint in this hook!
Read the documentation more careful