From 637dd7d0c2e936c57c4c4586e787d134c1bdce27 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 12 May 2020 18:53:26 +0100 Subject: [PATCH] correct update messaging --- .../java/com/plotsquared/bukkit/listener/PlayerEvents.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java index 018509743..d874ae82a 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java @@ -235,7 +235,6 @@ public class PlayerEvents extends PlotListener implements Listener { private Field fieldPlayer; private PlayerMoveEvent moveTmp; private String internalVersion; - private String spigotVersion; { try { @@ -664,8 +663,10 @@ public class PlayerEvents extends PlotListener implements Listener { new PlotMessage("-----------------------------------").send(pp); new PlotMessage(Captions.PREFIX + "There appears to be a PlotSquared update available!") .color("$1").send(pp); - new PlotMessage(Captions.PREFIX + "The latest version is " + spigotVersion).color("$1") - .send(pp); + new PlotMessage( + Captions.PREFIX + "&6You are running version " + UpdateUtility.internalVersion + .versionString() + ", &6latest version is " + UpdateUtility.spigotVersion) + .color("$1").send(pp); new PlotMessage(Captions.PREFIX + "Download at:").color("$1").send(pp); player.sendMessage(" https://www.spigotmc.org/resources/77506/updates"); new PlotMessage("-----------------------------------").send(pp);