From c26831614cfb1a568307f32b931cb67fbbf19094 Mon Sep 17 00:00:00 2001 From: Spencer Date: Fri, 5 Jan 2018 20:41:23 -0500 Subject: [PATCH] Fixes to RankBonusPage --- .../staffServer/ui/rank/SupportRankBonusPage.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java index 92eefe3be..958638387 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java @@ -30,25 +30,21 @@ public class SupportRankBonusPage extends SupportPage getBonusLog().sort((a, b) -> Long.compare(b.getCalendar().getTimeInMillis(), a.getCalendar().getTimeInMillis())); - _multiPageManager = new MultiPageManager<>( - this, - this::getBonusLog, - (Pair pair) -> this.buildEntry(pair.getLeft(), pair.getRight()) - ); + _multiPageManager = new MultiPageManager<>(this, this::getBonusLog, this::buildEntry); buildPage(); } private List getBonusLog() { - return getShop().getBonusLog(_target.getAccountId()); + return getShop().getBonusLog().get(_target.getAccountId()); } private void buildEntry(BonusEntry entry, int slot) { addItem(slot, new ShopItem(Material.BOOK, new SimpleDateFormat("MMMM").format(entry.getCalendar().getTime()), new String[] { "", - C.cGray + "Time: " + C.cYellow + new SimpleDateFormat("MMMM dd YYYY, KK:mm aa").format(entry.getCalendar().getTime()), + C.cGray + "Time: " + C.cYellow + new SimpleDateFormat("MMMM dd YYYY").format(entry.getCalendar().getTime()), C.cGray + "Item Received: " + C.cYellow + entry.getItemName(), C.cGray + "Amount Received: " + C.cYellow + entry.getItemCount() }, entry.getCalendar().get(Calendar.MONTH) + 1, false, true));