Jump to content

Colors: Difference between revisions

From fCraft Wiki
No edit summary
No edit summary
Line 1: Line 1:
Although any player can call [[/Colors]] to see this list, only players with {{perm|UseColorCodes}} permission can use them.
Although any player can call [[/Colors]] to see this list, only players with {{perm|UseColorCodes}} permission can use them. Color codes can be used in chat messages, command parameters (e.g. kick reasons or world greetings), {{cmd|Rules}} files, <code>announcements.txt</code>, <code>greeting.txt</code>, as well as in code. Minecraft can display text in 16 different colors.


[[Image:chat_colors.png|left|frame|/colors output]]
==Standard Colors==
<br style="clear:left" />
==List==
{{ColorBlack}} {{ColorNavy}} {{ColorGreen}} {{ColorTeal}} {{ColorMaroon}} {{ColorPurple}} {{ColorOlive}} {{ColorSilver}}
{{ColorBlack}} {{ColorNavy}} {{ColorGreen}} {{ColorTeal}} {{ColorMaroon}} {{ColorPurple}} {{ColorOlive}} {{ColorSilver}}




{{ColorGray}} {{ColorBlue}} {{ColorLime}} {{ColorAqua}} {{ColorRed}} {{ColorMagenta}} {{ColorYellow}} {{ColorWhite}}
{{ColorGray}} {{ColorBlue}} {{ColorLime}} {{ColorAqua}} {{ColorRed}} {{ColorMagenta}} {{ColorYellow}} {{ColorWhite}}
===Newline===
In addition to colors, players with {{perm|UseColorCodes}} will be able to use the newline [[Constants|Constant]] <CODE>%N</CODE> to force a line break.


==System Colors==
==Symbolic Colors==
:The following colour codes can be used in /Rules, announcements, and greeting files, as well as code. It is as of yet impossible to use them in-game.
:
:These are part of the [[Constants]] but the default values can be edited in the [[List_of_config_keys|configuration]].
:These are part of the [[constants]] but the default values can be edited in the [[List_of_config_keys|configuration]].


:{| class="wikitable"
:{| class="wikitable"
Line 53: Line 49:
|Color of IRC messages and event announcements, as seen on the server/in-game.  
|Color of IRC messages and event announcements, as seen on the server/in-game.  
|}
|}
==Newlines==
In addition to colors, players with {{perm|UseColorCodes}} are able to use the newline keyword <code>%N</code> to force a line break mid-message.


==See also==
==See also==
*[[/Colors]] command.
*[[/Colors]] command, that lists color codes.
*[[Emotes]]
*[http://www.minecraftwiki.net/wiki/Classic_server_protocol#Color_Codes Color code information] on the Minecraft wiki
*[http://www.minecraftwiki.net/wiki/Classic_server_protocol#Color_Codes Color code information] on the Minecraft wiki
*For block colors, see [[Blocks]].
*For block colors, see [[Blocks]].


{{LastUpdated|1800}}
{{LastUpdated|1800}}

Revision as of 01:27, 7 October 2012

Although any player can call /Colors to see this list, only players with UseColorCodes permission can use them. Color codes can be used in chat messages, command parameters (e.g. kick reasons or world greetings), /Rules files, announcements.txt, greeting.txt, as well as in code. Minecraft can display text in 16 different colors.

Standard Colors

Black (0) Navy (1) Green (2) Teal (3) Maroon (4) Purple (5) Olive (6) Silver (7)


Gray (8) Blue (9) Lime (A) Aqua (B) Red (C) Magenta (D) Yellow (E) White (F)

Symbolic Colors

These are part of the constants but the default values can be edited in the configuration.
Code Default Description
&S Yellow (E) Color of normal system messages (e.g. command feedback).
&H Lime (A) Color of command usage examples in help.
&Y Green (2) Color of messages produced by /Say command.
&R Green (2) Color of announcements and rules. Default is dark-green. Note that this default color can be overridden by colorcodes in announcement and rule files.
&P Aqua (B) Color of private and rank-wide messages.
&M Purple (5) Color of /Me command messages.
&W Red (C) Color of error and warning messages.
&I Purple (5) Color of IRC messages and event announcements, as seen on the server/in-game.

Newlines

In addition to colors, players with UseColorCodes are able to use the newline keyword %N to force a line break mid-message.

See also