# PlaceholderAPI variables

**Codex** provides you some PlaceholderAPI variables you can use in the /codex inventory or in another plugin.

| `%codex_total_discoveries%`                       | Total discoveries of the player.                                                   |
| ------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `%codex_total_discoveries_<category>%`            | Total discoveries of the player from a certain category.                           |
| `%codex_total_discoveries_percentage%`            | Percentage of total discoveries of the player.                                     |
| `%codex_total_discoveries_percentage_<category>%` | Percentage of total discoveries of the player from a certain category.             |
| `%codex_has_discovery_<category>:<discovery>%`    | Returns `true` if the player has unlocked the discovery and `false` if not.        |
| `%codex_has_completed_category_<category>%`       | Returns `true` or `false` depending if the player has completed a category or not. |
