Skip to content

Commit

Permalink
4.3.54
Browse files Browse the repository at this point in the history
  • Loading branch information
ZombieStriker committed May 24, 2019
1 parent 856a53c commit 1421dc9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.zombie_striker</groupId>
<artifactId>mcMMOHorses</artifactId>
<version>4.3.53</version>
<version>4.3.54</version>
<repositories>

<repository>
Expand Down
7 changes: 7 additions & 0 deletions resources/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Version 4.3.54
Fixed b that breaks updater
Fixed updater to ignore letters in update titles

Version 4.3.53b
Fixed 1.13 support

Version 4.3.53
Updated to 1.14
Updated to Maven
Expand Down
2 changes: 1 addition & 1 deletion resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: ${project.version}
description: An awesome role-playing plugin for horses.
authors: [GetGoodKid,Zombie_Striker]
website: http://www.blueskullgames.com
api-version: 1.14
api-version: 1.13
permissions:
mcmmohorses.user:
default: true
Expand Down
5 changes: 3 additions & 2 deletions src/com/blueskullgames/horserpg/utils/GithubUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ public static boolean autoUpdate(final Plugin main, String author, String github

String parsedTagName = tagname.replace(".", "");

int latestVersion = Integer.valueOf(parsedTagName.substring(1, parsedTagName.length()));
int latestVersion = Integer.valueOf(parsedTagName.substring(1, parsedTagName.length()).replaceAll("[^\\d.]", ""));
int parsedVersion = Integer.parseInt(parseVersion.replaceAll("[^\\d.]", ""));

final URL download = new URL("https://github.com/" + author + "/" + githubProject + "/releases/download/"
+ tagname + "/" + jarname);

if (latestVersion > Integer.parseInt(parseVersion)) {
if (latestVersion > parsedVersion) {
Bukkit.getConsoleSender()
.sendMessage(ChatColor.GREEN + "Found a new version of " + ChatColor.GOLD
+ main.getDescription().getName() + ": " + ChatColor.WHITE + tagname
Expand Down

0 comments on commit 1421dc9

Please sign in to comment.