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:
parent
156df47777
commit
f1ce158efd
4 changed files with 39 additions and 12 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue