> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sentrystudios.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Stats GUI

> A high-quality, clean, and powerful statistics menu for your server.

Thank you for choosing the **Sentry Studios DeluxeMenus Stats GUI**. This configuration provides a comprehensive, interactive, and beautifully designed statistics menu for your server.

<Frame>
  <img src="https://mintcdn.com/sentrystudios/NFDlKcChLPiNGLjr/images/Screenshot-2026-07-27-195559-1.png?fit=max&auto=format&n=NFDlKcChLPiNGLjr&q=85&s=943e2ee4dfa66afbb2ff55d7acbde360" alt="Sentry Studios Stats GUI Preview" width="1919" height="1079" data-path="images/Screenshot-2026-07-27-195559-1.png" />
</Frame>

***

## Key Features

The Stats GUI is engineered not just for utility, but for a premium user experience.

<CardGroup cols={2}>
  <Card title="Small Caps & Gradients" icon="palette" iconType="duotone">
    The entire menu is fully stylized with modern small-caps text, custom hex color gradients, and sleek glass pane background borders.
  </Card>

  <Card title="Interactive Feedback" icon="comment-dots" iconType="duotone">
    Left-clicking any statistic plays a clean `UI_BUTTON_CLICK` sound and outputs that specific statistic directly into the player's chat.
  </Card>

  <Card title="View Other Players" icon="users" iconType="duotone">
    Built-in support for viewing other players' statistics via the seamlessly integrated `stats_others.yml` layout.
  </Card>

  <Card title="Custom Head Textures" icon="face-smile" iconType="duotone">
    Utilizes Base64 custom player heads for specific icons (like player kills, mob kills, and deaths) to make the UI pop without needing texture packs.
  </Card>
</CardGroup>

<Frame>
  <img src="https://mintcdn.com/sentrystudios/NFDlKcChLPiNGLjr/images/Screenshot-2026-07-27-195711.png?fit=max&auto=format&n=NFDlKcChLPiNGLjr&q=85&s=6f3f31e347256697f6fabc3cd9f3d8af" alt="Interactive Chat Feedback" width="1919" height="1079" data-path="images/Screenshot-2026-07-27-195711.png" />
</Frame>

***

## Tracked Statistics

Out of the box, the Stats GUI tracks and displays 7 essential player data points. Here is a breakdown of what is tracked and the internal PlaceholderAPI variables powering them:

<Frame>
  <img src="https://mintcdn.com/sentrystudios/NFDlKcChLPiNGLjr/images/Screenshot-2026-07-27-195553.png?fit=max&auto=format&n=NFDlKcChLPiNGLjr&q=85&s=6ba162779f0b111e28617b94ff0aa4c2" alt="Other Players Stats GUI Preview" width="1919" height="1079" data-path="images/Screenshot-2026-07-27-195553.png" />
</Frame>

<ResponseField name="Player Kills" type="%statistic_player_kills%">
  Displayed using a **Custom Player Head** texture.
</ResponseField>

<ResponseField name="Mob Kills" type="%statistic_mob_kills%">
  Displayed using a **Custom Player Head** texture.
</ResponseField>

<ResponseField name="Deaths" type="%statistic_deaths%">
  Displayed using a **Custom Player Head** texture.
</ResponseField>

<ResponseField name="Play Time" type="%statistic_time_played%">
  Displayed using a **Clock** item.
</ResponseField>

<ResponseField name="Blocks Broken" type="%statistic_mine_block%">
  Displayed using a **Diamond Pickaxe** item.
</ResponseField>

<ResponseField name="Damage Dealt" type="%statistic_damage_dealt%">
  Displayed using a **Diamond Sword** item.
</ResponseField>

<ResponseField name="Jumps" type="%statistic_jump%">
  Displayed using a **Rabbit's Foot** item.
</ResponseField>

<Tip>
  **Want to track something else?** You can easily replace these placeholders. For example, swap `%statistic_jump%` with `%statistic_fish_caught%` if you run a fishing-focused server. Just remember to update the `display_name`, `lore`, and `left_click_commands` in `stats.yml` to match!
</Tip>

***

## Commands & Permissions

By default, the main GUI is bound to multiple easy-to-remember aliases.

<CodeGroup>
  ```yaml Open Your Stats theme={null}
  # Aliases built into the configuration:
  /stats
  /stat
  /statistic
  /statistics
  /profile
  ```

  ```yaml Open Others Stats theme={null}
  # To view another player's stats, you must trigger the stats_others menu.
  # This requires a command alias plugin (like Commands.yml or MyCommand) 
  # to route `/stats <player>` to `/dm open stats_others <player>`.
  ```
</CodeGroup>

<br />

<Note>
  The menu requires the permission node `deluxemenus.menu.stats` to open. By default, most permission managers grant access to DeluxeMenus to default players, but if your players get a "no permission" error, ensure they have this node!
</Note>

***

## Installation Guide

Before installing, ensure you have **DeluxeMenus** and **PlaceholderAPI** installed on your server.

<Steps>
  <Step title="Download Placeholder Expansions">
    This menu relies heavily on PlaceholderAPI. You **must** install the required expansions for the statistics to display correctly.

    Run the following commands in your server console (or in-game as an OP):

    ```bash theme={null}
    /papi ecloud download Statistic
    /papi ecloud download Player
    /papi ecloud download OtherPlayer
    /papi reload
    ```
  </Step>

  <Step title="Install the Configuration">
    Unzip the downloaded Sentry Studios package, and drag and drop the `stats.yml` and `stats_others.yml` files into your server's `plugins/DeluxeMenus/gui_menus/other_menus/` folder.

    <Tree />
  </Step>

  <Step title="Register in DeluxeMenus">
    Open your DeluxeMenus `config.yml` file and register both menus under the `gui_menus:` section:

    ```yaml config.yml theme={null}
    gui_menus:
      stats:
        file: other_menus/stats.yml
      stats_others:
        file: other_menus/stats_others.yml
    ```
  </Step>

  <Step title="Reload DeluxeMenus">
    Finally, reload DeluxeMenus to apply the new configurations:

    ```bash theme={null}
    /dm reload
    ```
  </Step>
</Steps>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Placeholders are showing up as plain text" icon="percent" iconType="duotone">
    This means PlaceholderAPI doesn't have the required expansion installed to parse the variable (e.g., `%statistic_player_kills%`). Make sure you ran `/papi ecloud download Statistic` and `/papi reload`.
  </Accordion>

  <Accordion title="The menu isn't opening / Command not found" icon="window-restore" iconType="duotone">
    Ensure you registered the file correctly in your `config.yml` and that there are no YAML spacing errors. After registering, you must run `/dm reload` for it to take effect.
  </Accordion>

  <Accordion title="Players get a 'You don't have permission' error" icon="triangle-exclamation" iconType="duotone">
    Give your default player group the `deluxemenus.menu.stats` and `deluxemenus.menu.stats_others` permissions.
  </Accordion>
</AccordionGroup>
