Skip to content

PlaceholderAPI

Florian Stober edited this page Sep 20, 2016 · 4 revisions

Using PlaceholderAPI you can get access to a huge amount of additional placeholders.

Requirements

  1. You need to install PlaceholderAPI on your spigot servers.
  2. You need to install BungeeTabListPlus_BukkitBridge on your spigot servers.

Usage

  1. Pick a Placeholder from https://www.spigotmc.org/wiki/placeholderapi-placeholders/. We'll use %statistic_kill_entity_CREEPER% as example.

  2. Download the required PlaceholderAPI Expansion using the /papi ecloud download command. You might skip this step if the required expansion is already installed. For our example we need the Statistic expansion: /papi ecloud download Statistic. After downloading an expansion type /papi reload to activate it.

  3. Test whether PlaceholderAPI is working correctly using the /papi parse ... command. In our example we type /papi parse %statistic_kill_entity_CREEPER%. If it doesn't replace the placeholder correctly return to step 2.

  4. Use the Placeholder in BungeeTabListPlus' config: The %statistic_kill_entity_CREEPER% won't work in the config. Instead you have to use ${viewer statistic_kill_entity_CREEPER} to resolve the placeholder for the player looking at the tab list or ${player statistic_kill_entity_CREEPER} to resolve the placeholder for a player listed in the tab list.

    Example:

    components:
    - {text: "&6Creepers killed: &c${viewer statistic_kill_entity_CREEPER}", icon: "colors/gold.png", ping: 0}

Clone this wiki locally