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:
parent
e7573d3bd7
commit
7c21a114db
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue