diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-27 00:41:12 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-27 00:41:12 +0200 |
commit | aa678a6bfab0e2e2436549e4faa70b5f18b91340 (patch) | |
tree | 7f3f19b399598c2effd4908194f37aacc971900a /EssentialsUpdate/src/com | |
parent | 569f813428c0ddfbcfaffc9a9e979d9289de7d34 (diff) | |
download | Essentials-aa678a6bfab0e2e2436549e4faa70b5f18b91340.tar Essentials-aa678a6bfab0e2e2436549e4faa70b5f18b91340.tar.gz Essentials-aa678a6bfab0e2e2436549e4faa70b5f18b91340.tar.lz Essentials-aa678a6bfab0e2e2436549e4faa70b5f18b91340.tar.xz Essentials-aa678a6bfab0e2e2436549e4faa70b5f18b91340.zip |
After the selfupdate, check for the bukkit version. We will not automatically update bukkit, so the player is displayed a message, if he tries to update or install.
Diffstat (limited to 'EssentialsUpdate/src/com')
-rw-r--r-- | EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java b/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java index 977cb0ebc..70607923b 100644 --- a/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java @@ -76,6 +76,16 @@ public class UpdateProcess extends PlayerListener }).start(); return true; } + if (updateCheck.getResult() == UpdateCheck.CheckResult.NEW_ESS_BUKKIT) + { + final String message = "Please update bukkit to version " + updateCheck.getNewBukkitVersion() + " before updating Essentials."; + if (currentPlayer != null) + { + currentPlayer.sendMessage(message); + } + Bukkit.getLogger().log(Level.INFO, message); + return true; + } return false; } @@ -106,7 +116,7 @@ public class UpdateProcess extends PlayerListener if (currentPlayer.getName().equals(player.getName())) { currentPlayer = player; - player.sendMessage("You quit the game, while the installion wizard was running."); + player.sendMessage("You quit the game, while the installation wizard was running."); player.sendMessage("The installation wizard will now resume."); player.sendMessage("You can exit the wizard by typing quit into the chat."); stateMachine.resumeInstallation(player); |