Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Adjusted to work with Github versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Oct 30, 2018
1 parent 52fe019 commit 9e100f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions main/java/io/github/thatsmusic99/headsplus/HeadsPlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,18 @@ public void run() {
e.printStackTrace();
}
if (update != null) {
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getUpdateFound())));
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getCurrentVersion()))
+ getDescription().getVersion());
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getNewVersion() + update[2])));
if (update[1].toString().length() > 50) {
update[1] = update[1].toString().subSequence(0, 50) + "... (Check Spigot for more information)";
if (!((String) update[2]).equalsIgnoreCase("5.1.10")) {
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getUpdateFound())));
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getCurrentVersion()))
+ getDescription().getVersion());
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getNewVersion() + update[2])));
if (update[1].toString().length() > 50) {
update[1] = update[1].toString().subSequence(0, 50) + "... (Check Spigot for more information)";
}
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getDescription())) + update[1]);
log.info("Download link: https://www.spigotmc.org/resources/headsplus-1-8-x-1-12-x.40265/");

}
log.info(ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', LocaleManager.getLocale().getDescription())) + update[1]);
log.info("Download link: https://www.spigotmc.org/resources/headsplus-1-8-x-1-12-x.40265/");
} else {
log.info(hpc.getString("plugin-up-to-date"));
}
Expand Down
2 changes: 1 addition & 1 deletion main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
main: io.github.thatsmusic99.headsplus.HeadsPlus
name: HeadsPlus
version: 5.1.10
version: 5.1.11
api-version: 1.13
description: Spawns in heads with extra features.
author: Thatsmusic99
Expand Down

0 comments on commit 9e100f7

Please sign in to comment.