Interface IAutoSell


public interface IAutoSell
This interface provides methods to interact with the AutoSell plugin. It allows checking if a player is in sell mode, smelt mode, or auto block mode, and provides access to the options, sell handler, and area hook.
  • Method Details

    • inSellMode

      boolean inSellMode(org.bukkit.entity.Player player)
      Checks if the player is in sell mode.
      Parameters:
      player - The player to check.
      Returns:
      true if the player is in sell mode, false otherwise.
    • inSmeltMode

      boolean inSmeltMode(org.bukkit.entity.Player player)
      Checks if the player is in smelt mode.
      Parameters:
      player - The player to check.
      Returns:
      true if the player is in smelt mode, false otherwise.
    • inAutoBlockMode

      boolean inAutoBlockMode(org.bukkit.entity.Player player)
      Checks if the player is in auto block mode.
      Parameters:
      player - The player to check.
      Returns:
      true if the player is in auto block mode, false otherwise.
    • getOptions

      AutoSellOptions getOptions()
      Gets the AutoSell options.
      Returns:
      Gets the AutoSell options.
    • getSellHandler

      ISellHandler getSellHandler()
      Gets the sell handler.
      Returns:
      The sell handler.
    • getAreaHook

      IAreaHook getAreaHook()
      Gets the area hook.
      Returns:
      The area hook.
    • setAreaHook

      IAreaHook setAreaHook(IAreaHook area)
      Sets the area hook.
      Parameters:
      area - The area hook to set.
      Returns:
      The newly set area hook.
    • getInstance

      static IAutoSell getInstance()
      Gets the instance of the AutoSell plugin.
      Returns:
      Gets the instance of the AutoSell plugin.
    • isInAutoSellMode

      static boolean isInAutoSellMode(org.bukkit.entity.Player player)
      Checks if the player is in auto sell mode.
      Parameters:
      player - The player to check.
      Returns:
      true if the player is in auto sell mode, false otherwise.
    • getAllShops

      static Collection<Shop> getAllShops()
      Gets all the shops.
      Returns:
      Gets all the shops.
    • isInAutoSmeltMode

      static boolean isInAutoSmeltMode(org.bukkit.entity.Player player)
      Checks if the player is in auto smelt mode.
      Parameters:
      player - The player to check.
      Returns:
      true if the player is in auto smelt mode, false otherwise.
    • hasShop

      static boolean hasShop(org.bukkit.entity.Player player)
      Checks if the player has a shop to sell items.
      Parameters:
      player - The player to check.
      Returns:
      true if the player has a shop, false otherwise.
    • getCurrentShop

      static Shop getCurrentShop(org.bukkit.entity.Player player)
      Gets the player's current shop.
      Parameters:
      player - The player to check.
      Returns:
      the player's current shop.
    • hasMultiplier

      static boolean hasMultiplier(org.bukkit.entity.Player player)
      Checks if the player has a multiplier.
      Parameters:
      player - The player to check.
      Returns:
      true if the player has a multiplier, false otherwise.
    • getMultiplier

      static Multiplier getMultiplier(org.bukkit.entity.Player player)
      Gets the player's current multiplier.
      Parameters:
      player - The player to check.
      Returns:
      the player's current multiplier.
    • getAutoSellOptions

      static AutoSellOptions getAutoSellOptions()
      Gets AutoSell options.
      Returns:
      AutoSell options.