« Back to search

Mod

Server Rules

by CrazyladMT · score 157.0 · license: MIT

Server Rules

Download latest release

Adds a rules interface.

chat gui server_tools

Server Rules

This mod adds a nice rules interface that is displayed to players, with several key features including a split-screen view to edit the rules in-game.

Features:

  • Supports hypertext formatting
  • Rules can be modified using /set_rules
  • Split-screen GUI to set the rules allows previewing the formatted hypertext
  • Rules are saved to rules.txt in the worldpath
  • Players must agree to the rules when they join for the first time to gain interact

Commands:

  • /rules shows the rules.
  • /set_rules edit the rules. (requires server privilege)

Using hypertext

The rules support hypertext formatting. Take a look at https://api.luanti.org/formspec/#markup-language for more info on how to use hypertext.

Note: Hypertext is only supported for >5.2.0 clients.

Basic usage:

  • <b>Bold text</b>
  • <i>Italics</i>
  • <u>Underlined text</u>
  • <center>Centered text</center>
  • <style color=#ff0000>This text will be red</style>
  • <style size=20>Bigger text</style>
  • <style font=mono size=20>Bigger text with mono font</style>

Licenses

Source code is licensed under the MIT license.