-
Notifications
You must be signed in to change notification settings - Fork 0
Placeholders
Michele Coco edited this page Feb 15, 2021
·
10 revisions
Require PlaceholderAPI installed
If you are using an MVdW plugin (like FeatherBoard) you have different placeholders:
{placeholderapi_*}
* = placeholder without '%'
Example:
{placeholderapi_upgradablespets_has_a_pet}
%upgradablespets_has_a_pet%
'True' if the player owns a pet.
%upgradablespets_pet_level%
The pet level.
%upgradablespets_pet_name%
The pet display name.
%upgradablespets_pet_name_default%
The default pet display name from the config.yml (even if the player changed it)
%upgradablespets_pet_max_health_level%
The pet max health level.
%upgradablespets_pet_max_health_value%
The pet max health points.
%upgradablespets_pet_current_health%
The pet's current health (0 if dead).
%upgradablespets_pet_is_dead%
'True' if the pet is dead.
%upgradablespets_pet_is_away%
'True' if the pet is away.
%upgradablespets_pet_purchase_date%
The purchase date. (The Date format can be set in the config.yml).
%upgradablespets_total_pet_cost%
The amount of money spent on pet purchases and upgrades.
%upgradablespets_total_pet_cost_format%
The amount of money, formatted with commas, spent on pet purchases and upgrades.
%upgradablespets_pets_count%
The number of pets currently on the server.
%upgradablespets_pet_type_changes_count%
The number of times the player has changed his pet type.
%upgradablespets_pet_type_changes_left%
The number of times the player is allowed to re-change his pet type.
%upgradablespets_EFFECTNAME_effect_level%
The level of that effect
Just replace EFFECTNAME with the name of the effect (doesn't have to be uppercase)
Example:
%upgradablespets_speed_effect_level%
You can set 'true' and 'false' values in the lang.yml (PlaceholdersHook).
If you use these placeholders and the player doesn't own a pet it will be displayed an empty string.