From 3a672e94ac4d7581ba6eecc61021907a2c019c0a Mon Sep 17 00:00:00 2001 From: extendedclip Date: Sat, 24 Mar 2018 11:51:04 -0400 Subject: [PATCH] Amount per page will be configurable soon --- .../placeholderapi/commands/bukkit/ExpansionCloudCommands.java | 2 +- .../placeholderapi/commands/spigot/ExpansionCloudCommands.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/commands/bukkit/ExpansionCloudCommands.java b/src/main/java/me/clip/placeholderapi/commands/bukkit/ExpansionCloudCommands.java index 405dbd9..e6d6275 100644 --- a/src/main/java/me/clip/placeholderapi/commands/bukkit/ExpansionCloudCommands.java +++ b/src/main/java/me/clip/placeholderapi/commands/bukkit/ExpansionCloudCommands.java @@ -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); - ex = plugin.getExpansionCloud().getPage(ex, page); + ex = plugin.getExpansionCloud().getPage(ex, page, 10); for (Entry expansion : ex.entrySet()) { Msg.msg(s, "&b" + (expansion.getKey()+1) + "&7: &f" + expansion.getValue().getName() + " &8&m-- &r" + expansion.getValue().getLink()); diff --git a/src/main/java/me/clip/placeholderapi/commands/spigot/ExpansionCloudCommands.java b/src/main/java/me/clip/placeholderapi/commands/spigot/ExpansionCloudCommands.java index 9c992a6..c58678a 100644 --- a/src/main/java/me/clip/placeholderapi/commands/spigot/ExpansionCloudCommands.java +++ b/src/main/java/me/clip/placeholderapi/commands/spigot/ExpansionCloudCommands.java @@ -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); - ex = plugin.getExpansionCloud().getPage(ex, page); + ex = plugin.getExpansionCloud().getPage(ex, page, 10); if (ex == null) { Msg.msg(s, "&cThere was a problem getting the requested page...");