Skip to content

Commit

Permalink
feat(boot): show how many builds are you behind
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Dec 28, 2024
1 parent 0c3aff4 commit 633bc92
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void onEnable() {
checkSpigot();

Component cmp = Component.text("""
▐ ▄ ▄ •▄ ▄• ▄▌▄▄▄ ▄▄▄ . .▄▄ · ▄▄▄▄▄ ▄▄▄· ·▄▄▄·▄▄▄
•█▌▐█▪ ▪ █▌▄▌▪█▪██▌▀▄ █·▀▄.▀· ▐█ ▀. •██ ▐█ ▀█ ▐▄▄·▐▄▄·
▐█▐▐▌ ▄█▀▄ ▄█▀▄ ▐▀▀▄·█▌▐█▌▐▀▀▄ ▐▀▀▪▄ ▄▀▀▀█▄ ▐█.▪▄█▀▀█ ██▪ ██▪
Expand Down Expand Up @@ -103,7 +103,7 @@ public void checkVersion() {
}

if (jenkinsJob.lastCompletedBuild().number() > Constants.JENKINS_BUILD_NUMBER) {
getLogger().warning("There is a new version available! Please update to the latest version.");
getLogger().warning("There is a new version available! You are %n versions behind.".replace("%n", String.valueOf(jenkinsJob.lastCompletedBuild().number() - Constants.JENKINS_BUILD_NUMBER)));
getLogger().warning("You can download it from here: " + jenkinsJob.lastCompletedBuild().url());
}
}).exceptionally(throwable -> {
Expand Down

0 comments on commit 633bc92

Please sign in to comment.