fix check

This commit is contained in:
speed 2020-11-30 17:26:23 -05:00
parent e2017b3fd2
commit 1cf0d856a7

View file

@ -45,7 +45,7 @@ public class ListSubcommand extends Common implements CommandExecutor
}
}
if (pageIndex > paged.getPageCount() || pageIndex + 1 < paged.getPageCount())
if (pageIndex < 1 || pageIndex > paged.getPageCount())
{
sender.sendMessage(ChatColor.RED + "Not a valid page number");
return true;