Move upgrade message to the updater

This commit is contained in:
Frank van der Heijden 2020-10-04 15:32:31 +02:00
parent 8613fce763
commit 0f754e1c38
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
2 changed files with 0 additions and 3 deletions

View file

@ -43,7 +43,6 @@ public class UpdateCheckerTask implements Runnable {
private static final String UPDATE_AVAILABLE = "ServerUtils %s is available!";
private static final String DOWNLOAD_START = "Started downloading from \"%s\"...";
private static final String DOWNLOAD_ERROR = "Error downloading a new version of ServerUtils";
private static final String UPGRADE_SUCCESS = "Successfully upgraded ServerUtils to v%s!";
private static final String DOWNLOADED_RESTART = "Downloaded ServerUtils version v%s. Restarting plugin now...";
private static final String UP_TO_DATE = "We are up-to-date!";
@ -206,8 +205,6 @@ public class UpdateCheckerTask implements Runnable {
plugin.getPluginManager().unloadPlugin((Object)ServerUtilsApp.getPlatformPlugin()).tryClose();
updater.update(pluginFile);
file.delete();
plugin.getLogger().info(String.format(UPGRADE_SUCCESS, downloadedVersion));
} else {
broadcastDownloadStatus(downloadedVersion, false);
}