> For the complete documentation index, see [llms.txt](https://onic-studio.gitbook.io/solarplugins-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onic-studio.gitbook.io/solarplugins-docs/plugins/solarworth/placeholderapi.md).

# PlaceholderAPI

SolarWorth tự động đăng ký expansion `solarworth` khi PlaceholderAPI được phát hiện trên server. Prefix: `%solarworth_..%`

| Placeholder                               | Mô tả                                                |
| ----------------------------------------- | ---------------------------------------------------- |
| `%solarworth_total%`                      | Tổng số tiền người chơi đã bán được qua plugin.      |
| `%solarworth_total_formatted%`            | Tổng tiền ở dạng rút gọn, ví dụ `15.5K` hoặc `2.4M`. |
| `%solarworth_category_<catId>%`           | Tổng số tiền đã bán được theo từng danh mục.         |
| `%solarworth_category_<catId>_formatted%` | Tiền của từng danh mục ở dạng rút gọn.               |

{% hint style="info" %}
**Cache:** Dữ liệu top sell được cache 10 giây để tránh query database liên tục khi scoreboard refresh nhanh.
{% endhint %}
