Initial work to move all Server Side Character code to its own module.
This commit is contained in:
parent
afffa46ef2
commit
915e791406
11 changed files with 137 additions and 43 deletions
|
|
@ -574,7 +574,7 @@ namespace TShockAPI
|
|||
/// <param name="reason">string reason (default: "Server shutting down!")</param>
|
||||
public void RestartServer(bool save = true, string reason = "Server shutting down!")
|
||||
{
|
||||
if (TShock.Config.ServerSideCharacter)
|
||||
if (Main.ServerSideCharacter)
|
||||
foreach (TSPlayer player in TShock.Players)
|
||||
if (player != null && player.IsLoggedIn && !player.IgnoreActionsForClearingTrashCan)
|
||||
TShock.CharacterDB.InsertPlayerData(player);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue