Server Announce
A Fabric serverside mod to send chat messages when certain MC server events occur.
介绍
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
常见问题
Server Announce 支持哪些 Minecraft 版本?
Server Announce 支持 Minecraft Java 版 1.18.2–1.21.1,共 6 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Server Announce 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分