From 2dbed5f9d263abe2b482f29df975456411e8e282 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 13 Jul 2011 03:38:56 -0600 Subject: [PATCH] We now add IP addresses to the IP column, not the username column --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index b062c24f..e2617356 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -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);