Internal placeholders
The plugin has an internal placeholders system: it allows to dynamically include text in other texts, for instance the player name, the remaining amount of blocks to mine, etc.
The placeholders can be used in stage description messages, in quest descriptions… practically in all in-game messages.
Most of the placeholders are contextual: it means they can only be used in a certain context (e.g. a stage, an NPC message…) and that the value they will be replaced with will depend on the context. For instance, the placeholder that shows the remaining actions for a stage is only available in the context of a stage description (shown in scoreboard, in the quest menu, etc.)
Placeholders format
Section titled “Placeholders format”All placeholders are usable with the {key} format, where key is the placeholder itself. To say it literally, you have to write the placeholder enclosed in curly braces.
Placeholders list
Section titled “Placeholders list”Default
Section titled “Default”Those placeholders are present in all contexts.
prefix: the prefix of the plugin (configurable in the locale file) if theenablePrefixconfig option is enabled,§6otherwisenl: new line (line break)
Questers
Section titled “Questers”Those placeholders are present in almost all context, except for server-wide texts.
quester_name: the friendly name of the quester (e.g. the player name)quester_display_name: the display name of the quester. Most of the time identical toquester_name.quester_identifier: the unique identifier of the questerquester_detailed_name: a detailed name describing the quester If the quester is an actual player, the following placeholders will also work:player: the name of the player (identical toquester_name)PLAYER: same asplayer(legacy)player_display_name: the display name of the player (identical toquester_display_name)
Quests
Section titled “Quests”Those placeholders are present in all contexts that are linked to a quest.
quest: name and id of the quest, in the formatname (#id)quest_namequest_idquest_description: description of the quest, or nothing if not defined
npc_namenpc_id
Dialog messages
Section titled “Dialog messages”- all placeholders from NPCs
player_name: name of the player in the dialognpc_name_message: name of the NPC in the context of this dialog (the name can be changed in the dialog editor)message_count: total amount of messages in the dialogmessage_id: number of the message (ranging from 1 tomessage_countincluded)
Stages
Section titled “Stages”All contexts linked to a stage have the following placeholders available:
- all placeholders from Quests
stage_type: the type of stage (kill mobs, break blocks, etc.)stage_rewards: amount of rewards of the stagestage_requirements: amount of requirements of the stage
On top of that, each stage has a specific set of placeholders available so the advancement and settings of each stage are available.
Furthermore, since a lot of stages share a similar structure (e.g. do some action on a list of mobs), there are a few shared list of placeholders:
Shared between Entity stages
Section titled “Shared between Entity stages”mobs: preformatted information about the entities, following thestage description.item formatssection inconfig.ymlmobs_remaining: amount of mobs remaining for the actionmobs_done: amount of mobs for which the action have already been donemobs_total: total amount of mobs for the actionmobs_percentage: percentage of mobs done / total mobsmobs_name: name of the mobs for the action
Shared between stages with multiple <object_type>
Section titled “Shared between stages with multiple <object_type>”<object_type>: preformatted information about the objects, following thestage description.item formatssection in config.yml<object_type>_remaining|done|total|percentage|name: informations about the objects, see “Entity stage”<object_type>_<id>_remaining|done|total|percentage|name: informations about theid-th object, see “Entity stage”
Breed animals
Section titled “Breed animals”- all placeholders from Entity stages
Tame animals
Section titled “Tame animals”- all placeholders from Entity stages
Talk to NPC
Section titled “Talk to NPC”- all placeholders from NPCs
dialog_npc_name: name of the NPC. Either the real NPC’s name, or the custom one if set in the dialog editor.
Bring items to NPC
Section titled “Bring items to NPC”- all placeholders from Talk to NPC
items: formatted list of items, following thestage descriptionsection inconfig.yml
Fill buckets
Section titled “Fill buckets”bucket_type: name of the bucket to fillbuckets,buckets_remaining|done|total|percentage|name: informations about the buckets, see “Entity stage”
Write in chat
Section titled “Write in chat”text: text to write in the chat
Craft items
Section titled “Craft items”items,items_remaining|done|total|percentage|name: informations about the items to craft, see “Entity stage”
Deal damage
Section titled “Deal damage”damage_remaining|done|total|percentage: informations about the damage, see “Entity stage”target_mobs: list of mobs applicable for this stage
Kill mobs
Section titled “Kill mobs”- all placeholders from Stages with multiple
mobs
Break blocks
Section titled “Break blocks”- all placeholders from Stages with multiple
blocks
Place blocks
Section titled “Place blocks”- all placeholders from Stages with multiple
blocks
Melt items
Section titled “Melt items”- all placeholders from Stages with multiple
items
Fish items
Section titled “Fish items”- all placeholders from Stages with multiple
items
Consume/eat/drink items
Section titled “Consume/eat/drink items”- all placeholders from Stages with multiple
items
Enchant items
Section titled “Enchant items”- all placeholders from Stages with multiple
items
Play some time
Section titled “Play some time”time_remaining_human: a human-readable string of the time left (e.g. “2 hours and 3 minutes”)time_remaining|done|total|percentage: information about the time in milliseconds, see “Entity stage”
Interact with block
Section titled “Interact with block”block: pretty name of the block to interact withblock_type: internal name of the blockblock_material: name of a real material associated with this block (some blocks can have multiple materials, e.g. for a tag)
Interact at location
Section titled “Interact at location”x,y,z: integer coordinates of the location to interact withworld_name: the name of the world to interact in, if it is definedworld_pattern: the regular expression describing in which world the interaction is allowed, if it is definedworld: either the name or the regular expression for the world, depending on which is defined
