Implement logic to store the data of a player when they join, and allow for a command to be run that will upload that data in place of their existing SSC data.

This commit is contained in:
DogooFalchion 2016-10-23 18:11:44 -04:00
parent 156df47777
commit f1ce158efd
4 changed files with 39 additions and 12 deletions

View file

@ -1506,6 +1506,8 @@ namespace TShockAPI
private static bool HandleConnecting(GetDataHandlerArgs args)
{
var user = TShock.Users.GetUserByName(args.Player.Name);
args.Player.DataWhenJoined = new PlayerData(args.Player);
args.Player.DataWhenJoined.CopyCharacter(args.Player);
if (user != null && !TShock.Config.DisableUUIDLogin)
{