Mark in log where its being downloaded to

This commit is contained in:
libraryaddict 2020-05-01 19:09:37 +12:00
parent e496a1f595
commit 301617c0f3
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<!-- A good example on why temporary names for project identification shouldn't be used -->
<groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId>
<version>10.0.7</version>
<version>10.0.7-SNAPSHOT</version>
<build>
<defaultGoal>exec:java clean install</defaultGoal>

View File

@ -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();
}