diff --git a/src/main/java/me/totalfreedom/tfguilds/command/ListSubcommand.java b/src/main/java/me/totalfreedom/tfguilds/command/ListSubcommand.java index c400888..50b68e3 100644 --- a/src/main/java/me/totalfreedom/tfguilds/command/ListSubcommand.java +++ b/src/main/java/me/totalfreedom/tfguilds/command/ListSubcommand.java @@ -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;