mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-01-01 05:57:52 +01:00
Complain about lack of page index to packet page.
This commit is contained in:
parent
a902c1f186
commit
4f95b515ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user