So I need to teleport the player to spawn position
This is how config looks like:
{
"x": 120.0,
"y": 0.0,
"z": -160.0
}Here is the code:
void OnPlayerRespawn(BasePlayer player)
{
player.Teleport(new Vector3(configData.x, configData.y, configData.z));
}