summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/com/earth2me/essentials
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-10-27 00:41:12 +0200
committersnowleo <schneeleo@gmail.com>2011-10-27 00:41:12 +0200
commitfd7894caae697a669e9e185af74339ae3f9ee1c2 (patch)
tree523f9d23f6a5cc523e2fa7a9108679a344b88302 /EssentialsUpdate/src/com/earth2me/essentials
parent8200fc2a987d97df01e5479ee42b174f8ab20742 (diff)
downloadEssentials-fd7894caae697a669e9e185af74339ae3f9ee1c2.tar
Essentials-fd7894caae697a669e9e185af74339ae3f9ee1c2.tar.gz
Essentials-fd7894caae697a669e9e185af74339ae3f9ee1c2.tar.lz
Essentials-fd7894caae697a669e9e185af74339ae3f9ee1c2.tar.xz
Essentials-fd7894caae697a669e9e185af74339ae3f9ee1c2.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/earth2me/essentials')
-rw-r--r--EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java12
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);