Fixed a bug in the info-command.

Information about the player's current world was shown when he entered an invalid world-name.
This commit is contained in:
main() 2012-02-06 17:18:37 +01:00
parent e7573d3bd7
commit 7c21a114db
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ public class InfoCommand extends MultiverseCommand {
try {
pageNum = Integer.parseInt(args.get(0)) - 1;
} catch (NumberFormatException e) {
pageNum = 0;
sender.sendMessage("That world does not exist.");
return;
}
} else {
sender.sendMessage("You must enter a" + ChatColor.LIGHT_PURPLE + " world" + ChatColor.WHITE + " from the console!");