mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Limit number of commands to display at once to 6
This commit is contained in:
1 parent
1c6902fc9e
commit
efa3e21ed4
1 file changed
+1
-1
@@ -158,7 +158,7 @@ public class Cache {
|
||||
Locales.escapeMineDown(locales.formatDescription(command.getDescription())))
|
||||
.orElse(command.command))
|
||||
.collect(Collectors.toList()),
|
||||
getBaseList(locales, itemsPerPage)
|
||||
getBaseList(locales, Math.min(itemsPerPage, 6))
|
||||
.setHeaderFormat(locales.getRawLocale("command_list_title").orElse(""))
|
||||
.setItemSeparator("\n").setCommand("/huskhomes:huskhomes help").build())
|
||||
.getNearestValidPage(page);
|
||||
|
||||
Reference in new issue
Block a user