diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index eb2996eb..717b1ad7 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -670,7 +670,7 @@ namespace TShockAPI Tools.SendMessage(ply, "This server is out of date, to update now type /updatenow"); if (!updateCmd) { - Commands.commands.Add(new Commands.Command("/updatenow", "maintenance", Commands.UpdateNow)); + Commands.commands.Add(new Commands.Command("updatenow", "maintenance", Commands.UpdateNow)); updateCmd = true; } for (int i = 4; i <= changes.Length; i++) diff --git a/Update/Program.cs b/Update/Program.cs index 08de4ae4..f1aef4c0 100644 --- a/Update/Program.cs +++ b/Update/Program.cs @@ -56,13 +56,13 @@ namespace Update try { - File.Delete("TShockAPI.dll"); + File.Delete("serverplugins/TShockAPI.dll"); } catch (FileNotFoundException) { } - BinaryWriter bw = new BinaryWriter(new FileStream("TShockAPI.dll", FileMode.Create)); + BinaryWriter bw = new BinaryWriter(new FileStream("serverplugins/TShockAPI.dll", FileMode.Create)); bw.Write(Resources.TShockAPI); bw.Close();