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

# Placeholders & Extras

> Detailed breakdown of PlaceholderAPI hooks and Built-in Dupe Protection.

SentryLore isn't just about formatting items; it provides backend security systems and placeholder hooks to integrate deeply with your server network.

## PlaceholderAPI Integration

SentryLore automatically hooks into [PlaceholderAPI](https://github.com/PlaceholderAPI/PlaceholderAPI) on server startup. You can use these placeholders in any supported plugin (like Scoreboards, Holograms, or Tablists) to display real-time SentryLore statistics.

<CardGroup cols={2}>
  <Card title="%sentrylore_version%" icon="code-branch" iconType="duotone">
    Returns the currently installed version of SentryLore.
  </Card>

  <Card title="%sentrylore_total_items%" icon="box-open" iconType="duotone">
    Returns the total number of custom items currently registered in the SentryLore database.
  </Card>

  <Card title="%sentrylore_player_toggled%" icon="toggle-on" iconType="duotone">
    Returns `Enabled` or `Disabled` depending on the player's personal lore visibility toggle.
  </Card>
</CardGroup>

***

## Built-in Duplication Protection

One of SentryLore's most powerful backend features is its strict **Dupe Protection Engine**. Because custom items can be highly valuable (like God Tier weapons), duping them is a severe threat to your economy.

When a player receives a custom item through SentryLore, the item is tagged with a hidden, unique `sentrylore_uuid` in its PersistentDataContainer.

<Steps>
  <Step title="Inventory & Ground Scans">
    Every time a player joins the server, opens an inventory, or picks an item up off the ground, the `DupeManager` scans their entire inventory array in the background.
  </Step>

  <Step title="UUID Validation">
    The plugin keeps track of every `sentrylore_uuid` it encounters during the scan.
  </Step>

  <Step title="Silent Deletion & Logging">
    If the engine detects two custom items sharing the exact same UUID, it flags them as duplicated items. The duplicate is instantly and silently deleted, and an alert is sent directly to your configured Discord Webhook channel.
  </Step>
</Steps>

<Warning>
  You can toggle Dupe Protection on or off via the `dupe-protection.enabled` setting in your `config.yml`. We highly recommend keeping it enabled for competitive survival and skyblock servers. We update consistently every patch and work very hard to fix bugs!
</Warning>
