mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-16 19:21:20 +01:00
add default filler item globally
Took 2 minutes
This commit is contained in:
parent
e05220481a
commit
eb6fb3193c
@ -2,7 +2,9 @@ package ca.tweetzy.auctionhouse.guis;
|
||||
|
||||
import ca.tweetzy.auctionhouse.api.hook.PlaceholderAPIHook;
|
||||
import ca.tweetzy.auctionhouse.auction.AuctionPlayer;
|
||||
import ca.tweetzy.auctionhouse.settings.Settings;
|
||||
import ca.tweetzy.core.gui.Gui;
|
||||
import ca.tweetzy.core.gui.GuiUtils;
|
||||
import ca.tweetzy.core.utils.TextUtils;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@ -18,6 +20,8 @@ public abstract class AbstractPlaceholderGui extends Gui {
|
||||
|
||||
public AbstractPlaceholderGui(Player player) {
|
||||
this.player = player;
|
||||
// will be overriden by other guis
|
||||
setDefaultItem(GuiUtils.createButtonItem(Settings.GUI_FILLER.getMaterial(), " "));
|
||||
}
|
||||
|
||||
public AbstractPlaceholderGui(AuctionPlayer player) {
|
||||
|
@ -312,6 +312,10 @@ public class Settings {
|
||||
/* ===============================
|
||||
* GLOBAL ITEMS
|
||||
* ===============================*/
|
||||
|
||||
public static final ConfigSetting GUI_FILLER = new ConfigSetting(config, "gui.filler item", XMaterial.BLACK_STAINED_GLASS_PANE.name(), "An item to be used to fill empty gui slots, this will be", "removed in later versions to be done on a per gui basis");
|
||||
|
||||
|
||||
public static final ConfigSetting GUI_BACK_BTN_SLOT = new ConfigSetting(config, "gui.global items.back button.slot", 48, "Valid Slots: 45 - 53");
|
||||
public static final ConfigSetting GUI_BACK_BTN_ITEM = new ConfigSetting(config, "gui.global items.back button.item", "ARROW", "Settings for the back button");
|
||||
public static final ConfigSetting GUI_BACK_BTN_NAME = new ConfigSetting(config, "gui.global items.back button.name", "&e<< Back");
|
||||
|
Loading…
Reference in New Issue
Block a user