mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Fix help command not paginating
This commit is contained in:
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)"));
|
||||
|
||||
Reference in new issue
Block a user