插件手册:betonquest:变量列表

这是本文档旧的修订版!


变量列表 Variables List

此变量代表玩家的名字/ID。如果你使用了`display`参数,此变量会使用玩家的显示名称(如Essentials定义的display name)而不是实际ID。

例如: `%player.display%`

非常简单的变量。`npc`会以玩家的语言被替换为NPC的显示名字。

例如: `%npc%`

你可以用此变量显示某个任务目标/流程。第一个参数是objectives.yml中定义的任务目标的ID(不是`任务目标属性`)。请确保此玩家已启动了这个任务目标,否则这个变量将会显示空白(“”);第二个参数是这个任务目标的某个属性,所有任务目标属性列表可以在插件手册:betonquest:任务目标中找到。

例如: `%objective.kill_zombies.left:20%`

This variable displays the amount of points you have in some category or amount of points you need to have to reach a number. The first argument is the name of a category and the second argument is either `amount` or `left:x`, where `x` is a number.

Example: `%point.reputation.left:15%`

With this variable you can display amount of specific items in player's inventory or a number needed to reach specific amount. The first argument is the name of an item (as defined in _items.yml_) and the second one is either `amount` or `left:x`, where `x` is a number.

Example: `%item.stick.amount%`

此变量用于显示插件的版本。你还可以在后面加上插件的名称用来显示你想要的插件版本

例如: `%version.Citizens%`

This variable resolves to player's current location, formatted as an absolute location format (more about it in the _Reference_ chapter). The location will contain yaw and pitch. You can use it instead of coordinates as location arguments in events, conditions and objectives.

Example: `%location%`

  • 插件手册/betonquest/变量列表.1528994666.txt.gz
  • 最后更改: 2018/06/15 00:44
  • 小小k酱