diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/misc/SearchCommand.java b/common/src/main/java/me/lucko/luckperms/common/commands/misc/SearchCommand.java index f1fac9165..466bf2095 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/misc/SearchCommand.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/misc/SearchCommand.java @@ -58,9 +58,9 @@ public class SearchCommand extends SingleCommand { String query = args.get(0); int page = 1; - if (args.size() > 0) { + if (args.size() > 1) { try { - page = Integer.parseInt(args.get(0)); + page = Integer.parseInt(args.get(1)); } catch (NumberFormatException e) { // ignored }