mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +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()) {
|
switch (action.toLowerCase()) {
|
||||||
case "about" -> executor.sendMessage(aboutMenu.toMineDown());
|
case "about" -> executor.sendMessage(aboutMenu.toMineDown());
|
||||||
case "help" -> executor.sendMessage(getCommandList(executor)
|
case "help" -> executor.sendMessage(getCommandList(executor)
|
||||||
.getNearestValidPage(parseIntArg(args, 0).orElse(1)));
|
.getNearestValidPage(parseIntArg(args, 1).orElse(1)));
|
||||||
case "reload" -> {
|
case "reload" -> {
|
||||||
if (!plugin.loadConfigs()) {
|
if (!plugin.loadConfigs()) {
|
||||||
executor.sendMessage(new MineDown("[Error:](#ff3300) [Failed to reload the plugin. Check console for errors.](#ff7e5e)"));
|
executor.sendMessage(new MineDown("[Error:](#ff3300) [Failed to reload the plugin. Check console for errors.](#ff7e5e)"));
|
||||||
|
|||||||
Reference in new issue
Block a user