mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-22 05:25:11 +01:00
fixed issue with filler
Took 1 minute
This commit is contained in:
parent
ca31b1f6cd
commit
e63fcccbf8
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user