Placeholders

Revision as of 04:33, 3 September 2024 by FutureThrone795 (talk | contribs) (Created page with "'''Placeholders''' allow for certain values to be used in certain text inputs in Housing. These placeholders are then automatically formatted into the associated value, and will update whenever the placeholder value is changed. The command /placeholders displays a list of every Housing placeholder in chat. The command /testplaceholder <placeholder> serves as a text input, and can be used to see the formatting of potential placeholders in chat. == Placeholder List == {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Placeholders allow for certain values to be used in certain text inputs in Housing. These placeholders are then automatically formatted into the associated value, and will update whenever the placeholder value is changed.

The command /placeholders displays a list of every Housing placeholder in chat. The command /testplaceholder <placeholder> serves as a text input, and can be used to see the formatting of potential placeholders in chat.

Placeholder List

Placeholder Type Notes
%server.name% String -
%server.shortname% String -
%player.name% String -
%player.ping% String -
%player.health% Integer -
%player.maxhealth% Integer -
%player.hunger% Integer -
%player.experience% Integer -
%player.level% Integer -
%player.version% String -
%player.protocol% Integer -
%player.gamemode% String -
%player.region.name% String -
%player.location.x% Integer -
%player.location.y% Integer -
%player.location.z% Integer -
%player.location.pitch% Integer -
%player.location.yaw% Integer -
%player.group.name% String -
%player.group.tag% String -
%player.group.priority% Integer -
%player.group.color% Color -
%player.team.name% String -
%player.team.tag% String -
%player.team.color% Color -
%player.team.players/<team name>% Integer -
%house.name% String -
%house.guests% Integer Counts players from every group except for the owner.
%house.cookies% Integer Only includes cookies earned within the current week.
%house.visitingrules% String -
%house.players% Integer -
%date.day/[timezone]% Formatted Integer See the timezones page.
%date.month/[timezone]% Formatted Integer See the timezones page.
%date.year/[timezone]% Formatted Integer See the timezones page.
%date.hour/[timezone]% Formatted Integer See the timezones page.
%date.minute/[timezone]% Formatted Integer See the timezones page.
%date.seconds/[timezone]% Formatted Integer See the timezones page.
%date.unix% Integer See Unix Time.
%random.int/<inclusive origin> <exclusive bound>% Integer "Exclusive bound" means that the second parameter is not a possible output of this placeholder.
%stat.player/<key>% Integer -
%stat.global/<key>% Integer -
%stat.team/<key> <team name>% Integer If the "team name" is omitted, it will default to the player's current team.