public interface Auction
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(AuctionItem item,
ItemType type)
Stores an item
|
void |
buyItem(AuctionItem item,
org.bukkit.entity.Player player)
Buy an item
|
boolean |
canBuy(org.bukkit.entity.Player player,
AuctionItem item)
Check if the player can buy the item
|
boolean |
canSell(AuctionItem item)
Check if item time has expired or not
|
boolean |
canSell(org.bukkit.entity.Player player,
long price)
Check if the player can sell this item or not with the given price
|
boolean |
canSellMoreItem(org.bukkit.entity.Player player)
Check if the player can sell items
|
java.util.List<fr.maxlego08.zauctionhouse.zcore.utils.inventory.ConfigButton> |
getButtons()
Return buttons list
|
int |
getBuying(org.bukkit.entity.Player player)
Number purchased item for the player
|
java.util.List<AuctionItem> |
getBuyingItems()
List of items purchased
|
java.util.List<AuctionItem> |
getBuyingItems(org.bukkit.entity.Player player)
List of items purchased for a player
|
AuctionItem |
getByID(long id)
Search the item only in the list of items for sales
|
AuctionItem |
getByUniqueID(long id)
Search for items in all lists
|
int |
getExpire(org.bukkit.entity.Player player)
Number expired item for the player
|
java.util.List<AuctionItem> |
getExpiredItems()
List of items expired
|
java.util.List<AuctionItem> |
getExpiredItems(org.bukkit.entity.Player player)
List of items expired for a player
|
int |
getItem(org.bukkit.entity.Player player)
Number sales item for the player
|
java.util.List<AuctionItem> |
getItems()
List of items for sale
|
java.util.List<AuctionItem> |
getItems(Category category)
List of items according to a category
|
java.util.List<AuctionItem> |
getItems(Category category,
org.bukkit.entity.Player player)
List of items according to a category
|
java.util.List<AuctionItem> |
getItems(org.bukkit.entity.Player player)
List of items for sale for a player
|
java.util.List<AuctionItem> |
getItems(Sorting shorting)
List of items for sale
|
java.util.List<AuctionItem> |
getItemsFromSearch(java.lang.String name)
List of items according to a category
|
java.util.List<AuctionItem> |
getItemsSort(org.bukkit.entity.Player player) |
int |
getMaxPage(java.util.List<AuctionItem> item)
Maximum number of pages for an item list
|
int |
getMaxSellPerPermission(org.bukkit.entity.Player player)
Maximum number of items the player can sell
|
java.lang.String |
getPrice(AuctionItem item)
Price of the item with the correct currency
|
java.lang.String |
getPrice(AuctionItem item,
long price)
Price of the item with the correct currency
|
long |
getPriceWithTaxe(long price)
Price with the tax
|
java.util.Map<java.lang.String,Sorting> |
getSort()
Allows you to retrieve all the sortings of each player
|
Sorting |
getSort(org.bukkit.entity.Player player) |
Sorting |
getSort(java.lang.String player) |
ItemType |
getType(long id) |
void |
giveItem(AuctionItem item,
org.bukkit.entity.Player player,
ItemType type,
boolean updateInventory)
Give an item to the player
|
void |
initButtons()
Create buttons for config
|
boolean |
isBlackList(java.util.List<java.lang.String> lore)
Check if the item is blacklist based on its lore
|
boolean |
isBlackList(java.lang.String name)
Check if the item is blacklisted by name
|
void |
remove(AuctionItem item,
ItemType type)
Removes an item from storage
|
void |
remove(AuctionItem item,
org.bukkit.entity.Player player,
boolean admin)
Removes an item from sales
|
void |
removeAll(org.bukkit.command.CommandSender sender,
java.lang.String player) |
void |
sellItem(org.bukkit.inventory.ItemStack item,
org.bukkit.entity.Player player,
long price,
Economy economy,
int how)
Sell an item
|
void |
sendMessage(org.bukkit.entity.Player player,
java.lang.String message,
fr.maxlego08.zauctionhouse.zcore.utils.Message type)
Send a message on days with different option enabled
|
void |
setBuyingItems(java.util.List<AuctionItem> buyingItems)
Put the list of purchased items
|
void |
setExpiredItems(java.util.List<AuctionItem> expiredItems)
Put the list of items expired
|
void |
setItems(java.util.List<AuctionItem> items)
Put the list of items
|
void |
setSort(org.bukkit.entity.Player player,
Sorting sorting) |
void |
updateBuying()
Allows you to update purchased items, items that arrive at the end of the
timer, will simply disappear
|
void |
updateExpire()
Allows you to update expired items, items that arrive at the end of the
timer, will just disappear
|
void |
updateItems()
Allows you to update items for sale, items that are expired will go into
item storage expired
|
void addItem(AuctionItem item, ItemType type)
item - that will be storedtype - of itemvoid remove(AuctionItem item, ItemType type)
item - that will be removedtype - of itemvoid removeAll(org.bukkit.command.CommandSender sender,
java.lang.String player)
sender - player - void updateItems()
void updateExpire()
void updateBuying()
void setItems(java.util.List<AuctionItem> items)
items - void setBuyingItems(java.util.List<AuctionItem> buyingItems)
buyingItems - void setExpiredItems(java.util.List<AuctionItem> expiredItems)
expiredItems - void sellItem(org.bukkit.inventory.ItemStack item,
org.bukkit.entity.Player player,
long price,
Economy economy,
int how)
item - that will be soldplayer - who sells the itemprice - of the itemif - the item uses playerpointthe - number of items offered for salevoid buyItem(AuctionItem item, org.bukkit.entity.Player player)
item - that will be purchasedplayer - who will buy the itemvoid remove(AuctionItem item, org.bukkit.entity.Player player, boolean admin)
Item - to be removedplayer - who withdraws the itemif - the action is done by an adminvoid giveItem(AuctionItem item, org.bukkit.entity.Player player, ItemType type, boolean updateInventory)
item - that will be givenplayer - who will receive the itemtype - of itemif - the inventory needs to be updatedvoid sendMessage(org.bukkit.entity.Player player,
java.lang.String message,
fr.maxlego08.zauctionhouse.zcore.utils.Message type)
player - message - void initButtons()
void setSort(org.bukkit.entity.Player player,
Sorting sorting)
player - sorting - java.lang.String getPrice(AuctionItem item)
item - that will be usedjava.lang.String getPrice(AuctionItem item, long price)
item - that will be usedprice - that will be usedlong getPriceWithTaxe(long price)
price - int getExpire(org.bukkit.entity.Player player)
player - int getBuying(org.bukkit.entity.Player player)
player - int getItem(org.bukkit.entity.Player player)
player - int getMaxSellPerPermission(org.bukkit.entity.Player player)
player - int getMaxPage(java.util.List<AuctionItem> item)
item - listjava.util.List<AuctionItem> getExpiredItems(org.bukkit.entity.Player player)
player - java.util.List<AuctionItem> getBuyingItems(org.bukkit.entity.Player player)
player - java.util.List<AuctionItem> getItems(org.bukkit.entity.Player player)
player - java.util.List<AuctionItem> getItems(Category category)
category - java.util.List<AuctionItem> getItems(Category category, org.bukkit.entity.Player player)
category - java.util.List<AuctionItem> getItemsFromSearch(java.lang.String name)
category - java.util.List<AuctionItem> getItems()
java.util.List<AuctionItem> getItems(Sorting shorting)
java.util.List<AuctionItem> getItemsSort(org.bukkit.entity.Player player)
shorting - java.util.Map<java.lang.String,Sorting> getSort()
Sorting getSort(org.bukkit.entity.Player player)
player - Sorting getSort(java.lang.String player)
player - java.util.List<AuctionItem> getExpiredItems()
java.util.List<AuctionItem> getBuyingItems()
java.util.List<fr.maxlego08.zauctionhouse.zcore.utils.inventory.ConfigButton> getButtons()
boolean canSell(AuctionItem item)
item - boolean canSell(org.bukkit.entity.Player player,
long price)
player - selling - priceboolean isBlackList(java.lang.String name)
name - boolean isBlackList(java.util.List<java.lang.String> lore)
lore - boolean canBuy(org.bukkit.entity.Player player,
AuctionItem item)
player - item - boolean canSellMoreItem(org.bukkit.entity.Player player)
player - AuctionItem getByID(long id)
id - AuctionItem getByUniqueID(long id)
id - ItemType getType(long id)
id -