Fix help command not paginating

This commit is contained in:
William committed 2023-03-23 02:29:40 +00:00
1 parent 5e12fec034
commit 18c739246b
1 file changed
+1 -1
@@ -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)"));