Text Syntax: Difference between revisions

From Citizens Wiki

No edit summary
No edit summary
Line 2: Line 2:


==Chat Colors==
==Chat Colors==
Use the Chat Color character within brackets. For example, ''<a>'' would give you green.
Use the Chat Color characters the same as any other plugin. For example, <code>&a</code> would give you green.


'''Color Reference'''
'''Color Reference'''
<br>0 -- BLACK
<br>0 -- BLACK
<br>1 -- DARK BLUE
<br>1 -- <span style="color:#0000AA">DARK BLUE</span>
<br>2 -- DARK GREEN
<br>2 -- <span style="color:#00AA00">DARK GREEN</span>
<br>3 -- CYAN
<br>3 -- <span style="color:#00AAAA">CYAN</span>
<br>4 -- DARK RED
<br>4 -- <span style="color:#AA0000">DARK RED</span>
<br>5 -- PURPLE
<br>5 -- <span style="color:#AA00AA">PURPLE</span>
<br>6 -- GOLD
<br>6 -- <span style="color:#FFAA00">GOLD</span>
<br>7 -- LIGHT GRAY
<br>7 -- LIGHT GRAY
<br>8 -- GRAY
<br>8 -- GRAY
<br>9 -- BLUE
<br>9 -- <span style="color:#5555FF">BLUE</span>
<br>a -- GREEN
<br>a -- <span style="color:#55FF55">GREEN</span>
<br>b -- AQUA
<br>b -- <span style="color:#22BBBB">AQUA</span>
<br>c -- ROSE RED
<br>c -- <span style="color:#FF5555">ROSE RED</span>
<br>d -- LIGHT PURPLE
<br>d -- <span style="color:#FF55FF">LIGHT PURPLE</span>
<br>e -- YELLOW
<br>e -- <span style="color:#AAAA11">YELLOW</span>
<br>f -- WHITE
<br>f -- WHITE
You can also use hexadecimal colors in Minecraft 1.16+, using Spigot's syntax - <code>&x&f&f&0&0&e&e</code> or Essentials' syntax - <code>&#ff00ee</code> (both examples produce the same pink/magenta color).


==Other==
==Other==
Line 33: Line 35:
<br>''player'' -- Player's name
<br>''player'' -- Player's name
<br>''world'' -- Player's world
<br>''world'' -- Player's world
==External Placeholders==
If you have [https://www.spigotmc.org/resources/placeholderapi.6245/ PlaceholderAPI] installed on your server, you can use any PAPI Placeholders the same as you would use them elsewhere.




{{NavBox}}
{{NavBox}}
[[Category:Configuration]]
[[Category:Configuration]]

Revision as of 00:51, 26 November 2020

Configuration syntax in Citizens is simple. Nodes within arrow brackets -- <> -- will be parsed and replaced if possible. Below are the available nodes that you can use.

Chat Colors

Use the Chat Color characters the same as any other plugin. For example, &a would give you green.

Color Reference
0 -- BLACK
1 -- DARK BLUE
2 -- DARK GREEN
3 -- CYAN
4 -- DARK RED
5 -- PURPLE
6 -- GOLD
7 -- LIGHT GRAY
8 -- GRAY
9 -- BLUE
a -- GREEN
b -- AQUA
c -- ROSE RED
d -- LIGHT PURPLE
e -- YELLOW
f -- WHITE

You can also use hexadecimal colors in Minecraft 1.16+, using Spigot's syntax - &x&f&f&0&0&e&e or Essentials' syntax - &#ff00ee (both examples produce the same pink/magenta color).

Other

There are also other nodes that you can use in configuration files. Some of these do not apply to certain configuration settings, so use with care. More will be added in the future as the need arises.

NPC Nodes

npc -- NPC's name
id -- NPC's ID
owner -- NPC's owner

Player Nodes


player -- Player's name
world -- Player's world

External Placeholders

If you have PlaceholderAPI installed on your server, you can use any PAPI Placeholders the same as you would use them elsewhere.