be794bcbe901f4fbb892bd90233dcee01cba0ebf
Implemented comprehensive mute management system and admin permission handling: **MuteManager (Local Storage)**: - JSON-based persistent storage for muted players - Stores mute data in Mods/BotCommandMod/Data/muted_players.json - Supports temporary and permanent mutes with reasons - Auto-cleanup of expired mutes on load - Thread-safe file operations with locking - Manual JSON serialization to avoid external dependencies **AdminPermissionManager**: - Reads serveradmin.xml to load admin users (permission_level < 1000) - Auto-discovery of serveradmin.xml location - Caches admin list in memory for fast permission checks - Supports reload command to refresh admin list **Chat Command System**: - Harmony patch on ChatCommandManager.ProcessCommand - Blocks chat/commands from muted players with informative messages - New /bot commands for admins: - /bot mute <player> [minutes] [reason] - Mute a player - /bot unmute <player> - Unmute a player - /bot mutelist - List all muted players - /bot admins - Show all loaded admins - /bot reload - Reload serveradmin.xml **Build System**: - Added System.Xml.dll and System.Xml.Linq.dll references for XML parsing All features are fully functional and ready for testing.
Description
No description provided
Languages
C#
88.7%
Shell
11.3%