Jump to content

Constants: Difference between revisions

From fCraft Wiki
Created page with "*<code>{SERVER_NAME}</code> *<code>{MOTD}</code> *<code>{RANK}</code> - player's rank; may include formatting (prefix and color) *<code>{PLAYER_NAME}</code> - player's own name; ..."
 
No edit summary
Line 1: Line 1:
The following string constants can be used in [[/Rules]], announcements, and greeting files.
*<code>{SERVER_NAME}</code>
*<code>{SERVER_NAME}</code>
*<code>{MOTD}</code>
*<code>{MOTD}</code>

Revision as of 00:36, 16 February 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} - local server time
  • {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)