From e7b67ae7d68ce5808a4f18d895052d532ea6ae2b Mon Sep 17 00:00:00 2001 From: Spencer Date: Sun, 7 Jan 2018 08:47:47 -0500 Subject: [PATCH] Remove openPageAsync and clean up BonusData on close --- .../src/mineplex/staffServer/ui/SupportShop.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportShop.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportShop.java index 1e72c95a8..87111ad42 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportShop.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportShop.java @@ -48,18 +48,13 @@ public class SupportShop extends ShopBase loadPowerPlay(caller, target.getAccountId(), (ppcS) -> loadPetClient(caller, target, (petS) -> loadBonusData(caller, target.getAccountId(), (bonusS) -> - openPageAsync(caller, new SupportHomePage(getPlugin(), this, caller, target)) + openPageForPlayer(caller, new SupportHomePage(getPlugin(), this, caller, target)) ) ) ) ); } - public void openPageAsync(Player player, SupportPage page) - { - UtilServer.runAsync(() -> UtilServer.runSync(()-> super.openPageForPlayer(player, page))); - } - public void loadBonusLog(Player caller, int accountId, Consumer callback) { getPlugin().getRepository().loadBonusLog(accountId, resultSet -> @@ -152,6 +147,7 @@ public class SupportShop extends ShopBase _bonusLog.remove(player); _powerPlayData.remove(player); _petClients.remove(player); + _bonusData.remove(player); } @Override