Complain about lack of page index to packet page.

This commit is contained in:
Kristian S. Stangeland 2014-01-11 02:13:41 +01:00
parent a902c1f186
commit 4f95b515ae

View File

@ -171,6 +171,11 @@ class CommandPacket extends CommandBase {
// Commands with different parameters
if (subCommand == SubCommand.PAGE) {
if (args.length <= 1) {
sendMessageSilently(sender, ChatColor.RED + "Must specify a page index.");
return true;
}
int page = Integer.parseInt(args[1]);
if (page > 0)