Fixed a error for the updater.

This commit is contained in:
Andrew 2013-06-25 13:37:17 +12:00
parent 1ddc880e3b
commit 90c7817634

View File

@ -139,7 +139,8 @@ public class LibsDisguises extends JavaPlugin implements Listener {
getCommand("undisguiseplayer").setExecutor(new UndisguisePlayerCommand()); getCommand("undisguiseplayer").setExecutor(new UndisguisePlayerCommand());
saveDefaultConfig(); saveDefaultConfig();
permission = getConfig().getString("Permission"); permission = getConfig().getString("Permission");
if (getConfig().getBoolean("NotifyUpdate")) if (getConfig().getBoolean("NotifyUpdate")) {
currentVersion = getDescription().getVersion();
Bukkit.getScheduler().scheduleAsyncDelayedTask(this, new Runnable() { Bukkit.getScheduler().scheduleAsyncDelayedTask(this, new Runnable() {
public void run() { public void run() {
try { try {
@ -161,6 +162,7 @@ public class LibsDisguises extends JavaPlugin implements Listener {
} }
} }
}); });
}
Bukkit.getPluginManager().registerEvents(this, this); Bukkit.getPluginManager().registerEvents(this, this);
} }