1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-18 05:11:32 +01:00

GUI empty field filler from CMILib

This commit is contained in:
Zrips 2022-11-15 13:26:52 +02:00
parent e4ca78fa57
commit f1537befde
3 changed files with 2 additions and 8 deletions

View File

@ -49,7 +49,6 @@ public class GuiManager {
CMIGui gui = new CMIGui(player);
gui.setTitle(Jobs.getLanguage().getMessage("command.info.gui.pickjob"));
gui.setFiller(Jobs.getGCManager().guiFiller);
int guiSize = Jobs.getGCManager().getJobsGUIRows() * 9,
neededSlots = jobsListSize + ((jobsListSize / Jobs.getGCManager().getJobsGUIGroupAmount())
@ -321,7 +320,6 @@ public class GuiManager {
CMIGui gui = new CMIGui(player);
gui.setTitle(Jobs.getLanguage().getMessage("command.info.gui.jobinfo", "[jobname]", job.getName()));
gui.setFiller(Jobs.getGCManager().guiFiller);
gui.setInvSize(guiSize);
List<ItemStack> items = new ArrayList<>();
@ -472,7 +470,7 @@ public class GuiManager {
CMIGui gui = new CMIGui(player);
gui.setTitle(Jobs.getLanguage().getMessage("command.info.gui.jobinfo", "[jobname]", job.getName()));
gui.setFiller(Jobs.getGCManager().guiFiller);
gui.setInvSize(guiSize);
List<ItemStack> items = new ArrayList<>();

View File

@ -108,7 +108,6 @@ public class GeneralConfigManager {
payForEachVTradeItem, allowEnchantingBoostedItems, bossBarAsync = false, preventShopItemEnchanting;
public ItemStack guiBackButton, guiNextButton;
public CMIMaterial guiFiller;
public Parser DynamicPaymentEquation;
@ -1085,9 +1084,6 @@ public class GeneralConfigManager {
tmat = CMIMaterial.get(c.get("JobsGUI.NextButton.Material", "ARROW"));
guiNextButton = (tmat == CMIMaterial.NONE ? CMIMaterial.ARROW : tmat).newItemStack();
tmat = CMIMaterial.get(c.get("JobsGUI.Filler.Material", "GREEN_STAINED_GLASS_PANE"));
guiFiller = (tmat == CMIMaterial.NONE ? CMIMaterial.GREEN_STAINED_GLASS_PANE : tmat);
c.addComment("BlockOwnership.Range", "Set to 0 or lower if you want to disable this. Setting to positive number will mean that player needs to be in this range from owner block to get paid");
blockOwnershipRange = c.get("BlockOwnership.Range", 0);

View File

@ -294,7 +294,7 @@ public class ShopManager {
}
});
}
gui.setFiller(Jobs.getGCManager().guiFiller);
gui.fillEmptyButtons();
gui.open();
return true;