diff --git a/Terraria.suo b/Terraria.suo index f5a5310d..8705218c 100644 Binary files a/Terraria.suo and b/Terraria.suo differ diff --git a/Terraria/ShankShock.cs b/Terraria/ShankShock.cs index d0a75cf2..4bc7a7a5 100644 --- a/Terraria/ShankShock.cs +++ b/Terraria/ShankShock.cs @@ -9,7 +9,7 @@ namespace Terraria { class ShankShock { - private static string version = "1"; + private static int version = 1; private static bool shownVersion = false; public static bool enableGuide = true; @@ -48,10 +48,13 @@ namespace Terraria { string updateVersion = client.DownloadString("http://shankshock.com/tshock.txt"); string[] changes = updateVersion.Split(','); - float[] color = { 255, 255, 0 }; - if (updateVersion != version) + float[] color = { 255, 255, 000 }; + Console.WriteLine(changes.Length); + Console.WriteLine(changes[0]); + Console.WriteLine(changes[1]); + if (Convert.ToInt32(changes[0]) > version) { - sendMessage(ply, "This server is out of date. Version " + updateVersion + " is out.", color); + sendMessage(ply, "This server is out of date. Version " + changes[0] + " is out.", color); sendMessage(ply, changes[1], color); } } diff --git a/bin/Debug/Terraria.exe b/bin/Debug/Terraria.exe index 427c11db..52d6bfef 100644 Binary files a/bin/Debug/Terraria.exe and b/bin/Debug/Terraria.exe differ diff --git a/bin/Debug/Terraria.pdb b/bin/Debug/Terraria.pdb index f7ddcee6..80275fcb 100644 Binary files a/bin/Debug/Terraria.pdb and b/bin/Debug/Terraria.pdb differ diff --git a/bin/Debug/tshock/admins.txt b/bin/Debug/tshock/admins.txt index e69de29b..76d07e61 100644 --- a/bin/Debug/tshock/admins.txt +++ b/bin/Debug/tshock/admins.txt @@ -0,0 +1 @@ +192.168.0.150 \ No newline at end of file diff --git a/bin/Debug/tshock/grief.txt b/bin/Debug/tshock/grief.txt index 4e727453..e69de29b 100644 --- a/bin/Debug/tshock/grief.txt +++ b/bin/Debug/tshock/grief.txt @@ -1,2 +0,0 @@ -[Shank] [192.168.0.150] -[Shank] [192.168.0.150] diff --git a/obj/x86/Debug/Terraria.exe b/obj/x86/Debug/Terraria.exe index 427c11db..52d6bfef 100644 Binary files a/obj/x86/Debug/Terraria.exe and b/obj/x86/Debug/Terraria.exe differ diff --git a/obj/x86/Debug/Terraria.pdb b/obj/x86/Debug/Terraria.pdb index f7ddcee6..80275fcb 100644 Binary files a/obj/x86/Debug/Terraria.pdb and b/obj/x86/Debug/Terraria.pdb differ