Skip to content

Instantly share code, notes, and snippets.

@AyhamAl-Ali
Created April 12, 2018 18:12
Show Gist options
  • Select an option

  • Save AyhamAl-Ali/1402761f19b3f72757f9c791ea16dc32 to your computer and use it in GitHub Desktop.

Select an option

Save AyhamAl-Ali/1402761f19b3f72757f9c791ea16dc32 to your computer and use it in GitHub Desktop.
# AdvancedPlayerInfo (PlaceholderAPI) configuration file
# You can use any placeholder from CLIP's PlaceholderAPI.
# Make sure that you've downloaded all the expansions from 'ecloud' and reloaded PlaceholderAPI plugin before using the palceholders in AdvancedPlayerInfo
# Add as many placeholders as you like, it doesn't matter if you use % sign before and after the placeholder.. example: (%player_name% or player_name)
# By default you must download all these expansions (execute these commands) (this is the most used placeholders):
# - /papi ecloud download player
# - /papi ecloud download statistic
# - /papi ecloud download server
# - /papi reload
# Tutorial:
# 1- Get any placeholder from: https://www.spigotmc.org/wiki/placeholderapi-placeholders/
# 2- Make sure that you've downloaded the placeholder's expansion with '/papi ecloud download <expansion>'
# 3- Add the placeholder to the list below like "<any custom name>: '<placeholder here with or without % sign>'"
# 4- Now to use it you just need to put [] around the paceholder in the 'gui.yml' file like '[<placeholder here>]'
# 5- Now you are ready
# ** !NOTE: Do not use custom names (in placeholders.yml) that are already used in PlayerInfo custom variables like [player-name] or [player-ping] because this will break the variable.
# ** !NOTE: Since we added PlaceholderAPI support, you can use statistic placeholders instead of [player-breakcount] [player-placecount] etc, it's better because these placeholder (statistic) gives you the player's information from his first join until now.
# ** !NOTE: Make sure to execute '/pi reload' after you edit placeholder.yml file.
# ** !NOTE: If you use any placeholder in the GUI and it didn't work, then make sure that you've downloaded the placeholder expansion and reloaded PlaceholderAPI plugin.
# ** !NOTE: If Placeholders from PlaceholderAPI didn't work even if you downloaded the expansion and everything else you must set PlaceholderAPI to true in skellett plugin's config.yml (plugins/skellett/config.yml -> PlaceholderAPI : true).
placeholders:
# any_custom_name: 'any placeholder from https://www.spigotmc.org/wiki/placeholderapi-placeholders/'
displayname: 'player_displayname'
player_name: '%player_name%' # It doesn't matter if you use % sign
ping: 'player_ping'
bMined: 'statistic_mine_block'
sTPS: '%server_tps%'
pEXP: 'player_exp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment