跳到正文

Pretty Announcer

作者:Raffman180

Pretty announcements at the top of the screen: automatic server restart countdowns, repeating announcements, pictures, an in-game design menu and /announce. Players without the mod still see a boss bar.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Pretty Announcer

Announcements at the top centre of the screen instead of the chat: a see-through panel with an icon, an optional picture, a big countdown and a smooth slide-in animation.

Heads-up: this mod is vibe coded with the help of an AI assistant (Claude) and has only had light testing. Please report bugs in the comments.

Features

  • Automatic restart countdown: set your restart times and warning minutes (default 10 and 5 minutes before) in the config. The colour changes from amber to orange to pulsing red.
  • Regular announcements: repeating tips, rules or news, for example every 30 minutes. OPs can switch each one on/off, edit, add and delete them in the in-game menu.
  • Pictures: put PNG files on the server and show them left, centre or right in any announcement.
  • Design menu: press K to design an announcement (text, colour, icon, picture, duration) with a live preview and send it to everybody.
  • /announce works for everyone, even without the mod: /announce <text>, /announce <title> | <text>, /announce image <file> <left|center|right> <text>.
  • Optional on the client: players without the mod still get a boss bar and a chat line.
  • OP tools: /prettyannouncer test | next | in <minutes> | cancel | who

Install

Put the jar into the mods folder of your Forge 1.20.1 server. For the overlay, the menu and pictures the players need the same version of the mod too.

Config

config/prettyannouncer.toml (restart times, warning minutes, time zone, texts) and config/prettyannouncer-regular.json (regular announcements). Pictures go into config/prettyannouncer/images/ on the server (PNG, max 700 KB, max 1024×1024).

What it does not do

It only announces the restart. Your server panel must do the restart itself at the same times.

License

MIT

Summary (short text under the title):

Pretty announcements at the top of the screen: automatic server restart countdowns, an in-game design menu, /announce and a welcome screen with server rules players have to accept. Players without the mod still see a boss bar.


Pretty Announcer

For NeoForge 1.21.1

Announcements at the top centre of the screen instead of the chat: a see-through panel with an icon, a big countdown and a smooth slide-in animation. New players are greeted with a welcome screen and have to accept your server rules before they can play.

Heads-up: this mod is vibe coded with the help of an AI assistant (Claude) and has only had light testing. Please report bugs in the comments.

Features

  • Welcome screen + server rules: new players see your welcome text and numbered rules. “Accept” only unlocks after they scrolled through all rules, ticked “I have read and understood the rules” and waited a few seconds. “Decline” disconnects them.
  • Nothing happens before accepting: until a player has accepted, they can’t build, use items, attack, chat or use commands (except /rules) and they can’t take damage. OPs are never restricted.
  • Rules changed? Raise rulesVersion in the config and everybody has to accept again. Returning players just get a short “Welcome back” banner.
  • Automatic restart countdown: set your restart times and warning minutes (default 10 and 5 minutes before) in the config. The colour changes from amber to orange to pulsing red.
  • Design menu: press K to design an announcement (title, text, colour, icon, sound, duration) with a live preview and send it to everybody.
  • /announce works for everyone, even without the mod: /announce <text> or /announce <title> | <text>.
  • Optional on the client: players without the mod still get a boss bar and a chat line for announcements, and the rules in chat with clickable [I accept the rules] / [Decline] buttons.
  • OP tools: edit the restart settings in the menu, /prettyannouncer test | next | in <minutes> | cancel | who, /rules reset <players>.

Commands

Command Who What it does
/announce <text> / /announce <title> | <text> configurable (default OPs) Announcement for everybody
/rules everybody Show the welcome screen / rules again
/rules accept / /rules decline everybody Accept or decline the rules (for players without the mod)
/rules reset <players> OP These players have to accept the rules again
/prettyannouncer test [minutes] OP Preview the countdown (only you see it)
/prettyannouncer next OP When is the next restart?
/prettyannouncer in <minutes> / cancel OP Start / stop a countdown by hand
/prettyannouncer who OP Who has the mod and who doesn’t

Install

Put the jar into the mods folder of your NeoForge 1.21.1 server. For the overlay, the menu and the welcome screen, players need the same version of the mod too. Players without it can still join.

Config

config/prettyannouncer.toml on the server:

  • [schedule]: restart times, warning minutes, time zone
  • [announcement], [texts], [custom]: how announcements look, their texts and who may use /announce
  • [welcome]: welcome title and text (%player% = player name), the rules list, requireAcceptance, rulesVersion, restrictUntilAccepted, minReadSeconds, decline message, welcome back banner, colour

Changes are picked up while the server is running.

What it does not do

It only announces the restart. Your server panel must do the restart itself at the same times.

License

MIT

常见问题

Pretty Announcer 支持哪些 Minecraft 版本?

Pretty Announcer 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Pretty Announcer 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Raffman180 的其他作品

查看全部 →