mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 16:05:00 +00:00
fix check
This commit is contained in:
parent
e2017b3fd2
commit
1cf0d856a7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue