mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +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())))
|
Locales.escapeMineDown(locales.formatDescription(command.getDescription())))
|
||||||
.orElse(command.command))
|
.orElse(command.command))
|
||||||
.collect(Collectors.toList()),
|
.collect(Collectors.toList()),
|
||||||
getBaseList(locales, itemsPerPage)
|
getBaseList(locales, Math.min(itemsPerPage, 6))
|
||||||
.setHeaderFormat(locales.getRawLocale("command_list_title").orElse(""))
|
.setHeaderFormat(locales.getRawLocale("command_list_title").orElse(""))
|
||||||
.setItemSeparator("\n").setCommand("/huskhomes:huskhomes help").build())
|
.setItemSeparator("\n").setCommand("/huskhomes:huskhomes help").build())
|
||||||
.getNearestValidPage(page);
|
.getNearestValidPage(page);
|
||||||
|
|||||||
Reference in new issue
Block a user