From 301617c0f3cec8e28e17169a2e4e442f90b0d6e6 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 1 May 2020 19:09:37 +1200 Subject: [PATCH] Mark in log where its being downloaded to --- pom.xml | 2 +- .../disguise/utilities/updates/UpdateChecker.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index eebe0d82..0bdea023 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ LibsDisguises LibsDisguises - 10.0.7 + 10.0.7-SNAPSHOT exec:java clean install diff --git a/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java b/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java index 521b6aef..f79c7542 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java @@ -212,10 +212,11 @@ public class UpdateChecker { private PluginInformation grabJarDownload(String urlString) { downloading.set(true); - DisguiseUtilities.getLogger().info("Now downloading build of Lib's Disguises from " + urlString); - File dest = new File(Bukkit.getUpdateFolderFile(), LibsDisguises.getInstance().getFile().getName()); + DisguiseUtilities.getLogger() + .info("Now downloading build of Lib's Disguises from " + urlString + " to " + dest.getName()); + if (dest.exists()) { dest.delete(); }