EssentialsC / Rules

Rules

Edit and display your server rules with /rules.

Overview

EssentialsC keeps your server rules in a single plain-text file, rules.txt, in the plugin's data folder. Running /rules reads the file and sends every line straight to chat, in order, exactly as written.

File Purpose
/plugins/EssentialsC/rules.txt One rule (or formatting line) per line of plain text. Created automatically with default content on first run.
There's no in-game rules editor - rules.txt is meant to be opened and edited directly, whether by hand, FTP, or your panel's file manager.

Editing Rules

Open rules.txt in any text editor. Each line becomes one chat message when a player runs /rules:

  • One rule, header, or blank line per line in the file
  • Blank lines are skipped entirely rather than sent as empty chat messages
  • Every line is parsed as MiniMessage, so color tags like <#FFD700> and formatting tags like <bold> work exactly like anywhere else in EssentialsC
  • There's no character limit beyond what chat itself can display - long rules just wrap normally
Save the file as UTF-8. Anything else can corrupt special characters or symbols you use in formatting.

Default Rules

If rules.txt doesn't exist, or exists but is empty, EssentialsC writes this default content the next time the server starts:

rules.txt
<#FFD700><bold>=== Server Rules ===</bold></#FFD700>

<#FF5555>1.</#FF5555> <#FFFF55>Be respectful to all players</#FFFF55>
<#FF5555>2.</#FF5555> <#55FFFF>No griefing or stealing</#55FFFF>
<#FF5555>3.</#FF5555> <#FF55FF>No cheating or hacked clients</#FF55FF>
<#FF5555>4.</#FF5555> <#55FF55>No spamming or advertising</#55FF55>
<#FF5555>5.</#FF5555> <#FFAA00>Have fun!</#FFAA00>

<#FFD700><bold>======================</bold></#FFD700>

Treat this as a starting template - replace it with your own rules whenever you're ready.


Reloading

Edits to rules.txt aren't picked up live while the server is running. After saving your changes, either:

1

Run a full reload

Run /essc reload - rules are reloaded along with every other EssentialsC manager.

2

Or restart the server

A normal server restart picks up the new file the same way as a fresh install.


Commands

Command Description
/rules Sends every line of rules.txt to the sender as chat messages, in order. If the file is empty, a fallback "no rules set" message is shown instead.

Permissions

Node Description
essentialsc.rules Required to run /rules.
This node doesn't ship with an explicit default level in plugin.yml. Most permissions plugins will treat an unregistered node as denied by default, so if regular players can't run /rules, grant essentialsc.rules to your default group explicitly.