Placeholders

Sep 24, 2017
Placeholders
  • Supported Placeholders:


    Code (Text):
    %player% - Player Name
    %name% - Player Name
    %displayname% - Displayname of the player
    %balance% - Players amount of money
    %balancepoints% - Players amount of points
    %world% - The name of the world the player is currently in
    %itemname% - The displayname of the related item
    %amount% - The amount of the MenuItem
    %material% - The material name of the MenuItem (uses Vanilla names if you use the Language Utils library)
    %item_in_hand% - The item in the players main hand. Plain material name: Useful for conditions.

    %shop% - The name of the related shop
    %shopdisplayname% - The displayname of the related shop
    %page% - The current shop page the player is viewing (Tip: Use this in inventory titles)
    %maxpage% - The highest page of the current shop

    %shopitemname% - The name of the related item
    %price% - Shows the price of the related shopitem (Even lists of items are well displayed here)
    %reward% - Shows the reward of the related shopitem(Even lists of items are well displayed here)

    %left% - Can be used in the Shopitem purchase message and displays what players have left from the pricetype after their purchase. In case of "PriceType: money" the placeholder would display the players new balance.

    %input% - Latest input of the player. Check out https://www.spigotmc.org/wiki/bossshoppro-configuration/ -> Advanced options for more details about player input.
     
    Supporting infinitely more placeholders because of PlaceholderAPI support (Automatically detected)

    NOTE: When working with PlaceholderAPI placeholders make sure to set up PlaceholderAPI correctly!


    Symbols (can be used everywhere aswell):
    Code (Text):
    [<3] -> ❤
    [*] -> ★
    [] -> ✹
    [o] -> ●
    [v] -> ✔
    [+] -> ♦
    [x] -> ✦
    [%] -> ♠
    [%%] -> ♣
    [radioactive] -> ☢
    [peace] -> ☮
    [moon] -> ☾
    [crown] -> ♔
    [note] -> ♩
    [snowman] -> ☃
    [tools] -> ⚒
    [swords] -> ⚔
    [warn] -> ⚠
    [left] -> ←
    [right] -> →
    [up] -> ↑
    [down] -> ↓
    [block] -> █
    [and] -> &
    [colon] -> :
    Sidenote: You can put basically any UTF-8 character/symbol into BossShopPro configuration files and shops (as long as the character is supported by your minecraft client). The symbol placeholders provided here are just there to make things easier.


    Find out more about Serverpinging and related placeholders here.



    Calculations
    Besides normal placeholders, BossShopPro supports calculations in text: Put everything that you want to be calculated in following brackets: '{ }'. You can put placeholders, plain numbers etc. in calculation brackets. PlaceholderAPI placeholders are of course supported aswell.

    Examples:
    Code (Text):
    {10/5+8}
    This simple calculation will instantly be transformed into 10.

    Code (Text):
    {%balance%*4}
    This will display the players balance times 4 and will be updated whenever the shop is refreshed.

    You may not use calculations as "Reward" or "Price". If you want reward or price to adapt to the player work with Multipliers (Configuration -> config.yml).

    Note: Only simple calculations are supported so far. Calculating with brackets '(10+5)*2' is not supported yet. Following operators are supported:

    • +
    • -
    • *
    • /
    • ^
  • Loading...
  • Loading...