From 18c739246bc729a4338744ca9d7b519eadb18548 Mon Sep 17 00:00:00 2001 From: William Date: Thu, 23 Mar 2023 02:29:40 +0000 Subject: [PATCH] Fix help command not paginating --- .../java/net/william278/huskhomes/command/HuskHomesCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java b/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java index 7c81981c..51622b4b 100644 --- a/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java +++ b/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java @@ -61,7 +61,7 @@ public class HuskHomesCommand extends Command implements TabProvider { switch (action.toLowerCase()) { case "about" -> executor.sendMessage(aboutMenu.toMineDown()); case "help" -> executor.sendMessage(getCommandList(executor) - .getNearestValidPage(parseIntArg(args, 0).orElse(1))); + .getNearestValidPage(parseIntArg(args, 1).orElse(1))); case "reload" -> { if (!plugin.loadConfigs()) { executor.sendMessage(new MineDown("[Error:](#ff3300) [Failed to reload the plugin. Check console for errors.](#ff7e5e)"));