> ## 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.

# AFK Rewards GUI

> A centralized hub for players to claim rewards, exchange points.

Thank you for choosing the **Sentry Studios AFK Rewards GUI**. This configuration provides a powerful, interactive shop menu for your players to exchange their hard-earned AFK points for coins or server money.

<Frame>
  <img src="https://mintcdn.com/sentrystudios/65puL7YPMMJjx2Go/images/Screenshot-2026-07-27-195103.png?fit=max&auto=format&n=65puL7YPMMJjx2Go&q=85&s=c448e58fcada598ac78a782ace7f6931" alt="AFK Rewards GUI Overview" width="1907" height="1079" data-path="images/Screenshot-2026-07-27-195103.png" />
</Frame>

***

## Key Features

The AFK GUI connects directly to ExcellentEconomy and EssentialsX to provide a seamless reward experience.

<CardGroup cols={2}>
  <Card title="Integrated Point Exchange" icon="coins" iconType="duotone">
    Allows players to exchange their AFK points for either standard server money (Vault/Essentials) or premium Coins (ExcellentEconomy).
  </Card>

  <Card title="Smart Transaction Checks" icon="shield-check" iconType="duotone">
    Utilizes javascript expressions to ensure players actually have enough points before purchasing, preventing negative balances.
  </Card>

  <Card title="Instant Feedback" icon="comment-dots" iconType="duotone">
    Clicking a reward plays a level-up sound and outputs a sleek, color-coded success message directly into the player's chat.
  </Card>

  <Card title="Warp Integration" icon="location-dot" iconType="duotone">
    Includes a dedicated button to instantly teleport players directly to the server's AFK zone.
  </Card>
</CardGroup>

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

***

## Available Exchanges

By default, the GUI comes pre-configured with two rows of rewards using the ExcellentEconomy currencies provided in the package.

<Frame>
  <img src="https://mintcdn.com/sentrystudios/65puL7YPMMJjx2Go/images/Screenshot-2026-07-27-195041.png?fit=max&auto=format&n=65puL7YPMMJjx2Go&q=85&s=c0aa84ea5abec7b339e1765da8931b2b" alt="AFK Exchange Tiers" width="1919" height="1079" data-path="images/Screenshot-2026-07-27-195041.png" />
</Frame>

<CardGroup cols={2}>
  <Card title="Premium Coins" icon="gem" iconType="duotone">
    **Cost:** 20 AFK Points = 1 Coin

    Includes exchange buttons for 1, 10, and 50 Coins.
  </Card>

  <Card title="Standard Money" icon="money-bill" iconType="duotone">
    **Cost:** 5 AFK Points = \$100

    Includes exchange buttons for \$100, \$500, and \$1,000.
  </Card>
</CardGroup>

<Tip>
  **Want to customize costs?** You can easily change the prices by modifying the `click_requirement` expression (e.g., `%ExcellentEconomy_balance_raw_afkpoints% >= 20`) and the corresponding `click_commands` in the `afk.yml` file.
</Tip>

***

## Commands & Permissions

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

<CodeGroup>
  ```yaml Open Your AFK Shop theme={null}
  # Aliases built into the configuration:
  /afk
  /afkshop
  ```
</CodeGroup>

<br />

<Note>
  The menu requires the permission node `deluxemenus.menu.afk` 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 the required dependencies: **DeluxeMenus**, **ExcellentEconomy**, **NightCore**, **EssentialsX**, and **PlaceholderAPI**.

<Steps>
  <Step title="Download Placeholder Expansions">
    This menu uses PlaceholderAPI for console commands. You **must** install the required expansions.

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

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

  <Step title="Merge ExcellentEconomy Files">
    <Warning>
      **Do NOT** simply drag and drop the entire `ExcellentEconomy` folder into your plugins directory if you already use ExcellentEconomy. This will overwrite your existing config!
    </Warning>

    Instead, open the `ExcellentEconomy` folder from our package, and manually merge the contents of our `currencies` and `lang` folders into your server's `plugins/ExcellentEconomy/` directory.
  </Step>

  <Step title="Install the Menu Configuration">
    Drag and drop the `afk.yml` file 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 the menu under the `gui_menus:` section:

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

  <Step title="Set Your AFK Warp">
    Make sure you have created an Essentials warp named `afk` by running `/setwarp afk` where you want your AFK zone to be.
  </Step>

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

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

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Players receive an error when buying rewards" icon="triangle-exclamation" iconType="duotone">
    Ensure **EssentialsX** is installed so players can receive standard money, and ensure **ExcellentEconomy** is running properly with the `afkpoints` and `coins` currencies registered.
  </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="Warp AFK button says 'Warp not found'" icon="location-dot" iconType="duotone">
    You must create the warp using EssentialsX. Stand in your AFK area and run `/setwarp afk`.
  </Accordion>
</AccordionGroup>
