DenizenMC

Tools & Reference

Kitchen tools, commands, permissions and every setting in config.yml.

Everything you can run, every permission, and every setting, all on one page.

Kitchen tools

Check

/lightning check reads the config files of every plugin on your server, in the background, and points out formatting that will never work:

  • Typos in tags. <gradiant:red:gold> gets "did you mean <gradient>?" Only near misses are flagged, so usage lines like /home <name> are left alone.
  • Missing sparks. <spark:prefx> gets "there's no spark called 'prefx'".
  • Leftover & codes. Counted per file, with a pointer to /lightning convert.

Each finding shows the file and line. Hover it to see the line itself, click it to copy where it is. Up to 12 show in chat, and the full list goes to plugins/Lightning/check.txt. Use /lightning check Essentials to check just one plugin.

Convert

/lightning convert <plugin> rewrites a plugin's old & color codes as MiniMessage. With Lightning charging that plugin's text, its configs become MiniMessage configs, gradients and all, even though the plugin only ever understood &.

Preview it. /lightning convert Essentials shows how many lines would change. Hover Examples to see a few lines before and after. Nothing is written yet.

Confirm it. Click Convert, or run /lightning convert Essentials confirm. Every file that changes is backed up to plugins/Lightning/backups/ first.

Old codeBecomes
&c<red>, or <reset><red> after bold and similar, matching how old colors cleared formatting
&l &o &n &m &k<bold> <italic> <underlined> <strikethrough> <obfuscated>
&r<reset>
&#FF5500, &x&F&F&5&5&0&0<#ff5500>
§ codesThe same as &

Careful by design

Convert leaves links alone (https://site.com/?a=1&b=2), keeps accents and other languages intact, and refuses to touch Lightning's own folder.

Parse, inspect and debug

  • /lightning parse <text> charges text for you exactly like a real message, bolts included. It's the fastest way to preview a line.
  • /lightning inspect shows where every message you receive comes from. See Inspect.
  • /lightning debug explains in the console what Lightning skips and why, until the next reload. No config edit needed.

Commands

All commands need lightning.admin, and /lt works as a shortcut.

CommandWhat it does
/lightning reloadReloads config.yml and everything in sparks/, rewires/ and commands/
/lightning parse [surface] <text>Shows exactly what players would see. Put a surface first, like kicks, to test rewires meant for it. \n is a line break
/lightning sparksLists every loaded spark
/lightning inspect [surface]Shows where messages come from, on any surface
/lightning check [plugin]Finds formatting that will never work
/lightning convert <plugin> [confirm]Turns & codes into MiniMessage, with a backup
/lightning debugLogs what Lightning skips and why

Permissions

PermissionDefaultWhat it does
lightning.adminopEvery /lightning command
lightning.trustedopGuard never holds back what this player types
lightning.bypassNobodySkips cooldowns and limits on custom commands

config.yml

Every key is a single word, nested only where things belong together.

KeyDefaultWhat it does
detectsmartsmart charges any text holding a real tag. marker only charges text containing <charge>
surfaces.<name>Mostly trueTurns a surface on or off. Off means Lightning never even looks
placeholderstrueFills in %placeholders% inside charged text
guard10mHow long Guard remembers what players type. 0 turns it off
pulse1sHow often animated lines refresh. 0 turns Pulse off
center154The middle of the chat box in pixels, used by <center>
timezoneserverTime zone for <clock>, like Europe/London
cache4096How many charged texts are kept ready. 0 turns the cache off
items.italicsfalseKeeps the italics Minecraft adds to renamed items and lore
faces.fallback<gray>☺</gray>Shown instead of a face on servers older than 1.21.9
faces.shadowfalseText shadow makes faces look dark in the tab list. true brings it back
debugfalseLogs anything Lightning skips and why
messages.*Lightning's own messages, in MiniMessage. <prefix> inserts messages.prefix

PlaceholderAPI

When it's installed and placeholders is on, %placeholders% in charged text fill in for whoever is reading.

  • Placeholders fill in before tags, so they can feed sparks and formulas.
  • Expansions that answer with § colors are converted to tags automatically.
  • Text with placeholders is never cached, since it changes per player.

Placeholders run off the main thread

Lightning handles packets off the main thread, so placeholders resolve there too. Most expansions are perfectly fine with that. If one misbehaves, the expansion is the place to look.

Did this page help?

Last updated on