From 84572a1cb2d552afc6fc5ddcc25350cb777f64d3 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 7 Nov 2013 03:57:56 +1300 Subject: [PATCH] Nah. Revert that --- .../disguise/DisguiseListener.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseListener.java b/src/me/libraryaddict/disguise/DisguiseListener.java index 7a09c9b4..e55937bb 100644 --- a/src/me/libraryaddict/disguise/DisguiseListener.java +++ b/src/me/libraryaddict/disguise/DisguiseListener.java @@ -39,19 +39,16 @@ public class DisguiseListener implements Listener { try { UpdateChecker updateChecker = new UpdateChecker(); updateChecker.checkUpdate("v" + currentVersion); - String lastVersion = latestVersion; latestVersion = updateChecker.getLatestVersion(); if (latestVersion != null) { latestVersion = "v" + latestVersion; - if (lastVersion == null || !lastVersion.equals(latestVersion)) { - Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { - public void run() { - for (Player p : Bukkit.getOnlinePlayers()) - if (p.hasPermission(permission)) - p.sendMessage(String.format(updateMessage, currentVersion, latestVersion)); - } - }); - } + Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { + public void run() { + for (Player p : Bukkit.getOnlinePlayers()) + if (p.hasPermission(permission)) + p.sendMessage(String.format(updateMessage, currentVersion, latestVersion)); + } + }); } } catch (Exception ex) { System.out.print(String.format("[LibsDisguises] Failed to check for update: %s", ex.getMessage()));