Skip to content

Commit

Permalink
Added changelog info to the updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenni0451 committed Aug 8, 2021
1 parent d1f6310 commit 86cd563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/lenni0451/spm/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void checkUpdates() {
final File pluginFile = this.getFile();
final byte[] newData = DownloadUtils.download(downloadURL);
Logger.sendPrefixMessage(Bukkit.getConsoleSender(), I18n.t("pm.updater.downloadSuccess"));
Logger.sendPrefixMessage(Bukkit.getConsoleSender(), I18n.t("pm.updater.checkChangelog", "https://github.com/Lenni0451/SpigotPluginManager/releases/tag/" + newestVersion));
Logger.sendPrefixMessage(Bukkit.getConsoleSender(), I18n.t("pm.updater.selfReload"));
Bukkit.getScheduler().runTaskLater(this, () -> {
try {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages.lang
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pm.softdepend.found=The soft depend &6%1 &ais installed and will be used.
# Updater
pm.updater.found=A new update of &6PluginManager &ais available &e(%1 -> %2)&a.
pm.updater.downloadSuccess=Successfully downloaded new &6PluginManager &aversion.
pm.updater.checkChangelog=You should check out the changelog here &6%1&a.
pm.updater.selfReload=PluginManager is reloading itself in some seconds...
pm.updater.reloadSuccess=PluginManager successfully reloaded itself!
pm.updater.downloadFail=&cCould not auto download the latest &6PluginManager &cversion.
Expand Down

0 comments on commit 86cd563

Please sign in to comment.