We now add IP addresses to the IP column, not the username column
This commit is contained in:
parent
373d9118ac
commit
2dbed5f9d2
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ namespace TShockAPI
|
|||
}
|
||||
else if (args.Parameters[1].Split(':').Length == 1)
|
||||
{
|
||||
if ((returnval = TShock.Users.AddUser(args.Parameters[1], "", "", args.Parameters[2])) == 1)
|
||||
if ((returnval = TShock.Users.AddUser("", "", args.Parameters[2], args.Parameters[1])) == 1)
|
||||
{
|
||||
args.Player.SendMessage("IP address admin added. If they're logged in, tell them to rejoin.", Color.Green);
|
||||
args.Player.SendMessage("WARNING: This is insecure! It would be better to use a user account instead.", Color.Red);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue