Amount per page will be configurable soon

This commit is contained in:
extendedclip 2018-03-24 11:51:04 -04:00
parent 05b752baa2
commit 3a672e94ac
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ public class ExpansionCloudCommands implements CommandExecutor {
Msg.msg(s, "&bExpansion cloud for &f" + (author != null ? author : "all available")+ " &8&m-- &r&bamount&7: &f" + ex.size() + " &bpage&7: &f" + page + "&7/&f" + avail); Msg.msg(s, "&bExpansion cloud for &f" + (author != null ? author : "all available")+ " &8&m-- &r&bamount&7: &f" + ex.size() + " &bpage&7: &f" + page + "&7/&f" + avail);
ex = plugin.getExpansionCloud().getPage(ex, page); ex = plugin.getExpansionCloud().getPage(ex, page, 10);
for (Entry<Integer, CloudExpansion> expansion : ex.entrySet()) { for (Entry<Integer, CloudExpansion> expansion : ex.entrySet()) {
Msg.msg(s, "&b" + (expansion.getKey()+1) + "&7: &f" + expansion.getValue().getName() + " &8&m-- &r" + expansion.getValue().getLink()); Msg.msg(s, "&b" + (expansion.getKey()+1) + "&7: &f" + expansion.getValue().getName() + " &8&m-- &r" + expansion.getValue().getLink());

View File

@ -210,7 +210,7 @@ public class ExpansionCloudCommands implements CommandExecutor {
Msg.msg(s, "&bShowing expansions for&7: &f" + (author != null ? author : (installed ? "all installed" : "all available"))+ " &8&m--&r &bamount&7: &f" + ex.size() + " &bpage&7: &f" + page + "&7/&f" + avail); Msg.msg(s, "&bShowing expansions for&7: &f" + (author != null ? author : (installed ? "all installed" : "all available"))+ " &8&m--&r &bamount&7: &f" + ex.size() + " &bpage&7: &f" + page + "&7/&f" + avail);
ex = plugin.getExpansionCloud().getPage(ex, page); ex = plugin.getExpansionCloud().getPage(ex, page, 10);
if (ex == null) { if (ex == null) {
Msg.msg(s, "&cThere was a problem getting the requested page..."); Msg.msg(s, "&cThere was a problem getting the requested page...");