Skip to content
Permalink
Browse files

Fix resources not downloading

  • Loading branch information...
UnknownShadow200 committed Jul 25, 2017
1 parent b1e1808 commit a4fcf9b128fe78a69c26e5524bdc42765dcdd9dd
Showing with 11 additions and 10 deletions.
  1. +11 −10 fCraft/System/Server.cs
@@ -464,17 +464,17 @@ public static partial class Server {
if (!Directory.Exists("./Bot")) Directory.CreateDirectory("./Bot");
if (!Directory.Exists("./fonts")) Directory.CreateDirectory("./fonts");

DownloadResource("http://123dmwm.tk/ProCraft/resources/Funfacts.txt", "./Bot/Funfacts.txt");
DownloadResource("http://123dmwm.tk/ProCraft/resources/Jokes.txt", "./Bot/Jokes.txt");
DownloadResource("http://123dmwm.tk/ProCraft/resources/Protips.txt", "./Bot/Protips.txt");
DownloadResource("http://123dmwm.tk/ProCraft/resources/Adjectives.txt", "./Bot/Adjectives.txt");
DownloadResource("http://123dmwm.tk/ProCraft/resources/Nouns.txt", "./Bot/Nouns.txt");
DownloadResource("https://123dmwm.tk/ProCraft/resources/Funfacts.txt", "./Bot/Funfacts.txt");
DownloadResource("https://123dmwm.tk/ProCraft/resources/Jokes.txt", "./Bot/Jokes.txt");
DownloadResource("https://123dmwm.tk/ProCraft/resources/Protips.txt", "./Bot/Protips.txt");
DownloadResource("https://123dmwm.tk/ProCraft/resources/Adjectives.txt", "./Bot/Adjectives.txt");
DownloadResource("https://123dmwm.tk/ProCraft/resources/Nouns.txt", "./Bot/Nouns.txt");

DownloadResource("http://123dmwm.tk/ProCraft/resources/MOTDList.txt", "./MOTDList.txt");
DownloadResource("http://123dmwm.tk/ProCraft/resources/comicsans.ttf", "./fonts/comicsans.ttf");
DownloadResource("http://123dmwm.tk/ProCraft/resources/mcclassic.ttf", "./fonts/mcclassic.ttf");
DownloadResource("http://123dmwm.tk/ProCraft/resources/microsoft.ttf", "./fonts/microsoft.ttf");
DownloadResource("http://123dmwm.tk/ProCraft/resources/minecraft.ttf", "./fonts/minecraft.ttf");
DownloadResource("https://123dmwm.tk/ProCraft/resources/MOTDList.txt", "./MOTDList.txt");
DownloadResource("https://123dmwm.tk/ProCraft/resources/comicsans.ttf", "./fonts/comicsans.ttf");
DownloadResource("https://123dmwm.tk/ProCraft/resources/mcclassic.ttf", "./fonts/mcclassic.ttf");
DownloadResource("https://123dmwm.tk/ProCraft/resources/microsoft.ttf", "./fonts/microsoft.ttf");
DownloadResource("https://123dmwm.tk/ProCraft/resources/minecraft.ttf", "./fonts/minecraft.ttf");
}

static void DownloadResource(string url, string file) {
@@ -485,6 +485,7 @@ public static partial class Server {
using (WebClient c = HttpUtil.CreateWebClient(timeout)) {
c.DownloadFile(url, file);
}
Logger.Log(LogType.SystemActivity, "Succesfully download resource {0} to {1}. ", url, file);
} catch (Exception ex) {
WebException webEx = ex as WebException;
if (webEx != null) {

0 comments on commit a4fcf9b

Please sign in to comment.
You can’t perform that action at this time.