> For the complete documentation index, see [llms.txt](https://docs.cheddah-development.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddah-development.net/plugin-documentaion/better-baltop/playerpoints-integration.md).

# PlayerPoints Integration

PlayerPoints adds an optional second leaderboard to BetterBaltop.

### Enable the integration

1. Stop the server.
2. Install PlayerPoints `3.3.5` or a compatible 3.x release.
3. Start the server.
4. Look for the BetterBaltop message confirming that the PlayerPoints hook was enabled.
5. Run `/bbt refresh points` if you want an immediate refresh.
6. Open `/baltop`.

When the hook succeeds, a switch button appears in slot 50 of the menu. Players can use it to move between the economy and points leaderboards. Switching always returns to page 1.

If PlayerPoints is missing or cannot be hooked, BetterBaltop continues normally with Vault only. The switch button is hidden rather than showing an unavailable feature.

### How points are displayed

* Entries remain player heads.
* Points use readable thousands separators.
* PlayerPoints' configured singular or plural currency name is included when available.
* The `maximum-entries` and `show-zero-balances` settings apply.
* Accounts with names beginning with `*` are hidden because they are non-player accounts and do not belong in a player-head leaderboard.

### Performance and failures

BetterBaltop asks PlayerPoints for its sorted rankings asynchronously, so database-backed work does not block Paper's main server thread.

Vault and PlayerPoints have separate caches. If a PlayerPoints refresh fails, the last successful points list remains available and the economy leaderboard is unaffected.
