> For the complete documentation index, see [llms.txt](https://wiki.novadev.ovh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.novadev.ovh/novashard/8.-placeholderapi.md).

# 8. placeholderapi

NovaShard s'intègre avec [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) pour exposer des données dans vos scoreboards, holograms, menus et tout autre plugin compatible.

## Prérequis

PlaceholderAPI doit être installé sur votre serveur. NovaShard détecte sa présence automatiquement au démarrage :

```
[NovaShard] PlaceholderAPI détecté - placeholders enregistrés.
```

## Placeholders disponibles

### `%novashard_playershards%`

Affiche le solde de shards du joueur.

**Exemple de retour :** `150`

### `%novashard_top_name_<rang>%`

Affiche le nom du joueur classé à la position indiquée.

Remplacez `<rang>` par un nombre entier (1 = premier du classement).

**Exemples :**

| Placeholder               | Retour  |
| ------------------------- | ------- |
| `%novashard_top_name_1%`  | `Steve` |
| `%novashard_top_name_2%`  | `Alex`  |
| `%novashard_top_name_10%` | `Notch` |

### `%novashard_top_shards_<rang>%`

Affiche le nombre de shards du joueur classé à la position indiquée.

Remplacez `<rang>` par un nombre entier.

**Exemples :**

| Placeholder                 | Retour |
| --------------------------- | ------ |
| `%novashard_top_shards_1%`  | `4200` |
| `%novashard_top_shards_2%`  | `3850` |
| `%novashard_top_shards_10%` | `800`  |

## Exemples d'utilisation

### Scoreboard (avec FeatherBoard / FastBoard)

```
&6Mon solde : &e%novashard_playershards% shards

&6Top 3 :
&f1. %novashard_top_name_1% &7- &e%novashard_top_shards_1%
&f2. %novashard_top_name_2% &7- &e%novashard_top_shards_2%
&f3. %novashard_top_name_3% &7- &e%novashard_top_shards_3%
```

### Hologram (avec HolographicDisplays / DecentHolograms)

```
&6&lTop Shards
&e1. %novashard_top_name_1% &f- %novashard_top_shards_1% shards
&e2. %novashard_top_name_2% &f- %novashard_top_shards_2% shards
&e3. %novashard_top_name_3% &f- %novashard_top_shards_3% shards
```

### Chat / message de bienvenue

```
Bienvenue %player_name% ! Tu possèdes %novashard_playershards% shards.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.novadev.ovh/novashard/8.-placeholderapi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
