Dunno
This commit is contained in:
parent
f271d10c7b
commit
fcbaa5c056
2 changed files with 3 additions and 3 deletions
|
|
@ -310,7 +310,7 @@ namespace TShockAPI
|
||||||
if (exr[0].ToUpper() == encrPass.ToUpper())
|
if (exr[0].ToUpper() == encrPass.ToUpper())
|
||||||
{
|
{
|
||||||
args.Player.Group = Tools.GetGroup(exr[1]);
|
args.Player.Group = Tools.GetGroup(exr[1]);
|
||||||
args.Player.UserName = args.Parameters[0];
|
args.Player.UserAccountName = args.Parameters[0];
|
||||||
args.Player.IsLoggedIn = true;
|
args.Player.IsLoggedIn = true;
|
||||||
args.Player.SendMessage("Authenticated as " + args.Parameters[0] + " successfully.", Color.LimeGreen);
|
args.Player.SendMessage("Authenticated as " + args.Parameters[0] + " successfully.", Color.LimeGreen);
|
||||||
Log.ConsoleInfo(args.Player.Name + " authenticated successfully as user: " + args.Parameters[0]);
|
Log.ConsoleInfo(args.Player.Name + " authenticated successfully as user: " + args.Parameters[0]);
|
||||||
|
|
@ -1418,7 +1418,7 @@ namespace TShockAPI
|
||||||
regionName = regionName + " " + args.Parameters[i];
|
regionName = regionName + " " + args.Parameters[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((playerID = TShock.Users.GetUserByName(Tools.FindPlayer(playerName)[0].UserName)) != null)
|
if ((playerID = TShock.Users.GetUserByName(Tools.FindPlayer(playerName)[0].Name)) != null)
|
||||||
{
|
{
|
||||||
if (TShock.Regions.AddNewUser(regionName, playerID))
|
if (TShock.Regions.AddNewUser(regionName, playerID))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ namespace TShockAPI
|
||||||
public TSPlayer LastWhisper;
|
public TSPlayer LastWhisper;
|
||||||
public int LoginAttempts { get; set; }
|
public int LoginAttempts { get; set; }
|
||||||
public Vector2 TeleportCoords = new Vector2(-1, -1);
|
public Vector2 TeleportCoords = new Vector2(-1, -1);
|
||||||
public string UserName { get; set; }
|
public string UserAccountName { get; set; }
|
||||||
public bool HasBeenSpammedWithBuildMessage = false;
|
public bool HasBeenSpammedWithBuildMessage = false;
|
||||||
public bool IsLoggedIn = false;
|
public bool IsLoggedIn = false;
|
||||||
Player FakePlayer = null;
|
Player FakePlayer = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue