Make menubar before initInv
This commit is contained in:
parent
2ffdf01dd8
commit
440ab3dae5
|
|
@ -12,8 +12,8 @@ public class HomeGui extends AbstractGui {
|
|||
public HomeGui(UUID uuid) {
|
||||
super(uuid);
|
||||
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_HOME_TITLE));
|
||||
initInvContents();
|
||||
makeMenuBar();
|
||||
initInvContents();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ public class ListPlayersGui extends AbstractGui {
|
|||
super(uuid);
|
||||
this.owners = PlayerShops.getInstance().getShopHandler().getShopOwnersForThisServer();
|
||||
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_LIST_PLAYERS_TITLE));
|
||||
initInvContents();
|
||||
makeMenuBar();
|
||||
initInvContents();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ public class ListTransactionsGui extends AbstractGui {
|
|||
super(uuid);
|
||||
this.transactions = shop.getTransactions();
|
||||
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_LIST_TRANSACTIONS_TITLE));
|
||||
initInvContents();
|
||||
makeMenuBar();
|
||||
initInvContents();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ public class PlayerSettingsGui extends AbstractGui {
|
|||
public PlayerSettingsGui(UUID uuid) {
|
||||
super(uuid);
|
||||
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_PLAYER_SETTINGS_TITLE));
|
||||
makeMenuBar();
|
||||
initInvContents();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ public class ShopManagementGui extends AbstractGui {
|
|||
super(uuid);
|
||||
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_MANAGE_TITLE));
|
||||
this.shop = shop;
|
||||
initInvContents();
|
||||
makeMenuBar();
|
||||
initInvContents();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user