fixed issue with filler

Took 1 minute
This commit is contained in:
Kiran Hart 2022-04-15 13:02:03 -04:00
parent ca31b1f6cd
commit e63fcccbf8

View File

@ -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)));