Mods / Newfies Chat Guard

Tags: #QoL #Tweak #Utility
Author: Newfie
Side: Both
Created: Sep 26th at 2:15 AM
Last modified: Nov 10th at 1:16 AM
Downloads: 2270
Follow Unfollow 4

Recommended download (for Vintage Story 1.20.12, 1.21.0, 1.21.1 and 1.21.2 - 1.21.5):
NewfiesChatGuard-V1.0.3.zip  1-click install


Newfie’s Chat Guard

Summary:
Server-side mute + chat filter for Vintage Story. Timed/permanent mutes, offline support, word/regex filtering (block / censor / auto-mute). No client install.

Features

  • Timed & permanent mutes (10m, 2h, 1d, 3w, perm), auto-expire, persist across restarts.

  • Offline targeting by name; stored by UID.

  • Configurable chat filter: word list and regex, actions: block, censor, or auto-mute.

  • Normalization options: case-insensitive, simple leetspeak folding, punctuation stripping.

  • Clear player feedback on attempted chat while muted.

Commands (require privilege newfies.mute)

  • /mute <player> <duration|off> — e.g., 10m, 2h, 1d, 3w, perm, or off/0.

  • /unmute <player> — works for online or offline players.

  • /mutelist — shows active mutes and remaining time.
    Units: s, m (default if omitted), h, d, w.

Configuration

  • Config file: VintagestoryData/ModConfig/NewfiesChatGuard.json (auto-created)

  • Mute store: VintagestoryData/ModConfig/NewfiesChatGuard.mutes.json (auto-managed)

  • Key options:

    • Moderation.EnableBadWordFilter (true/false)

    • Moderation.BannedWords (array of strings)

    • Moderation.BannedRegex (array of regex strings)

    • Moderation.BadWordAction (block | mute | censor)

    • Moderation.AutoMuteDuration (e.g., 15m)

    • Moderation.BadWordNotice (string)

    • Moderation.CaseInsensitive, NormalizeLeetspeak, StripPunctuation (true/false)

Install

  1. Place the zip in your server Mods/ folder.

  2. Restart the server.

  3. Grant the newfies.mute privilege to your moderator group.

Compatibility & Performance

  • Server-side only; clients do not need the mod.

  • Compatible with most chat mods (if multiple consume chat, load order decides).

  • Lightweight: dictionary lookups plus optional regex checks. Keep regex patterns concise.

Troubleshooting

  • “Player not found”: names must match exactly (case-insensitive).

  • Filter too aggressive: switch action to censor, or disable leetspeak/punctuation normalization.

  • Regex not triggering: test regex externally; invalid patterns are safely ignored.

 

Author: Newfie
Tags: server, moderation, chat, mute, filter, regex, SMP, admin, QoL

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.0.3 newfieschatguard
1.21.2 - 1.21.5
48 Sep 29th at 12:58 AM NewfiesChatGuard-V1.0.3.zip 1-click install

 

 

Newfie’s Chat Guard — Mini Changelog

  • Added: /chatguard reload admin command to hot-reload NewfiesChatGuard.json at runtime.
  • Changed: Packaged as server-side only; clients no longer download or install the mod.

  • Impact: No client restarts or updates needed; staff can tweak config and apply changes instantly.

 

1.0.2 newfieschatguard 110 Sep 29th at 12:36 AM NewfiesChatGuard-V1.0.2.zip 1-click install

Newfie’s Chat Guard – Changelog

Summary: Adds a post-mute grace period and a configurable escalation ladder to stop “never-ending” auto-mutes and make punishment scale with repeat violations.

Added

  • Grace Period (Moderation.AutoMuteGraceSeconds – default 45):

    • After a mute expires, violations inside the grace window are blocked but do not re-mute.

    • Prevents the “timer ends → instantly resets” loop.

  • Escalation Ladder (Moderation.Escalation):

    • Rolling window counter (WindowSeconds, default 900).

    • Thresholds choose action per hit (e.g., hit1=block, hit2=mute:15m, hit3=mute:1h).

    • Works on top of your base BadWordAction so you can keep first offenses lighter.

Changed

  • No re-mute while already muted. If a player is currently muted, violations don’t extend/reset the timer; they just receive a remaining-time notice.

  • Cleaner notifications. Auto-mute notice now uses a proper em dash (—) instead of the mis-encoded sequence.

Fixed

  • Auto-mute “timer never ends.” Resolved by adding the grace window + “no re-mute while muted” logic.

  • Encoding glitch in the auto-mute message (—) corrected to .

1.0.1 newfieschatguard 2112 Sep 26th at 2:15 AM Empty NewfiesChatGuard-V1.0.1.zip 1-click install

2 Comments (oldest first | newest first)

💬 Brosonly3, Nov 10th at 1:43 AM

1984

💬 disputedname, Sep 26th at 3:53 PM

Thank you so much for this, very neccesary for actual good moderation of a server, banning everyone who says a naughty word just isn't sustainable but this will allow more nuanced takes on moderation, thanks.

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом