Skip to content

Commit a5eec99

Browse files
committed
Fixed issue with checking for updates.
1 parent 74de2d7 commit a5eec99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DriveBackup/src/main/java/ratismal/drivebackup/DriveBackup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public double updateCheck(double currentVersion) {
188188
return currentVersion;
189189
}
190190
// Pull the last version from the JSON
191-
newVersionTitle = ((String) ((JSONObject) array.get(array.size() - 1)).get("name")).replace("DriveBackup-", "").trim();
191+
newVersionTitle = ((String) ((JSONObject) array.get(array.size() - 1)).get("name")).replace("DriveBackupV2-", "").trim();
192192
return Double.valueOf(newVersionTitle.replaceFirst("\\.", "").trim());
193193
} catch (Exception e) {
194194
MessageUtil.sendConsoleMessage("There was an issue attempting to check for the latest version.");

DriveBackup/src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: DriveBackupV2
2-
version: 1.0
2+
version: 1.0.1
33
description: Uploads backups to Google Drive/OneDrive or by FTP
44
main: ratismal.drivebackup.DriveBackup
55
author: MaxTheGinus

0 commit comments

Comments
 (0)