Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbeMiglio committed Sep 7, 2020
1 parent 930342e commit 8059b76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Java/src/main/java/it/mycraft/powerlib/PowerLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ public void onJoin(PlayerJoinEvent event) {
return;
}
if (this.pluginUpdater.needsUpdate()) {
Message m = new Message("&c&lYour version of PowerLib is outdated! Click here to update to v{version}!")
Message m = new Message("&c&lYour version of PowerLib is outdated!");
Message m1 = new Message("&a&nClick here to update to v{version}!")
.addPlaceHolder("{version}", this.pluginUpdater.getLatestVersion());
TextComponent update = new TextComponent(m.getText());
TextComponent update = new TextComponent((m1.getText()));
update.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL,
"https://spigotmc.org/resources/83274/download?version=" + this.pluginUpdater.getSpigotVersionId()));
m.send(player);
player.spigot().sendMessage(update);
}
}
Expand Down

0 comments on commit 8059b76

Please sign in to comment.