From a5eec9988b4233406fd9f29c9e944ad1aff096a2 Mon Sep 17 00:00:00 2001 From: Max Maeder Date: Sun, 17 May 2020 17:21:38 -0500 Subject: [PATCH] Fixed issue with checking for updates. --- DriveBackup/src/main/java/ratismal/drivebackup/DriveBackup.java | 2 +- DriveBackup/src/main/resources/plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DriveBackup/src/main/java/ratismal/drivebackup/DriveBackup.java b/DriveBackup/src/main/java/ratismal/drivebackup/DriveBackup.java index 8946d05e..474a69d6 100644 --- a/DriveBackup/src/main/java/ratismal/drivebackup/DriveBackup.java +++ b/DriveBackup/src/main/java/ratismal/drivebackup/DriveBackup.java @@ -188,7 +188,7 @@ public double updateCheck(double currentVersion) { return currentVersion; } // Pull the last version from the JSON - newVersionTitle = ((String) ((JSONObject) array.get(array.size() - 1)).get("name")).replace("DriveBackup-", "").trim(); + newVersionTitle = ((String) ((JSONObject) array.get(array.size() - 1)).get("name")).replace("DriveBackupV2-", "").trim(); return Double.valueOf(newVersionTitle.replaceFirst("\\.", "").trim()); } catch (Exception e) { MessageUtil.sendConsoleMessage("There was an issue attempting to check for the latest version."); diff --git a/DriveBackup/src/main/resources/plugin.yml b/DriveBackup/src/main/resources/plugin.yml index 08bb836f..2c62fe86 100644 --- a/DriveBackup/src/main/resources/plugin.yml +++ b/DriveBackup/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: DriveBackupV2 -version: 1.0 +version: 1.0.1 description: Uploads backups to Google Drive/OneDrive or by FTP main: ratismal.drivebackup.DriveBackup author: MaxTheGinus