1.14.4 Placeholder API

Discussion in 'Spigot Plugin Development' started by xMaikiYT, Mar 23, 2020.

  1. Oke. First i made a variable for a player that called PlayerPoints and i want to put the player points in scoreboard with %pp% or something else
     
  2. Could you elaborate more on what you want?
    Giving an example of your code or something would be helpful.
     
  3. You might find something like PlaceholderAPI useful. Generally, scoreboard plugins hook into a middleman to handle placeholders other plugins register, so you should look into which placeholder plugins are supported by your desired scoreboard plugin.

    If you yourself handle the scoreboard in your plugin, I encourage you to still use something like PlaceholderAPI as that allows you to use placeholders from other plugins in addition to your own. That being said, the standard way to do this is to periodically update your scoreboard and look for placeholder substrings to replace.
     
    • Like Like x 1