Constants: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
The following string constants can be used in | The following string constants can be used in {{cmd|Rules}}, announcements, and greeting files. | ||
*<code>{SERVER_NAME}</code> | *<code>{SERVER_NAME}</code> | ||
*<code>{MOTD}</code> | *<code>{MOTD}</code> | ||
| Line 8: | Line 8: | ||
*<code>{PLAYERS}</code> - Number of players online (excludes hidden ones) | *<code>{PLAYERS}</code> - Number of players online (excludes hidden ones) | ||
*<code>{WORLDS}</code> - Total number of worlds (includes hidden/inaccessible ones) | *<code>{WORLDS}</code> - Total number of worlds (includes hidden/inaccessible ones) | ||
*<code>{PLAYER_LIST}</code> - List of names of all online players that this player can see, including prefixes and colors (if applicable). | |||
Revision as of 02:29, 22 August 2012
The following string constants can be used in /Rules, announcements, and greeting files.
{SERVER_NAME}{MOTD}{RANK}- Player's rank; may include formatting (prefix and color){PLAYER_NAME}- player's own name; may include formatting (prefix and color), or may be replaced with DisplayedName{TIME}- Server's local time (depends on the server's timezone){WORLD}- Name of the main/starting map; may include formatting (prefix and color){PLAYERS}- Number of players online (excludes hidden ones){WORLDS}- Total number of worlds (includes hidden/inaccessible ones){PLAYER_LIST}- List of names of all online players that this player can see, including prefixes and colors (if applicable).