Finished testing, shit works\!

This commit is contained in:
Maverick Motherfucker 2011-06-07 19:45:02 -07:00
parent 61624249a2
commit 3a3bf6e866
2 changed files with 3 additions and 3 deletions

View file

@ -670,7 +670,7 @@ namespace TShockAPI
Tools.SendMessage(ply, "This server is out of date, to update now type /updatenow"); Tools.SendMessage(ply, "This server is out of date, to update now type /updatenow");
if (!updateCmd) if (!updateCmd)
{ {
Commands.commands.Add(new Commands.Command("/updatenow", "maintenance", Commands.UpdateNow)); Commands.commands.Add(new Commands.Command("updatenow", "maintenance", Commands.UpdateNow));
updateCmd = true; updateCmd = true;
} }
for (int i = 4; i <= changes.Length; i++) for (int i = 4; i <= changes.Length; i++)

View file

@ -56,13 +56,13 @@ namespace Update
try try
{ {
File.Delete("TShockAPI.dll"); File.Delete("serverplugins/TShockAPI.dll");
} }
catch (FileNotFoundException) 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.Write(Resources.TShockAPI);
bw.Close(); bw.Close();