mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Fix search command page number
This commit is contained in:
parent
a61d3b3fd4
commit
da23b6ea9a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user