Jump to content

/Rules: Difference between revisions

From fCraft Wiki
Hellenion (talk | contribs)
Added something about rule formatting.
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:


==<code>/Rules <Section></code>==
==<code>/Rules <Section></code>==
:Additional rule sections may be specified by creating a "rules" directory, and placing text files into it. For instance, {{cmd|rules|blah}} will read from ''rules/blah.txt'' file. Colors and constants may also be used in these section files.
:Additional rule sections may be specified by creating a "rules" directory, and placing text files into it. For instance, {{cmd|Rules|blah}} will read from ''rules/blah.txt'' file. Colors and constants may also be used in these section files.


==Blank lines==
==Blank lines==
Empty lines in <code>rules.txt</code> are ignored, but may be desireable. To print an empty line, simply put <code>&R</code> in it, which is the default color. This way the line won't be ignored by the parser, and the linewrapper doesn't print any additional characters.
:Empty lines in <code>rules.txt</code> are ignored, but may be desireable. To print an empty line, simply put <code>&R</code> in it, which is the default color. This way the line won't be ignored by the parser, and the linewrapper doesn't need to print any additional characters.


{{LastUpdated|1201}}
{{LastUpdated|1201}}

Latest revision as of 02:00, 31 May 2013

Command
Rules

Display the server rules.

Usage

/Rules

/Rules <Section>

CategoryInfo
Usable from console?Yes
Introduced infCraft 0.316

/Rules

Prints contents of rules.txt file. If no such file exists, prints a placeholder message ("Rules: Use common sense!"). This message can be changed by editing rules.txt, or by using ConfigGUI (General tab -> Edit Rules). You may use any color codes or string constants in rules.txt.

/Rules <Section>

Additional rule sections may be specified by creating a "rules" directory, and placing text files into it. For instance, /Rules blah will read from rules/blah.txt file. Colors and constants may also be used in these section files.

Blank lines

Empty lines in rules.txt are ignored, but may be desireable. To print an empty line, simply put &R in it, which is the default color. This way the line won't be ignored by the parser, and the linewrapper doesn't need to print any additional characters.