插件手册:betonquest:变量列表

这是本文档旧的修订版!


变量列表 Variables List

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

例子: `%player.display%`

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

例子: `%npc%`

Using this variable you can display a property of an objective. The first argument is an ID of the objective as defined in _objectives.yml_ (not the type). Make sure that the player has this objective active or it will be replaced with nothing (“”). Second argument is the name of a property you want to display. All properties are described in “Objectives List” chapter.

Example: `%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%`

This variable displays the version of the plugin. You can optionally add the name of the plugin as an argument to display version of another plugin.

Example: `%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/变量列表.1528994027.txt.gz
  • 最后更改: 2018/06/15 00:33
  • 小小k酱