mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-15 04:15:10 +01:00
code reformat & import cleanup
Took 28 seconds
This commit is contained in:
parent
e3a76b1700
commit
871e2ab8b5
18
settings.xml
18
settings.xml
@ -1,12 +1,12 @@
|
|||||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||||
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||||
<servers>
|
<servers>
|
||||||
<server>
|
<server>
|
||||||
<id>github</id>
|
<id>github</id>
|
||||||
<username>kiranhart</username>
|
<username>kiranhart</username>
|
||||||
<password>f6a7b9b1ad18c0ce4d3765cb776d2bba1e83a746</password>
|
<password>f6a7b9b1ad18c0ce4d3765cb776d2bba1e83a746</password>
|
||||||
</server>
|
</server>
|
||||||
</servers>
|
</servers>
|
||||||
</settings>
|
</settings>
|
@ -30,18 +30,21 @@ public interface Statistic extends Identifiable, EditTrackable, Storeable<Statis
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The owning player of this statistic
|
* The owning player of this statistic
|
||||||
|
*
|
||||||
* @return the {@link UUID} of the statistic owner
|
* @return the {@link UUID} of the statistic owner
|
||||||
*/
|
*/
|
||||||
@NonNull UUID getOwner();
|
@NonNull UUID getOwner();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the statistic type that is being tracked
|
* Get the statistic type that is being tracked
|
||||||
|
*
|
||||||
* @return the tracked {@link AuctionStatisticType}
|
* @return the tracked {@link AuctionStatisticType}
|
||||||
*/
|
*/
|
||||||
@NonNull AuctionStatisticType getType();
|
@NonNull AuctionStatisticType getType();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The total value of this statistic
|
* The total value of this statistic
|
||||||
|
*
|
||||||
* @return statistic value
|
* @return statistic value
|
||||||
*/
|
*/
|
||||||
double getValue();
|
double getValue();
|
||||||
|
@ -4,9 +4,9 @@ import ca.tweetzy.auctionhouse.AuctionHouse;
|
|||||||
import ca.tweetzy.auctionhouse.api.AuctionAPI;
|
import ca.tweetzy.auctionhouse.api.AuctionAPI;
|
||||||
import ca.tweetzy.auctionhouse.auction.AuctionPlayer;
|
import ca.tweetzy.auctionhouse.auction.AuctionPlayer;
|
||||||
import ca.tweetzy.auctionhouse.guis.GUIAuctionHouse;
|
import ca.tweetzy.auctionhouse.guis.GUIAuctionHouse;
|
||||||
import ca.tweetzy.auctionhouse.guis.GUISellItem;
|
|
||||||
import ca.tweetzy.auctionhouse.guis.admin.GUIAdminExpired;
|
import ca.tweetzy.auctionhouse.guis.admin.GUIAdminExpired;
|
||||||
import ca.tweetzy.auctionhouse.guis.admin.GUIAdminLogs;
|
import ca.tweetzy.auctionhouse.guis.admin.GUIAdminLogs;
|
||||||
|
import ca.tweetzy.auctionhouse.guis.sell.GUISellItem;
|
||||||
import ca.tweetzy.auctionhouse.helpers.PlayerHelper;
|
import ca.tweetzy.auctionhouse.helpers.PlayerHelper;
|
||||||
import ca.tweetzy.auctionhouse.settings.Settings;
|
import ca.tweetzy.auctionhouse.settings.Settings;
|
||||||
import ca.tweetzy.core.commands.AbstractCommand;
|
import ca.tweetzy.core.commands.AbstractCommand;
|
||||||
|
@ -7,8 +7,8 @@ import ca.tweetzy.auctionhouse.auction.AuctionedItem;
|
|||||||
import ca.tweetzy.auctionhouse.auction.enums.AuctionSaleType;
|
import ca.tweetzy.auctionhouse.auction.enums.AuctionSaleType;
|
||||||
import ca.tweetzy.auctionhouse.guis.GUIAuctionHouse;
|
import ca.tweetzy.auctionhouse.guis.GUIAuctionHouse;
|
||||||
import ca.tweetzy.auctionhouse.guis.GUIBundleCreation;
|
import ca.tweetzy.auctionhouse.guis.GUIBundleCreation;
|
||||||
import ca.tweetzy.auctionhouse.guis.GUISellItem;
|
|
||||||
import ca.tweetzy.auctionhouse.guis.confirmation.GUIListingConfirm;
|
import ca.tweetzy.auctionhouse.guis.confirmation.GUIListingConfirm;
|
||||||
|
import ca.tweetzy.auctionhouse.guis.sell.GUISellItem;
|
||||||
import ca.tweetzy.auctionhouse.helpers.MaterialCategorizer;
|
import ca.tweetzy.auctionhouse.helpers.MaterialCategorizer;
|
||||||
import ca.tweetzy.auctionhouse.helpers.PlayerHelper;
|
import ca.tweetzy.auctionhouse.helpers.PlayerHelper;
|
||||||
import ca.tweetzy.auctionhouse.settings.Settings;
|
import ca.tweetzy.auctionhouse.settings.Settings;
|
||||||
|
@ -15,6 +15,7 @@ import ca.tweetzy.auctionhouse.guis.admin.GUIAdminItem;
|
|||||||
import ca.tweetzy.auctionhouse.guis.confirmation.GUIConfirmBid;
|
import ca.tweetzy.auctionhouse.guis.confirmation.GUIConfirmBid;
|
||||||
import ca.tweetzy.auctionhouse.guis.confirmation.GUIConfirmPurchase;
|
import ca.tweetzy.auctionhouse.guis.confirmation.GUIConfirmPurchase;
|
||||||
import ca.tweetzy.auctionhouse.guis.filter.GUIFilterSelection;
|
import ca.tweetzy.auctionhouse.guis.filter.GUIFilterSelection;
|
||||||
|
import ca.tweetzy.auctionhouse.guis.sell.GUISellItem;
|
||||||
import ca.tweetzy.auctionhouse.guis.transaction.GUITransactionList;
|
import ca.tweetzy.auctionhouse.guis.transaction.GUITransactionList;
|
||||||
import ca.tweetzy.auctionhouse.guis.transaction.GUITransactionType;
|
import ca.tweetzy.auctionhouse.guis.transaction.GUITransactionType;
|
||||||
import ca.tweetzy.auctionhouse.helpers.ConfigurationItemHelper;
|
import ca.tweetzy.auctionhouse.helpers.ConfigurationItemHelper;
|
||||||
@ -473,8 +474,6 @@ public class GUIAuctionHouse extends AbstractPlaceholderGui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void drawPaginationButtons() {
|
private void drawPaginationButtons() {
|
||||||
setItem(Settings.GUI_NEXT_BTN_SLOT.getInt(), XMaterial.AIR.parseItem());
|
|
||||||
setItem(Settings.GUI_BACK_BTN_SLOT.getInt(), XMaterial.AIR.parseItem());
|
|
||||||
setPrevPage(Settings.GUI_BACK_BTN_SLOT.getInt(), new TItemBuilder(Objects.requireNonNull(Settings.GUI_BACK_BTN_ITEM.getMaterial().parseMaterial())).setName(Settings.GUI_BACK_BTN_NAME.getString()).setLore(Settings.GUI_BACK_BTN_LORE.getStringList()).toItemStack());
|
setPrevPage(Settings.GUI_BACK_BTN_SLOT.getInt(), new TItemBuilder(Objects.requireNonNull(Settings.GUI_BACK_BTN_ITEM.getMaterial().parseMaterial())).setName(Settings.GUI_BACK_BTN_NAME.getString()).setLore(Settings.GUI_BACK_BTN_LORE.getStringList()).toItemStack());
|
||||||
setNextPage(Settings.GUI_NEXT_BTN_SLOT.getInt(), new TItemBuilder(Objects.requireNonNull(Settings.GUI_NEXT_BTN_ITEM.getMaterial().parseMaterial())).setName(Settings.GUI_NEXT_BTN_NAME.getString()).setLore(Settings.GUI_NEXT_BTN_LORE.getStringList()).toItemStack());
|
setNextPage(Settings.GUI_NEXT_BTN_SLOT.getInt(), new TItemBuilder(Objects.requireNonNull(Settings.GUI_NEXT_BTN_ITEM.getMaterial().parseMaterial())).setName(Settings.GUI_NEXT_BTN_NAME.getString()).setLore(Settings.GUI_NEXT_BTN_LORE.getStringList()).toItemStack());
|
||||||
|
|
||||||
|
@ -841,6 +841,59 @@ public class Settings {
|
|||||||
public static final ConfigSetting GUI_SELL_ITEMS_BUY_NOW_DISABLED_NAME = new ConfigSetting(config, "gui.sell.items.buy now disabled.name", "&c&lBuy Now Disabled");
|
public static final ConfigSetting GUI_SELL_ITEMS_BUY_NOW_DISABLED_NAME = new ConfigSetting(config, "gui.sell.items.buy now disabled.name", "&c&lBuy Now Disabled");
|
||||||
public static final ConfigSetting GUI_SELL_ITEMS_BUY_NOW_DISABLED_LORE = new ConfigSetting(config, "gui.sell.items.buy now disabled.lore", Collections.singletonList("&7Click to &aEnable &7buy now"));
|
public static final ConfigSetting GUI_SELL_ITEMS_BUY_NOW_DISABLED_LORE = new ConfigSetting(config, "gui.sell.items.buy now disabled.lore", Collections.singletonList("&7Click to &aEnable &7buy now"));
|
||||||
|
|
||||||
|
/* ===============================
|
||||||
|
* ITEM SELL LISTING TYPE GUI
|
||||||
|
* ===============================*/
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_TITLE = new ConfigSetting(config, "gui.sell listing type.title", "&7Auction House - &eSelect Listing Type");
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_BG_ITEM = new ConfigSetting(config, "gui.sell listing type.bg item", XMaterial.BLACK_STAINED_GLASS_PANE.name());
|
||||||
|
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_ITEMS_BIN_ITEM = new ConfigSetting(config, "gui.sell listing type.items.bin.item", XMaterial.SUNFLOWER.name());
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_ITEMS_BIN_NAME = new ConfigSetting(config, "gui.sell listing type.items.bin.name", "&e&lBin Item");
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_ITEMS_BIN_LORE = new ConfigSetting(config, "gui.sell listing type.items.bin.lore", Arrays.asList(
|
||||||
|
"&7A Bin item is an item that does not accept any",
|
||||||
|
"&7bids, it must be bought for the listed price.",
|
||||||
|
"",
|
||||||
|
"&7Click to list as &aBin Item"
|
||||||
|
));
|
||||||
|
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_ITEMS_AUCTION_ITEM = new ConfigSetting(config, "gui.sell listing type.items.auction.item", XMaterial.DIAMOND.name());
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_ITEMS_AUCTION_NAME = new ConfigSetting(config, "gui.sell listing type.items.auction.name", "&e&lAuction Item");
|
||||||
|
public static final ConfigSetting GUI_SELL_LISTING_TYPE_ITEMS_AUCTION_LORE = new ConfigSetting(config, "gui.sell listing type.items.auction.lore", Arrays.asList(
|
||||||
|
"&7An Auction item is an item that can be bid",
|
||||||
|
"&7on by multiple people, the highest bid wins.",
|
||||||
|
"",
|
||||||
|
"&7Click to list as an &aAuction"
|
||||||
|
));
|
||||||
|
|
||||||
|
/* ===============================
|
||||||
|
* ITEM SELL PLACE ITEM GUI
|
||||||
|
* ===============================*/
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_TITLE = new ConfigSetting(config, "gui.sell place item.title", "&7Auction House - &ePlace Item(s)");
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_BG_ITEM = new ConfigSetting(config, "gui.sell place item.bg item", XMaterial.BLACK_STAINED_GLASS_PANE.name());
|
||||||
|
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_ITEMS_CONTINUE_ITEM = new ConfigSetting(config, "gui.sell place item.items.continue.item", XMaterial.LIME_STAINED_GLASS_PANE.name());
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_ITEMS_CONTINUE_NAME = new ConfigSetting(config, "gui.sell place item.items.continue.name", "&e&lContinue");
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_ITEMS_CONTINUE_LORE = new ConfigSetting(config, "gui.sell place item.items.continue.lore", Arrays.asList(
|
||||||
|
"",
|
||||||
|
"&7Click to continue to pricing"
|
||||||
|
));
|
||||||
|
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_ITEMS_BUNDLE_NAME = new ConfigSetting(config, "gui.sell place item.items.bundle.name", "&e&lListing Bundle");
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_ITEMS_BUNDLE_LORE = new ConfigSetting(config, "gui.sell place item.items.bundle.lore", Arrays.asList(
|
||||||
|
"&7You are currently in the bundle",
|
||||||
|
"&7listing view.",
|
||||||
|
"",
|
||||||
|
"&7Click to list a single item instead"
|
||||||
|
));
|
||||||
|
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_ITEMS_SINGLE_NAME = new ConfigSetting(config, "gui.sell place item.items.single.name", "&e&lSingle Listing");
|
||||||
|
public static final ConfigSetting GUI_SELL_PLACE_ITEM_ITEMS_SINGLE_LORE = new ConfigSetting(config, "gui.sell place item.items.single.lore", Arrays.asList(
|
||||||
|
"&7You are currently in the single",
|
||||||
|
"&7item listing view.",
|
||||||
|
"",
|
||||||
|
"&7Click to list a bundle instead"
|
||||||
|
));
|
||||||
|
|
||||||
/* ===============================
|
/* ===============================
|
||||||
* AH STATS GUI
|
* AH STATS GUI
|
||||||
* ===============================*/
|
* ===============================*/
|
||||||
|
Loading…
Reference in New Issue
Block a user