/rules
also /rule
Show the server rules
/rules/rules <player>/rules edit/rules reload
A rules menu players open with /rules. Each rule book is a clickable book item whose lore lists the rules, and you write the rules as plain lines in one file.
Main commands
/rules reload/rules reload/rules Alex/rules editCan I make the rules menu open for new players automatically?
DRules does not do that on its own. Use a join command from another plugin that runs /rules <player>, or point players to /rules in your welcome message.
Why does my long rule look cut off?
Minecraft draws very long tooltips off the screen. DRules warns in the console when a book has more than 30 lines. Split it into two books.
Who can use /rules?
Everyone by default (drules.use). /rules <player> needs drules.others and /rules reload needs drules.reload. Both are operator-only by default.
Menus and messages come from the default DRules files. Run a command, click an example, or pick a menu.
No menu open. Run a command below or pick a menu from the list.
<name> you must fill in[name] optionalword typed as shown
also /rule
Show the server rules
/rules/rules <player>/rules edit/rules reloadWho has each one before you set anything up is in the middle column.
| Permission | Default | Grants |
|---|---|---|
| drules.use | Everyone | Open the rules menu with /rules |
| drules.others | Operators | Open the rules menu on another player's screen with /rules <player> |
| drules.edit | Operators | Edit the rule books in game with /rules edit |
| drules.reload | Operators | Reload settings.yml and menu-rules.yml with /rules reload |
plugins/DRules/settings.yml
Rules: who can open /rules, the sound it makes and the chat messages. The rules themselves are in menu-rules.yml. Edit, then run /rules reload. Help and support: https://discord.devamy.net or dstudios@devamy.net
ENLanguage of the plugin's texts.
EN = English FR = French ES = Spanish
'�B5FF&lRULES &8| 'Text in front of every chat message below. Use '' for no prefix. & colour codes and &#RRGGBB work. A changed prefix needs a server restart.
--- The /rules command --- Who is allowed to use it.
'drules.use'Permission needed to open the menu with /rules. Use '' to let everyone open it, which is usually what you want for a rules menu.
'drules.others'Permission for /rules <player>, which opens the menu for another player (handy for staff). Empty = operators only.
'drules.reload'Permission for /rules reload. Empty = operators only.
'drules.edit'Permission for /rules edit, the in-game editor for the rule books. Empty = operators only.
trueIs the player told who opened the rules for them?
true = yes ("Steve opened the server rules for you")
false = the menu just appears (players often report that as a bug)--- Sound when the menu opens ---
'block.chest.open'The sound name, for example block.chest.open, ui.button.click or item.book.page_turn. Use '' for a silent menu.
0.8How loud, from 0.0 to 1.0. Above 1.0 players standing nearby hear it too.
1.3How high. 1.0 is normal, 0.5 is deeper, 2.0 is higher.
masterWhich volume slider in the player's game settings controls this sound. One of: master, music, record, weather, block, hostile, neutral, player, ambient, voice Keep master unless you want players to be able to mute it.
--- Messages --- Chat messages. & colour codes and &#RRGGBB work. '' turns a message off.
'&#FF5C5CYou cannot view the rules here.'Shown when the player may not use /rules (command.permission).
'&#FF5C5COnly players can open the rules. Use &f/rules <player>&#FF5C5C from console.'Shown when the console types /rules without a player name.
'&#FF5C5C&f%player% &#FF5C5Cis not online.'You can use: %player% (the name that was typed)
'&fOpened the rules for �B5FF%player%&f.'Sent to whoever ran /rules <player>. You can use: %player% (the player it was opened for)
'�B5FF%player% &fopened the server rules for you.'Sent to the player it was opened for (not if command.notify-target is false). You can use: %player% (who opened it)
'&fReloaded �B5FF%books% &fbooks with �B5FF%rules% &frules.'You can use: %books% (number of rule books) %rules% (number of rules)
'Rule books'In-game editor (/rules edit). The names of its buttons and the one-line help shown on the rules button.
'Book %id%'You can use: %id% (the book's name in menu-rules.yml)
'&8│ &7Rule lines &f%count%'You can use: %count% (how many rule lines the book has)
'�B5FF» &fClick &7to edit''Book name''Book item''Shimmer''Lines above the rules''Rules''One line is one rule. Start a line with > to continue the rule above, or | to print it as written.''Click command''Close on click'# Rules: who can open /rules, the sound it makes and the chat messages. The rules themselves are in menu-rules.yml.# Edit, then run /rules reload.# Help and support: https://discord.devamy.net or dstudios@devamy.net# A setting you delete (or put a # in front of) comes back with its default. To switch something off, change its# value instead.# Used by updates. Do not edit.config-version: 1# Language of the plugin's texts.# EN = English# FR = French# ES = Spanishlanguage: EN# Text in front of every chat message below. Use '' for no prefix. & colour codes and &#RRGGBB work.# A changed prefix needs a server restart.prefix: '�B5FF&lRULES &8| '# --- The /rules command ---# Who is allowed to use it.command:# Permission needed to open the menu with /rules.# Use '' to let everyone open it, which is usually what you want for a rules menu.permission: 'drules.use'# Permission for /rules <player>, which opens the menu for another player (handy for staff).# Empty = operators only.others-permission: 'drules.others'# Permission for /rules reload. Empty = operators only.reload-permission: 'drules.reload'# Permission for /rules edit, the in-game editor for the rule books. Empty = operators only.edit-permission: 'drules.edit'# Is the player told who opened the rules for them?# true = yes ("Steve opened the server rules for you")# false = the menu just appears (players often report that as a bug)notify-target: true# --- Sound when the menu opens ---sound:# The sound name, for example block.chest.open, ui.button.click or item.book.page_turn.# Use '' for a silent menu.open: 'block.chest.open'# How loud, from 0.0 to 1.0. Above 1.0 players standing nearby hear it too.volume: 0.8# How high. 1.0 is normal, 0.5 is deeper, 2.0 is higher.pitch: 1.3# Which volume slider in the player's game settings controls this sound.# One of: master, music, record, weather, block, hostile, neutral, player, ambient, voice# Keep master unless you want players to be able to mute it.source: master# --- Messages ---# Chat messages. & colour codes and &#RRGGBB work. '' turns a message off.messages:# Shown when the player may not use /rules (command.permission).no-permission: '&#FF5C5CYou cannot view the rules here.'# Shown when the console types /rules without a player name.players-only: '&#FF5C5COnly players can open the rules. Use &f/rules <player>&#FF5C5C from console.'# You can use: %player% (the name that was typed)target-not-found: '&#FF5C5C&f%player% &#FF5C5Cis not online.'# Sent to whoever ran /rules <player>. You can use: %player% (the player it was opened for)opened-for-target: '&fOpened the rules for �B5FF%player%&f.'# Sent to the player it was opened for (not if command.notify-target is false). You can use: %player% (who opened it)opened-by-staff: '�B5FF%player% &fopened the server rules for you.'# You can use: %books% (number of rule books) %rules% (number of rules)reloaded: '&fReloaded �B5FF%books% &fbooks with �B5FF%rules% &frules.'# In-game editor (/rules edit). The names of its buttons and the one-line help shown on the rules button.editor-title: 'Rule books'# You can use: %id% (the book's name in menu-rules.yml)editor-book: 'Book %id%'# You can use: %count% (how many rule lines the book has)editor-book-rules: '&8│ &7Rule lines &f%count%'editor-click: '�B5FF» &fClick &7to edit'editor-name: 'Book name'editor-material: 'Book item'editor-glow: 'Shimmer'editor-header: 'Lines above the rules'editor-rules: 'Rules'editor-rules-hint: 'One line is one rule. Start a line with > to continue the rule above, or | to print it as written.'editor-footer: 'Lines below the rules'editor-click-command: 'Click command'editor-close-on-click: 'Close on click'
DCore DCore carries the menu framework, the colour parser and the config loader that keeps your comments when new options are added.
Paper 1.21 or newer, and forks like Purpur and Leaf. Folia is supported. Java 21 or newer.