From ce946f7927946932fcc9651ff31e536326c034ed Mon Sep 17 00:00:00 2001 From: Spencer Date: Thu, 4 Jan 2018 19:30:02 -0500 Subject: [PATCH] Commit RankBonusPage so I can commit quest stuff while I figure out what the cust repo is doing --- .../staffServer/ui/SupportHomePage.java | 1 + .../mineplex/staffServer/ui/SupportPage.java | 2 ++ .../{ => currency}/SupportCurrencyPage.java | 4 +++- .../ui/rank/SupportRankBonusPage.java | 24 +++++++++++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) rename Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/{ => currency}/SupportCurrencyPage.java (93%) create mode 100644 Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java index 0fb729978..753696deb 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java @@ -11,6 +11,7 @@ import mineplex.core.common.util.C; import mineplex.core.shop.item.ShopItem; import mineplex.staffServer.customerSupport.CustomerSupport; import mineplex.staffServer.ui.chest.SupportChestPage; +import mineplex.staffServer.ui.currency.SupportCurrencyPage; public class SupportHomePage extends SupportPage { diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java index 3dd4ec01e..8256fd4fd 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java @@ -36,6 +36,8 @@ public class SupportPage extends ShopPageBase { super(plugin, shop, plugin.getClientManager(), plugin.getDonationManager(), name + " - " + target.getName(), player); + assert name.length() < 13; + _target = target; _donor = getPlugin().getDonationManager().Get(_target.getUniqueId()); _previousPage = previousPage; diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportCurrencyPage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/currency/SupportCurrencyPage.java similarity index 93% rename from Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportCurrencyPage.java rename to Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/currency/SupportCurrencyPage.java index 475f21387..1deae9db8 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportCurrencyPage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/currency/SupportCurrencyPage.java @@ -1,4 +1,4 @@ -package mineplex.staffServer.ui; +package mineplex.staffServer.ui.currency; import org.bukkit.entity.Player; @@ -7,6 +7,8 @@ import mineplex.core.common.currency.GlobalCurrency; import mineplex.core.common.util.C; import mineplex.core.shop.item.ShopItem; import mineplex.staffServer.customerSupport.CustomerSupport; +import mineplex.staffServer.ui.SupportPage; +import mineplex.staffServer.ui.SupportShop; public class SupportCurrencyPage extends SupportPage { diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java new file mode 100644 index 000000000..0b6cd8b55 --- /dev/null +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/rank/SupportRankBonusPage.java @@ -0,0 +1,24 @@ +package mineplex.staffServer.ui.rank; + +import org.bukkit.entity.Player; + +import mineplex.core.account.CoreClient; +import mineplex.staffServer.customerSupport.CustomerSupport; +import mineplex.staffServer.ui.SupportPage; +import mineplex.staffServer.ui.SupportShop; + +public class SupportRankBonusPage extends SupportPage +{ + public SupportRankBonusPage(CustomerSupport plugin, SupportShop shop, Player player, CoreClient target, SupportPage previousPage, String name) + { + super(plugin, shop, player, target, previousPage, "Rank Bonus"); + } + + @Override + protected void buildPage() + { + super.buildPage(); + + + } +}