Skip to content

Commit

Permalink
Fixed issue with checking for updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMaeder committed May 17, 2020
1 parent 74de2d7 commit a5eec99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion DriveBackup/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a5eec99

Please sign in to comment.