PlaceholderAPI
PlaceholderAPI
SmartHomes registers 3 placeholders via PlaceholderAPI. Registration happens automatically on startup when PlaceholderAPI is present — no /papi ecloud download step.
Available Placeholders
| Placeholder | Returns | Example |
|---|---|---|
%smarthomes_count% |
Number of homes the player has set | 4 |
%smarthomes_limit% |
Max homes the player can have (from permission nodes or limits.default) |
10 |
%smarthomes_cooldown% |
Seconds until the player's next /home is available |
27 |
%smarthomes_cooldown% returns 0 when the player is ready to teleport.
Usage Examples
CMI Scoreboard
lines:
- "&7Homes: &b%smarthomes_count%&7/&b%smarthomes_limit%"
- "&7Teleport in: &e%smarthomes_cooldown%s"
TAB Plugin
tablist-name-format: "%player_name% &8| &b%smarthomes_count% homes"
EssentialsX Chat
format: "{PREFIX}&f{DISPLAYNAME}&8: &7Homes: &b%smarthomes_count%"
SmartHomes is a TTS-Studio plugin. © TTS-Studio.