Class GenesisBuyAdvanced

java.lang.Object
studio.magemonkey.genesis.core.GenesisBuy
studio.magemonkey.genesis.inbuiltaddons.advancedshops.GenesisBuyAdvanced

public class GenesisBuyAdvanced extends GenesisBuy
  • Constructor Details

  • Method Details

    • getRewardType

      public GenesisRewardType getRewardType(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getRewardType in class GenesisBuy
    • getPriceType

      public GenesisPriceType getPriceType(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getPriceType in class GenesisBuy
    • getReward

      public Object getReward(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getReward in class GenesisBuy
    • getPrice

      public Object getPrice(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getPrice in class GenesisBuy
    • getMessage

      public String getMessage(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getMessage in class GenesisBuy
    • getInputType

      public GenesisInputType getInputType(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getInputType in class GenesisBuy
    • getInputText

      public String getInputText(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getInputText in class GenesisBuy
    • isExtraPermissionGroup

      public boolean isExtraPermissionGroup(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      isExtraPermissionGroup in class GenesisBuy
    • getExtraPermission

      public String getExtraPermission(org.bukkit.event.inventory.ClickType clickType)
      Overrides:
      getExtraPermission in class GenesisBuy
    • transformMessage

      public String transformMessage(String msg, GenesisShop shop, org.bukkit.entity.Player p)
      Description copied from class: GenesisBuy
      Transforms the selected message by replacing price and reward placeholders with descriptions of price or reward. If player is null only player-independent placeholders are replaced. Additionally item placeholders like amount, material and more are replaced.
      The method needs to be executed once the item is created (player=null):
      - to replace all player-independent placeholders
      - to mark the related shop as customizable if it contains player-dependent placeholders
      - to detect the inputType of this shopItem. If it is not null (default is null) players need to enter input before purchases are made

      The method also needs to be executed when a certain player accesses the item (player!=null):
      - to replace all player-dependent placeholders
      Overrides:
      transformMessage in class GenesisBuy
      Parameters:
      msg - Message to transform.
      shop - Shop this shopItem belongs to.
      p - Related player. Can be null.
      Returns:
      transformed message.