diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/AbstractPlaceholderGui.java b/src/main/java/ca/tweetzy/auctionhouse/guis/AbstractPlaceholderGui.java index e460aa3..ded0e2b 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/AbstractPlaceholderGui.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/AbstractPlaceholderGui.java @@ -20,15 +20,16 @@ public abstract class AbstractPlaceholderGui extends Gui { public AbstractPlaceholderGui(Player player) { this.player = player; - // will be overriden by other guis + setUseLockedCells(true); setDefaultItem(GuiUtils.createButtonItem(Settings.GUI_FILLER.getMaterial(), " ")); } public AbstractPlaceholderGui(AuctionPlayer player) { this.player = player.getPlayer(); + setUseLockedCells(true); + setDefaultItem(GuiUtils.createButtonItem(Settings.GUI_FILLER.getMaterial(), " ")); } - @Override public Gui setTitle(String message) { super.setTitle(this.player == null ? TextUtils.formatText(message) : TextUtils.formatText(PlaceholderAPIHook.PAPIReplacer.tryReplace(this.player, message)));