Denizen/0.7/Replaceables: Difference between revisions

From Citizens Wiki

< Denizen‎ | 0.7

m (Made the longer flag replaceables seem default.)
(Add DIVs.)
Line 1: Line 1:
<div style="margin-right:2.0em; padding:10px; font-family:museo-sans; font-size:110%;">
Replaceable data tags can be used to dynamically put flags and values inside texts and commands.
Replaceable data tags can be used to dynamically put flags and values inside texts and commands.
</div>


===Flag Replaceables===
===Flag Replaceables===
<div style="margin-right:2.0em; padding:10px; font-family:museo-sans; font-size:110%;">


{{Denizen Replaceable Type Color|ghostwhite|
{{Denizen Replaceable Type Color|ghostwhite|
Line 18: Line 21:
| The value of a FLAG set globally, with the optional 'fallback' being the value used if the FLAG isn't found.
| The value of a FLAG set globally, with the optional 'fallback' being the value used if the FLAG isn't found.
}}
}}
</div>


===Player Replaceables===
===Player Replaceables===
<div style="margin-right:2.0em; padding:10px; font-family:museo-sans; font-size:110%;">


{{Denizen Replaceable Type Color|honeydew|
{{Denizen Replaceable Type Color|honeydew|
Line 105: Line 110:
| The name of the world the Player is in.
| The name of the world the Player is in.
}}
}}
</div>


===Denizen Replaceables===
===Denizen Replaceables===
<div style="margin-right:2.0em; padding:10px; font-family:museo-sans; font-size:110%;">


{{Denizen Replaceable Type Color|papayawhip|
{{Denizen Replaceable Type Color|papayawhip|
Line 117: Line 124:
| The ID of the Denizen.
| The ID of the Denizen.
}}
}}
</div>

Revision as of 22:36, 30 September 2012

Replaceable data tags can be used to dynamically put flags and values inside texts and commands.

Flag Replaceables

<FLAG:Name:fallback> or <FLAG.PLAYER:Name:fallback> or <FLAG.P:Name:fallback>

The value of a FLAG set on the Player, with the optional 'fallback' being the value used if the FLAG isn't found.


<FLAG.DENIZEN:Name:fallback> or <FLAG.D:Name:fallback>

The value of a FLAG set on the Denizen, with the optional 'fallback' being the value used if the FLAG isn't found.

<FLAG.GLOBAL:Name:fallback> or <FLAG.G:Name:fallback>

The value of a FLAG set globally, with the optional 'fallback' being the value used if the FLAG isn't found.

Player Replaceables

<DISPLAYNAME>

The display name of the Player interacting with the Denizen, i.e. the name including colors.

<PLAYER> or <PLAYER.NAME>

The name of the Player.

<PLAYER.EXP>

The Player's total experience.

<PLAYER.BOOTS>

The MATERIAL of the boots that the Player is wearing. Is 'FALSE' if the Player is not wearing any.

<PLAYER.CHESTPLATE>

The MATERIAL of the chestplate that the Player is wearing. Is 'FALSE' if the Player is not wearing any.

<PLAYER.EXP_TO_NEXT_LEVEL>

The experience the Player must gain to reach the next level.

<PLAYER.FOOD_LEVEL>

The Player's food level, from 0 to 20.

<PLAYER.HEALTH>

The Player's health, from 0 to 20.

<PLAYER.HELM>

The MATERIAL of the helm that the Player is wearing. Is 'FALSE' if the Player is not wearing any.

<PLAYER.ITEM_IN_HAND.ID>

The ID of the item in the Player's hand. Is '0' if the Player's hand is empty.

<PLAYER.ITEM_IN_HAND.MATERIAL>

The MATERIAL of the item in the Player's hand. Is 'AIR' if the Player's hand is empty.

<PLAYER.ITEM_IN_HAND.NAME>

The name of the item in the Player's hand. Doesn't work at the moment.

<PLAYER.ITEM_IN_HAND.QTY>

The quantity of the item in the Player's hand.

<PLAYER.KILLER>

The name of the last killer of this Player. Doesn't work at the moment.

<PLAYER.LEGGINGS>

The MATERIAL of the leggings that the Player is wearing. Is 'FALSE' if the Player is not wearing any.

<PLAYER.MONEY>

The amount of money that the Player has. This replaceable will only work if you have Vault installed and a compatible permissions/economy plugin.

<PLAYER.WORLD>

The name of the world the Player is in.

Denizen Replaceables

<NPC> or <DENIZEN.NAME>

The name of the Denizen.

<NPCID> or <DENIZEN.NPCID>

The ID of the Denizen.