🎮
ChatGames
  • What is ChatGames?
  • Updating to 2.0.0
  • Game Types
    • Reaction
    • Unscramble
    • Trivia
    • Math
  • Commands & Permissions
  • Placeholders
  • Configuration Files
    • Config.yml
      • MySQL Saving
    • Messages.yml
  • Scoreboard
    • GUI
    • DecentHologram Support
  • FAQs
Powered by GitBook
On this page
  • PlaceholderAPI (PAPI)
  • Internal Placeholders

Placeholders

PlaceholderAPI support & Internal Placeholders

PlaceholderAPI (PAPI)

There are some placeholders that are supported through the external plugin PlaceholderAPI. These placeholders can be used with any other plugin that also supports PAPI in order to display information from ChatGames. You will find these placeholders below.

Placeholder
Description

%chatgames_<gameType>_score%

Returns the player's <gameType> score with gameType being either reaction|unscramble|trivia|math

%chatgames_total_games_won%

Returns how many games the player has won in total

%chatgames_total_games%

Return how many games have run since the config.yml file was generated

%chatgames_<gameType>_player_<position>%

Return the player name of the player that is at <position> in the <gameType> hiscores. GameType is either reaction|unscramble|trivia|math|total and the position is any ranking position. If no player is at that position then it will return "N/A".

%chatgames_<gameType>_score_<position>%

Return the player score of the player that is at <position> in the <gameType> hiscores. GameType is either reaction|unscramble|trivia|math|total and the position is any ranking position. If no player is at that position then it will return "N/A".

Internal Placeholders

These are placeholders that you are able to use through the messages.yml file and the config.yml file. They are useful when executing commands or broadcasting game messages.

Placeholder
Description

%player%

Returns the player name of the winning player

%question%

Returns the question of the most recent game

%answer%

Returns the answer of the most recent game

PreviousCommands & PermissionsNextConfiguration Files

Last updated 2 years ago