Fixed /setspawn
This commit is contained in:
parent
176a5d8f5a
commit
f839308883
1 changed files with 7 additions and 7 deletions
|
|
@ -182,6 +182,7 @@ namespace TShockAPI
|
||||||
Console.WriteLine("This token will only display ONCE. This only works ONCE. If you don't use it and the server goes down, delete auth.lck.");
|
Console.WriteLine("This token will only display ONCE. This only works ONCE. If you don't use it and the server goes down, delete auth.lck.");
|
||||||
FileTools.CreateFile(Path.Combine(SavePath, "auth.lck"));
|
FileTools.CreateFile(Path.Combine(SavePath, "auth.lck"));
|
||||||
}
|
}
|
||||||
|
ConfigurationManager.ReadJsonConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnUpdate(GameTime time)
|
private void OnUpdate(GameTime time)
|
||||||
|
|
@ -227,6 +228,12 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ConfigurationManager.Spawn_WorldID != Main.worldID)
|
||||||
|
{
|
||||||
|
Main.spawnTileX = ConfigurationManager.originalSpawnX;
|
||||||
|
Main.spawnTileY = ConfigurationManager.originalSpawnY;
|
||||||
|
ConfigurationManager.Spawn_WorldID = Main.worldID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnJoin(int ply, HandledEventArgs handler)
|
private void OnJoin(int ply, HandledEventArgs handler)
|
||||||
|
|
@ -257,13 +264,6 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ConfigurationManager.Spawn_WorldID != Main.worldID)
|
|
||||||
{
|
|
||||||
Main.spawnTileX = ConfigurationManager.originalSpawnX;
|
|
||||||
Main.spawnTileY = ConfigurationManager.originalSpawnY;
|
|
||||||
ConfigurationManager.Spawn_WorldID = Main.worldID;
|
|
||||||
}
|
|
||||||
|
|
||||||
Players[ply] = player;
|
Players[ply] = player;
|
||||||
Netplay.spamCheck = ConfigurationManager.SpamChecks;
|
Netplay.spamCheck = ConfigurationManager.SpamChecks;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue