From 8059b76294be5d17719500cbb10fcac5620349ed Mon Sep 17 00:00:00 2001 From: Alberto Migliorato Date: Mon, 7 Sep 2020 17:37:02 +0200 Subject: [PATCH] Minor changes --- Java/src/main/java/it/mycraft/powerlib/PowerLib.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Java/src/main/java/it/mycraft/powerlib/PowerLib.java b/Java/src/main/java/it/mycraft/powerlib/PowerLib.java index a433dcd..151c7d7 100644 --- a/Java/src/main/java/it/mycraft/powerlib/PowerLib.java +++ b/Java/src/main/java/it/mycraft/powerlib/PowerLib.java @@ -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); } }