Make menubar before initInv

This commit is contained in:
Len 2023-08-13 18:28:02 +02:00
parent 2ffdf01dd8
commit 440ab3dae5
5 changed files with 5 additions and 4 deletions

View File

@ -12,8 +12,8 @@ public class HomeGui extends AbstractGui {
public HomeGui(UUID uuid) { public HomeGui(UUID uuid) {
super(uuid); super(uuid);
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_HOME_TITLE)); this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_HOME_TITLE));
initInvContents();
makeMenuBar(); makeMenuBar();
initInvContents();
} }
@Override @Override

View File

@ -20,8 +20,8 @@ public class ListPlayersGui extends AbstractGui {
super(uuid); super(uuid);
this.owners = PlayerShops.getInstance().getShopHandler().getShopOwnersForThisServer(); this.owners = PlayerShops.getInstance().getShopHandler().getShopOwnersForThisServer();
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_LIST_PLAYERS_TITLE)); this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_LIST_PLAYERS_TITLE));
initInvContents();
makeMenuBar(); makeMenuBar();
initInvContents();
} }
@Override @Override

View File

@ -21,8 +21,8 @@ public class ListTransactionsGui extends AbstractGui {
super(uuid); super(uuid);
this.transactions = shop.getTransactions(); this.transactions = shop.getTransactions();
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_LIST_TRANSACTIONS_TITLE)); this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_LIST_TRANSACTIONS_TITLE));
initInvContents();
makeMenuBar(); makeMenuBar();
initInvContents();
} }
@Override @Override

View File

@ -24,6 +24,7 @@ public class PlayerSettingsGui extends AbstractGui {
public PlayerSettingsGui(UUID uuid) { public PlayerSettingsGui(UUID uuid) {
super(uuid); super(uuid);
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_PLAYER_SETTINGS_TITLE)); this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_PLAYER_SETTINGS_TITLE));
makeMenuBar();
initInvContents(); initInvContents();
} }

View File

@ -29,8 +29,8 @@ public class ShopManagementGui extends AbstractGui {
super(uuid); super(uuid);
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_MANAGE_TITLE)); this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_MANAGE_TITLE));
this.shop = shop; this.shop = shop;
initInvContents();
makeMenuBar(); makeMenuBar();
initInvContents();
} }
@Override @Override