Lightning ⚡
Lightning 让你能够自定义服务器中的各类消息,包括那些从未设计为支持 MiniMessage 的插件所发送的消息。无需修改各个独立的插件,即可添加渐变、十六进制颜色、悬停事件、点击操作、可复用占位符以及自定义命令。
通过简单的 YAML 配置定义可复用的文本样式、创建交互式消息并构建命令工作流。
与 Lightning 一起烹饪。
功能特性
通用 MiniMessage 支持
在来自几乎所有插件的消息中使用渐变、十六进制颜色、悬停事件和点击操作,即使是那些仅支持旧版颜色代码的插件也适用。
全服务器消息自定义
自定义聊天、动作栏、标题、Boss 条、标签页列表、计分板、菜单、物品、全息图、对话框、服务器列表消息,甚至包括封禁和踢出屏幕。
智能标签检测
Lightning 会处理包含受支持的 Lightning 标签的消息,同时保持普通文本不受影响。例如 /home <name> 这样的命令将保持原样。
Sparks:可复用的文本组件
创建用于前缀、配色方案、格式化占位符、动态值、轮播提示和本地化消息的自定义标签。只需定义一次,即可在整个服务器中重复使用。
Bolts:消息操作
超越单纯的格式设置,使用触发操作的标签,包括动作栏消息、标题、音效以及消息屏蔽。
玩家头像集成
使用 <face> 标签直接在受支持的文本组件中显示玩家自己的头像。
Rewires:覆盖现有消息
重新设计那些难以通过插件配置直接编辑的消息,包括原版服务器界面和硬编码的插件消息(在支持的情况下)。
自定义命令
使用 YAML 创建你自己的命令。配置权限、Tab 补全、键入参数、子命令、冷却时间、执行限制以及可配置的操作。
内置配置工具
追踪消息来源,识别插件配置中断裂的标签,并通过单次操作将旧版 & 颜色代码转换为 MiniMessage。
轻量且安全
玩家提供的文本保持为纯文本,不会被解释为格式指令。普通消息避免不必要的处理,有助于保持低开销。
配置示例
1. 在任何插件的配置中使用 MiniMessage
安装 Lightning 后,其他插件配置中受支持的消息可以使用 MiniMessage 格式。
welcome: "<gradient:#FFE259:#FFA751>Welcome back, %player_name%!</gradient>"
home-set: "<actionbar><green>Home set.<sound:entity.player.levelup>"
balance: "<spark:prefix> You have <spark:balance>"
2. 创建你自己的命令
直接在 YAML 中定义命令、参数、冷却时间、权限和操作。
report:
description: Report a player to staff
sender: player
cooldown: 1m
arguments:
- name: target
type: player
- name: reason
type: text
actions:
- "<spark:prefix> Thanks, staff will look into it."
- broadcast: "<red>Report</red> {player} reported {target}: {reason}"
permission: server.staff
这些示例展示了 Lightning 如何将格式设置、可复用组件和命令逻辑整合到一个由配置驱动的系统之中。
要求
- Paper 或 Folia,版本 1.21 或更高
- Java 21
- PlaceholderAPI(可选)
安装
- 下载 Lightning 并将 JAR 文件放入服务器的 plugins 文件夹。
- 重启服务器。
- 配置 Lightning 并开始自定义你的消息。
支持
需要 Lightning 的帮助吗?你可以加入 DenizenMC Discord 服务器 或查看 文档。
匿名统计
Lightning 通过 Arrow Stats(一个面向 Minecraft 软件的开源统计服务)收集匿名的服务器统计数据。
你可以通过编辑 plugins/Arrow Stats/config.yml 选择退出。

Lightning ⚡
Lightning lets you customize messages across your server, including messages from plugins that were never designed to support MiniMessage. Add gradients, hex colors, hover events, click actions, reusable placeholders, and custom commands without modifying individual plugins.
Define reusable text styles, create interactive messages, and build command workflows with simple YAML configuration.
Cook with Lightning.
Features
Universal MiniMessage Support
Use gradients, hex colors, hover events, and click actions in messages from virtually any plugin, including those limited to legacy color codes.
Server Wide Message Customization
Customize chat, action bars, titles, boss bars, tab lists, scoreboards, menus, items, holograms, dialogs, server list messages, and even ban and kick screens.
Smart Tag Detection
Lightning processes messages containing supported Lightning tags while leaving ordinary text untouched. Commands such as /home <name> remain intact.
Sparks: Reusable Text Components
Create your own tags for prefixes, color schemes, formatted placeholders, dynamic values, rotating tips, and localized messages. Define them once and reuse them throughout your server.
Bolts: Message Actions
Go beyond formatting with tags that trigger actions, including action bar messages, titles, sounds, and message suppression.
Player Head Integration
Use the <face> tag to display a player's own head directly in supported text components.
Rewires: Override Existing Messages
Restyle messages you cannot easily edit through a plugin's configuration, including vanilla server screens and hardcoded plugin messages where supported.
Custom Commands
Create your own commands using YAML. Configure permissions, tab completion, typed arguments, subcommands, cooldowns, execution limits, and configurable actions.
Built-in Configuration Tools
Trace messages back to their source, identify broken tags across plugin configurations, and convert legacy & color codes to MiniMessage with a single action.
Lightweight and Safe
Player supplied text remains plain text rather than being interpreted as formatting instructions. Ordinary messages avoid unnecessary processing, helping keep overhead low.
Configuration Examples
1. MiniMessage in Any Plugin's Configuration
With Lightning installed, supported messages in other plugins' configurations can use MiniMessage formatting.
welcome: "<gradient:#FFE259:#FFA751>Welcome back, %player_name%!</gradient>"
home-set: "<actionbar><green>Home set.<sound:entity.player.levelup>"
balance: "<spark:prefix> You have <spark:balance>"
2. Create Your Own Commands
Define commands, arguments, cooldowns, permissions, and actions directly in YAML.
report:
description: Report a player to staff
sender: player
cooldown: 1m
arguments:
- name: target
type: player
- name: reason
type: text
actions:
- "<spark:prefix> Thanks, staff will look into it."
- broadcast: "<red>Report</red> {player} reported {target}: {reason}"
permission: server.staff
These examples illustrate how Lightning brings formatting, reusable components, and command logic into one configuration driven system.
Requirements
- Paper or Folia, 1.21 or newer
- Java 21
- PlaceholderAPI (optional)
Installation
- Download Lightning and place the JAR in your server's plugins folder.
- Restart your server.
- Configure Lightning and start customizing your messages.
Support
Looking for help with Lightning? You can join the DenizenMC Discord Server or check out the documentation.
Anonymous Statistics
Lightning collects anonymous server statistics through Arrow Stats, an open source statistics service for Minecraft software.
You can opt out by editing plugins/Arrow Stats/config.yml.

评论 0
登录后参与评分
还没有评论,来抢沙发吧