Package me.clip.autosell
Class SellHandler
java.lang.Object
me.clip.autosell.SellHandler
public class SellHandler
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SellHandler()
-
Method Summary
Modifier and Type Method Description static void
addShop(Shop p)
static boolean
autoSell(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> toSell, org.bukkit.block.Block broken)
static boolean
canSell(org.bukkit.entity.Player p)
static int
getNextShopPriority()
static Shop
getPermShop(org.bukkit.entity.Player p)
static Shop
getShop(java.lang.String shopName)
static Shop
getShop(org.bukkit.entity.Player p)
static Shop
getShop(org.bukkit.entity.Player p, org.bukkit.block.Block b)
static java.util.Map<java.lang.Integer,Shop>
getShops()
static boolean
isShop(java.lang.String shopName)
static boolean
removeShop(Shop s)
static SellResponse
sellInventory(org.bukkit.entity.Player p, Shop shop)
static SellResponse
sellItems(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> items, Shop shop)
-
Field Details
-
Constructor Details
-
SellHandler
public SellHandler()
-
-
Method Details
-
getShops
-
addShop
-
removeShop
-
canSell
public static boolean canSell(org.bukkit.entity.Player p) -
getNextShopPriority
public static int getNextShopPriority() -
isShop
public static boolean isShop(java.lang.String shopName) -
getShop
-
getShop
-
getShop
-
getPermShop
-
sellItems
public static SellResponse sellItems(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> items, Shop shop) -
sellInventory
-
autoSell
public static boolean autoSell(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> toSell, org.bukkit.block.Block broken)
-