From 90c7817634f604db87476f6dc1002f9bc5edfa1b Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 25 Jun 2013 13:37:17 +1200 Subject: [PATCH] Fixed a error for the updater. --- src/me/libraryaddict/disguise/LibsDisguises.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index 33d79214..c54a25c3 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -139,7 +139,8 @@ public class LibsDisguises extends JavaPlugin implements Listener { getCommand("undisguiseplayer").setExecutor(new UndisguisePlayerCommand()); saveDefaultConfig(); permission = getConfig().getString("Permission"); - if (getConfig().getBoolean("NotifyUpdate")) + if (getConfig().getBoolean("NotifyUpdate")) { + currentVersion = getDescription().getVersion(); Bukkit.getScheduler().scheduleAsyncDelayedTask(this, new Runnable() { public void run() { try { @@ -161,6 +162,7 @@ public class LibsDisguises extends JavaPlugin implements Listener { } } }); + } Bukkit.getPluginManager().registerEvents(this, this); }