From f6e56ce0f4e01d5533883e7afcec159cbbbde771 Mon Sep 17 00:00:00 2001 From: snowleo Date: Wed, 26 Oct 2011 22:17:27 +0200 Subject: Removing automatic updates It's a bad idea to automatically overwrite files, without asking the player first. This would be triggered by the selfupdate after the reload. --- .../src/com/earth2me/essentials/update/EssentialsUpdate.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'EssentialsUpdate/src/com/earth2me/essentials/update/EssentialsUpdate.java') diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/EssentialsUpdate.java b/EssentialsUpdate/src/com/earth2me/essentials/update/EssentialsUpdate.java index 6b380288a..98dbeb2ef 100644 --- a/EssentialsUpdate/src/com/earth2me/essentials/update/EssentialsUpdate.java +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/EssentialsUpdate.java @@ -31,12 +31,6 @@ public class EssentialsUpdate extends JavaPlugin if (updateCheck.isEssentialsInstalled()) { - final Version myVersion = new Version(getDescription().getVersion()); - if (updateCheck.getResult() == CheckResult.NEW_ESS && myVersion.equals(updateCheck.getNewVersion())) - { - Bukkit.getLogger().info("Versions of EssentialsUpdate and Essentials do not match. Starting automatic update."); - updateProcess.doAutomaticUpdate(); - } updateCheck.scheduleUpdateTask(); } else -- cgit v1.2.3