Skip to content

Price Types

goflishMC edited this page Oct 22, 2024 · 1 revision
  • Every shop item has a specific price that players must pay to receive the reward.

  • Different kinds of price types are available, and more prices can be added via Addons.

  • Calculation Support: Numerical price types support simple calculations with raw numbers (excluding placeholders).

    Example Calculation:

    PriceType: money
    Price: 120 * 64

Price Types:

  • Money:

    • Takes money from the player (Vault plugin required).
    • Use the %price% placeholder to display the actual amount of money the player will pay.

    Example:

    PriceType: money
    Price: 500
  • Nothing:

    • Use PriceType: nothing for free items, GUI openers, decoration, or commands.

    Example:

    PriceType: nothing
  • Points:

    • Takes points from the player. Supported plugins include:
      • PlayerPoints
      • CommandPoints
      • Enjin
      • PointsAPI
      • TokenEnchant
      • Jobs
      • MySQL-Tokens
      • VotingPlugin
      • Kingdoms
    • Use the %price% placeholder to display the actual points the player will pay.

    Example:

    PriceType: points
    Price: 750
  • Items:

    • Uses one or multiple items as payment.

    Example with one item:

    PriceType: item
    Price:
    - - type:DIAMOND
      - amount:5

    Example with multiple items:

    PriceType: item
    Price:
    - - type:WOOL
      - amount:10
      - durability:14
    - - type:WOOL
      - amount:10
      - durability:11
    - - type:WOOL
      - amount:10
      - durability:4
  • ItemAll:

    • Sells all items of one kind for a reward.

    Example 1:

    PriceType: itemall
    Price:
    - type:DIAMOND
    RewardType: money
    Reward: 60

    Example 2:

    PriceType: itemall
    Price:
    - type:LOG
    - durability:1
    RewardType: points
    Reward: 2
  • Exp:

    • Takes experience levels from the player.

    Example:

    PriceType: exp
    Price: 25

  • For defining multiple prices using different price types for one item, check out the relevant documentation page (Link).
Clone this wiki locally