Skip to content

PlaceholderAPI

James McNair edited this page Jun 15, 2023 · 22 revisions

Click on placeholderAPI to go to the spigot page

Placeholders are supported in many ways, primarily by providing placeholders. Along with the provided placeholders, all messages in messages.yml support placeholders so you can alter all messages to your heart's desire.

Requesting a new placeholder

If you need a placeholder from better teams that is not currently listed below, you can request it by creating an issue

Provided Placeholders

This plugin supports many placeholders which can be used through placeholder API. These are the available placeholders:

  • %betterTeams_name%- The team name
  • %betterTeams_tag% - The team tag, or if the team has not set one, the teams name
  • %betterTeams_displayname% - The display name of the team
  • %betterTeams_description%- The team description
  • %betterTeams_open%- If the team is open or invite-only
  • %betterTeams_score%- The score of that team
  • %betterTeams_money%- The balance of that team
  • %betterTeams_rank%- The players rank within their team
  • %betterTeams_color%- The color code that the team owner has set for the team
  • %betterTeams_inTeam% - If the player is in a team or not. (default true/false, but this can be changed in the placeholder section of messages.yml)
  • %betterTeams_title% - The title that player has within their team
  • %betterTeams_onlineList% - Lists all online members of their team
  • %betterTeams_offlineList% - Lists all offline members of their team

Relational team information

Instead of providing information about the team of the player, these placeholders provide information about the team at {rank} on the team score leaderboard. Replace {rank} with the rank that you want to display, for example "1" for the top team.

  • %betterTeams_position_name_{rank}%- The team name of the team with which is that rank within the score leaderboard
  • %betterTeams_position_tag_{rank}% - The tag of the team which is at that rank within the score leaderboard
  • %betterTeams_position_description_{rank}% - The description of the team which is at that rank within the score leaderboard
  • %betterTeams_position_displayname_{rank}% - The display name of the team which is at that rank within the score leaderboard
  • %betterTeams_position_open_{rank}% - The open status of the team which is at that rank within the score leaderboard
  • %betterTeams_position_balance_{rank}% - The balance of the team which is at that rank within the score leaderboard
  • %betterTeams_position_score_{rank}% - The score of the team which is at that rank within the score leaderboard
  • %betterTeams_position_color_{rank}% - The color of the team which is at that rank within the score leaderboard
  • %betterTeams_position_onlinePlayers_{rank}%- The online member list of the team which is at that rank within the leaderboard
  • %betterTeams_position_offlinePlayers_{rank}%- The offline member list of the team which is at that rank within the leaderboard

Static team information

Instead of providing information based on the teams rank, these placeholders allow you to just input a team name you want the information for

  • %betterTeams_members_<team>% - The number of players in the team
  • %betterTeams_members_<team>_online% - The number of players online in the specified team
Clone this wiki locally