Easy Alert
一个简单且完全可自定义的 Minecraft 服务器提醒插件。输入 /alert Server restarts in 5 minutes,所有玩家都会在屏幕上看到标题形式的提醒。
功能特性
- 自定义命令名称: 可以将其命名为
/alert、/bc、/announce 或其他任何名称,并添加任意数量的别名。它支持像普通命令一样的 Tab 补全。
- 屏幕提醒: 提醒会以标题和副标题的形式显示在屏幕中央,确保不会有人错过聊天栏中的信息。
- MiniMessage 与 HEX 支持: 支持使用 MiniMessage 实现渐变、HEX 颜色以及加粗文本,同时也支持标准的 Minecraft 颜色代码(如
&a、&c 等)。
- 发送前预览: 可以在其他人看到之前,先查看提醒的确切外观。
- Info 命令: 检查你的设置、上一次发送的提醒,以及在线玩家拥有哪些权限。
- 为每个命令分配权限: 仅向工作人员提供他们需要的命令。无法使用的命令对他们不可见。
- 管理员日志: 管理员的所有操作都会保存到日志文件中,每天一个文件。
- 可选声音与冷却时间: 每次提醒附带短促的提示音,并在提醒之间设置等待时间。两者默认均为关闭状态。
配置文件
# Easy Alert - 管理员发送提醒,玩家在屏幕上看到。
# 管理员的操作会保存在 logs 文件夹中。
#
# 命令:
# /alert <message> 发送提醒
# /easyalert help 命令列表
# /easyalert info [player] 设置和权限
# /easyalert preview <text> 仅向你展示
# /easyalert reload 重载配置
#
# 权限:
# easyalert.* 全部权限
# easyalert.admin 所有 /easyalert 命令
# easyalert.use /alert
# easyalert.help /easyalert help
# easyalert.info /easyalert info
# easyalert.info.others /easyalert info <player>
# easyalert.preview /easyalert preview
# easyalert.reload /easyalert reload
# easyalert.see 查看提醒(所有人默认拥有)
# easyalert.colors 提醒中的颜色
# easyalert.bypass 无冷却时间
#
# 管理员(Ops)拥有所有这些权限。要赋予其他玩家或组这些权限,你需要
# 一个权限插件,例如 LuckPerms:https://luckperms.net
#
# 文本格式:MiniMessage, <message> = 提醒文本。
# 修改此处需要重启服务器。
command: alert
# 同一命令的其他名称,例如:
# aliases:
# - announce
# - bc
aliases: []
title: "<#FF5555><bold>Alert"
subtitle: "<white><message>"
# 提醒在屏幕上停留的时间。
seconds: 4
# 随提醒播放短促的提示音。
sound: false
# 管理员在两次提醒之间的等待秒数,0 表示无等待。easyalert.bypass 可跳过此限制。
cooldown: 0
权限
# Easy Alert 中的所有权限
easyalert.*
# 所有 /easyalert 命令(help, info, info <player>, preview, reload)
easyalert.admin
# /alert <message>
easyalert.use
# /easyalert help
easyalert.help
# /easyalert info
easyalert.info
# /easyalert info <player>
easyalert.info.others
# /easyalert preview <message>
easyalert.preview
# /easyalert reload
easyalert.reload
# 非命令权限 —— 允许玩家查看提醒。默认情况下所有人都有此权限
easyalert.see
# 非命令权限 —— 允许玩家在提醒文本中使用颜色和格式
easyalert.colors
# 非命令权限 —— 跳过提醒之间的冷却时间
easyalert.bypass
管理员拥有所有权限。若要赋予其他玩家或用户组这些权限,你需要使用类似 LuckPerms 的权限插件。
命令
提醒 (Alert)
/alert <message>
将消息作为标题显示在所有在线玩家的屏幕上。
例如:
/alert <gradient:#FF5555:#FFAA00>Server restarts in 5 minutes</gradient>
命令名称及其别名在 config.yml 中设置。不带消息运行该命令会显示用法说明。
权限: easyalert.use
帮助 (Help)
/easyalert help
列出你有权使用的 Easy Alert 命令。点击某行可将该命令填入聊天框。
权限: easyalert.help
信息 (Info)
/easyalert info
显示插件版本、提醒命令及其别名、标题在屏幕上停留的时间、声音和冷却时间是否开启、有多少在线玩家可以查看提醒、上一次提醒及其发送者,以及你自己的权限 ✔ / ✘ 列表。
权限: easyalert.info
玩家信息 (Info Player)
/easyalert info <player>
显示另一个在线玩家的相同权限列表。当有人声称看不到提醒时,这非常有用。
权限: easyalert.info.others
预览 (Preview)
/easyalert preview <message>
仅向命令发送者展示提醒,以便你可以在不刷屏的情况下测试颜色效果。
权限: easyalert.preview
重载 (Reload)
/easyalert reload
无需重启服务器即可重新加载 config.yml。如果文件存在错误,将保留旧设置并收到相关提示信息。
新的命令名称或新的别名仅在重启后生效。
权限: easyalert.reload
占位符
<message> — 命令后输入的文本。适用于 title 和 subtitle。
颜色
- MiniMessage:
<red>, <bold>, <gradient:#FF5555:#FFAA00>Alert</gradient> (完整格式)
- HEX:
<#55FF7F>
- 替代 HEX:
#55FF7F 或 7FF7F
- Minecraft 颜色:
&a, &c, &l 等。
提醒文本本身的颜色需要 easyalert.colors 权限。如果没有此权限,文本将按原样显示。
隐藏提醒
默认情况下,每个玩家都拥有以下权限:
easyalert.see
移除该权限后,该玩家将不再看到提醒。例如,使用 LuckPerms:
/lp user Steve permission set easyalert.see false
这就是整个插件的全部内容,祝服务器运营顺利!
Easy Alert
A simple and fully customizable alert plugin for Minecraft servers. Type /alert Server restarts in 5 minutes and every player sees it as a title on their screen.
Features
- Custom Command Name: Call it
/alert, /bc, /announce or anything else, and add as many aliases as you like. It tab-completes like any normal command.
- On-Screen Alerts: The alert shows up as a title and subtitle in the middle of the screen, so nobody misses it in chat.
- MiniMessage & HEX Support: Gradients, HEX colors and bold text with MiniMessage, as well as standard Minecraft color codes (
&a, &c, etc.).
- Preview Before Sending: See exactly how an alert looks before anyone else does.
- Info Command: Check your settings, the last alert, and which permissions any online player has.
- A Permission for Every Command: Give your staff only the commands they need. Commands they can't use don't even show up for them.
- Admin Logs: Everything admins do is saved to a log file, one file per day.
- Optional Sound & Cooldown: A short ping with every alert, and a wait time between alerts. Both are off by default.
Config
# Easy Alert - admins send an alert, players see it on screen.
# Admin actions are saved in the logs folder.
#
# Commands:
# /alert <message> send an alert
# /easyalert help command list
# /easyalert info [player] settings and permissions
# /easyalert preview <text> show only to you
# /easyalert reload reload config
#
# Permissions:
# easyalert.* everything
# easyalert.admin all /easyalert commands
# easyalert.use /alert
# easyalert.help /easyalert help
# easyalert.info /easyalert info
# easyalert.info.others /easyalert info <player>
# easyalert.preview /easyalert preview
# easyalert.reload /easyalert reload
# easyalert.see see alerts (everyone)
# easyalert.colors colors in alerts
# easyalert.bypass no cooldown
#
# Ops have all of them. To give them to other players or groups you need
# a permissions plugin, for example LuckPerms: https://luckperms.net
#
# Text: MiniMessage, <message> = the alert text.
# A change here needs a restart.
command: alert
# More names for the same command, for example:
# aliases:
# - announce
# - bc
aliases: []
title: "<#FF5555><bold>Alert"
subtitle: "<white><message>"
# How long it stays on screen.
seconds: 4
# Plays a short ping with the alert.
sound: false
# Seconds an admin waits between alerts, 0 for no wait. easyalert.bypass skips it.
cooldown: 0
Permissions
# Everything in Easy Alert
easyalert.*
# Every /easyalert command (help, info, info <player>, preview, reload)
easyalert.admin
# /alert <message>
easyalert.use
# /easyalert help
easyalert.help
# /easyalert info
easyalert.info
# /easyalert info <player>
easyalert.info.others
# /easyalert preview <message>
easyalert.preview
# /easyalert reload
easyalert.reload
# Not a command - lets a player see alerts. Everyone has it by default
easyalert.see
# Not a command - lets a player use colors and formatting in the alert text
easyalert.colors
# Not a command - skips the cooldown between alerts
easyalert.bypass
Ops have every permission. To give them to other players or groups, you need a permissions plugin such as LuckPerms.
Commands
Alert
/alert <message>
Shows the message as a title on the screen of every online player.
For example:
/alert <gradient:#FF5555:#FFAA00>Server restarts in 5 minutes</gradient>
The command name and its aliases are set in config.yml. Running the command without a message shows how to use it.
Permission: easyalert.use
Help
/easyalert help
Lists the Easy Alert commands you are allowed to use. Click a line to put the command in your chat box.
Permission: easyalert.help
Info
/easyalert info
Shows the plugin version, the alert command and its aliases, how long the title stays on screen, whether the sound and the cooldown are on, how many online players can see alerts, the last alert and who sent it, and a ✔ / ✘ list of your own permissions.
Permission: easyalert.info
Info Player
/easyalert info <player>
Shows the same permission list for another online player. This is useful when someone says they don't see alerts.
Permission: easyalert.info.others
Preview
/easyalert preview <message>
Shows the alert only to the command sender, so you can try out colors without spamming online players.
Permission: easyalert.preview
Reload
/easyalert reload
Reloads config.yml without restarting the server. If the file has a mistake, the old settings are kept and you get a message about it.
A new command name or new aliases only take effect after a restart.
Permission: easyalert.reload
Placeholders
<message> — The text typed after the command. Works in title and subtitle.
Colors
- MiniMessage:
<red>, <bold>, <gradient:#FF5555:#FFAA00>Alert</gradient> (full format)
- HEX:
<#55FF7F>
- Alternative HEX:
#55FF7F or 7FF7F
- Minecraft Colors:
&a, &c, &l, etc.
Colors in the alert text itself need the easyalert.colors permission. Without it, the text is shown exactly as typed.
Hide Alerts
Every player has the following permission by default:
easyalert.see
Take it away and that player won't see alerts anymore. For example, with LuckPerms:
/lp user Steve permission set easyalert.see false
That's pretty much the whole plugin, good luck with the server!
评论 0
登录后参与评分
还没有评论,来抢沙发吧