Server Announce
简单、可配置的服务器公告
Server Announce 是一个服务端 Fabric 模组,用于在发生特定的 Minecraft 服务器事件时发送聊天消息。
它基于 Fabric 加载器构建,适用于 Minecraft Java 版的现代版本。
概览
Server Announce 允许你安排未来的消息(可选地重复执行!)
消息文本可以采用与 Minecraft 的 /tellraw 命令相同的格式,因此 "Quoting text like this works" 和 {"text":"Minecraft's built-in JSON format","color":"gold"} 均可使用。
这意味着像 MinecraftJson 这样的 tellraw 生成器也能与 Server Announce 配合使用。
消息类型
SingleMessage - 仅执行一次的消息,在指定的持续时间过后运行。从命令执行后(以及从服务器启动后经过该持续时间)开始计时。
PeriodicSingleMessage - 重复执行的消息,按照指定的持续时间间隔进行。
PeriodicMessageGroup - 一组消息,将在指定的持续时间间隔内循环播放,每个间隔显示一条消息。
新命令
注意:所有命令均以 /serverannounce 开头,且需要 OP 等级 4。
参考:现实生活中的 1 秒相当于 Minecraft 中的 20 个“刻”(tick)。
create
子命令:
periodic_message_group <message_group_name> <period_ticks>
periodic_single_message <message_name> <period_ticks> <message_text>
single_message <message_name> <duration_ticks> <message_text>
edit
子命令:
periodic_message_group <message_group_name> addMessage <message_name> <message_text>
executeAll
这个命令非常简单。立即发送所有已排期的消息,并重置它们的计时器,从当前时间开始重新计时。主要用于辅助测试新添加的消息。
贡献指南
感谢你考虑为 Server Announce 做出贡献!请参阅
Contribution Guidelines。
许可证
Server Announce 是开源软件,遵循 MIT licence 许可协议。
图标致谢
图标由帅气的 @Andrew6rant 慷慨提供。
Server Announce
Simple, Configurable Server Announcements
Server Announce is a serverside Fabric mod to send chat messages when
certain Minecraft server events occur.
It is built on the Fabric mod loader and is available for modern
versions of Minecraft Java Edition.
Overview
Server Announce allows you to schedule messages in the future (optionally recurring!)
Messages Text can be provided in the same format as Minecraft's /tellraw, so "Quoting text like this works", as does {"text":"Minecraft's built-in JSON format","color":"gold"}.
This means that tellraw generators like MinecraftJson will work with Server Announce.
Message Types
SingleMessage - A message that executes once, after the specified duration has elapsed. Runs that long after the command is executed (and after that duration has elapsed from server start)
PeriodicSingleMessage - A message that executes repeatedly, in intervals of the specified duration.
PeriodicMessageGroup - A collection of messages that will by cycled through repeatedly, one message per interval of the specified duration.
New Commands
Note: All commands start with /serverannounce and require OP level 4.
For reference, it takes 20 Minecraft "tick"s to make a real-life second.
create
subcommands:
periodic_message_group <message_group_name> <period_ticks>
periodic_single_message <message_name> <period_ticks> <message_text>
single_message <message_name> <duration_ticks> <message_text>
edit
subcommands:
periodic_message_group <message_group_name> addMessage <message_name> <message_text>
executeAll
This one's pretty simple. Immediately sends out all scheduled messages, and resets their timers, starting at the current time. Primarily intended to aid with testing newly-added messages.
Contributing
Thank you for considering contributing to Server Announce! Please see the
Contribution Guidelines.
Licence
Server Announce is open-sourced software licenced under the MIT licence.
Icon credit!
Icon graciously provided by the fancy fella, @Andrew6rant
评论 0
登录后参与评分
还没有评论,来抢沙发吧