public static ServerCharacter SavePlayerData(Player player)
 {
     if (player.AuthenticatedAs != null)
     {
         var file = Path.Combine(Globals.CharacterDataPath, player.AuthenticatedAs, ".ssc");
         var data = new ServerCharacter(player);
         var json = Newtonsoft.Json.JsonConvert.SerializeObject(data);
         System.IO.File.WriteAllText(file, json);
     }
     return(null);
 }
 public static ServerCharacter SavePlayerData(Player player)
 {
     if (player.AuthenticatedAs != null)
     {
         var file = Path.Combine(Globals.CharacterDataPath, player.AuthenticatedAs, ".ssc");
         var data = new ServerCharacter(player);
         var json = Newtonsoft.Json.JsonConvert.SerializeObject(data);
         System.IO.File.WriteAllText(file, json);
     }
     return null;
 }