summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsUpdate/src/com')
-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);