SomeNotify

插件

· 作者 SomeOneDay

SomeNotify 是一个 Velocity 插件,用于向通过代理连接的所有玩家发送消息。

0 本站下载 0 关注 更新于 8 个月前

最新 1.0.1 · 1.21.11 · Velocity

一键开服(送7天)

SomeNotify

SomeNotify 是一个 Velocity 插件,用于通过代理向所有连接的玩家发送一条消息。

功能

  • 命令 /notify <message>
  • 命令 /notify reload 以重新加载 config.yml
  • 向所有后端服务器上的在线玩家广播
  • 使用 MiniMessage 自定义消息格式
  • 可配置的发件人显示模式:player、custom、console
  • 内置语言支持:ru、en

安装

  1. 下载 jar 文件。
  2. 将 SomeNotify-1.0.0.jar 放入你的 Velocity plugins 文件夹中。
  3. 启动一次 Velocity 以生成配置文件。
  4. 编辑 plugins/SomeNotify/config.yml。
  5. 重启 Velocity。

权限

  • somenotify.notify 允许使用 /notify。
  • somenotify.reload 允许使用 /notify reload。

配置 (config.yml)

language: "ru"
permission: "somenotify.notify"
reload-permission: "somenotify.reload"

message-format: |
  <gray>[<gold>Notify</gold>]</gray>
  <yellow>{sender}</yellow><gray>:</gray>
  <white>{message}</white>

sender-mode: "player"
custom-sender-name: "Administration"
console-name: "Console"

messages:
  ru:
    usage: "<red>Use /notify <message> or /notify reload</red>"
    no-permission: "<red>No permission.</red>"
    empty-message: "<red>Message cannot be empty.</red>"
    sent: "<green>Message sent ({online} players).</green>"
    reload-success: "<green>Config reloaded successfully.</green>"
    reload-failed: "<red>Config reload failed. Check console.</red>"

  en:
    usage: "<red>Usage: /notify <message> or /notify reload</red>"
    no-permission: "<red>You do not have permission to use this command.</red>"
    empty-message: "<red>Message cannot be empty.</red>"
    sent: "<green>Message sent ({online} players).</green>"
    reload-success: "<green>Config reloaded successfully.</green>"
    reload-failed: "<red>Config reload failed. Check console.</red>"

你可以将 messages.ru 中的文本替换为你想要的任何俄语字符串。

占位符

  • {sender} 根据 sender-mode 解析的发件人名称
  • {message} 来自命令参数的消息
  • {online} 收到消息的玩家数量

注意

  • message-format 支持 MiniMessage 标签。
  • language 接受 ru 或 en。任何其他值将回退到 ru。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源