Skip to content

Placeholder support

Eufranio Lima edited this page May 2, 2021 · 3 revisions

PixelBuilt-Quests comes with several placeholders which are loaded if the placeholders plugin is loaded. For now it only works with PlaceholderAPI.

PlaceholderAPI

Tasks

  • %pbqtaskneeded_<quest line>_<quest id>_<task id>% - If the task is an amount task, returns the amount needed to complete the task. For example, if you have a 'kill 4 mobs' task and have killed 3 mobs, it should return 1.

  • %pbqtaskcurrent_<quest line>_<quest id>_<task id>% - If the task is an amount task, returns the current completed amount of the task for the player. For example, if you have a 'kill 4 mobs' task and have killed 3 mobs, it should return 3.

  • %pbqtaskpercentage_<quest line>_<quest id>_<task id>% - If the task is an amount task, completed percentage of the task for the player. For example, if you have a 'kill 4 mobs' task and have killed 3 mobs, it should return 75%.

  • %pbqtasktotal_<quest id>_<task id>% - If the task is an amount task, returns the total amount of the task that the player must reach to complete it. For example, if you have a 'kill 4 mobs' task it should return 4.

Quests

  • %pbqquestpercentage_<quest line>_<quest id>% - Returns the percentage of completion for the quest, based on it's completed tasks. For example, if you have a quest with 4 tasks, and 3 of them are already completed, it should return 75%.

Quest Lines

  • %pbqquestlinetotal_<quest line>% - Returns the quests count of the specified quest line.

  • %pbqquestlinecompleted_<quest line>% - Returns how many of the quest line's quests the player has completed.

  • %pbqquestlineprogress_<quest line>% - Returns the progress level of the player in the specified quest line.

Nucleus

Soon...

Clone this wiki locally