Commit Graph

8 Commits

Author SHA1 Message Date
ecv
860891293f Logging now works in telnet 2025-11-24 16:00:35 +01:00
Claude
c4b8e4395c Add local storage for muted players and serveradmin.xml integration
**MuteStorage (JSON Persistence)**:
- Added persistent storage in CHRANIBotTNG/Data/muted_players.json
- Auto-loads muted players on mod init
- Auto-saves on mute/unmute operations
- Thread-safe file operations
- Simple JSON serialization without external dependencies

**AdminManager (serveradmin.xml Integration)**:
- Reads serveradmin.xml to load admin SteamIDs (permission_level < 1000)
- Auto-discovers serveradmin.xml location in common paths
- Caches admin list in memory for fast permission checks
- Supports /bot reload command to refresh admin list

**Updated Commands (Admin-only)**:
- /bot mute <player> - Now requires admin permission and persists
- /bot unmute <player> - Now requires admin permission and persists
- /bot mutelist - List all muted players (admin-only)
- /bot reload - Reload serveradmin.xml (admin-only)

**Build System**:
- Added System.Xml.dll and System.Xml.Linq.dll references

All features integrate seamlessly with existing codebase structure.
2025-11-24 07:04:40 +00:00
ecv
056ea86566 put the dll in a proper folder 2025-11-23 21:57:15 +01:00
ecv
aa713a093a update damit claude mir nicht immer meinen mod-namen ruiniert. 2025-11-23 20:23:53 +01:00
Claude
6e856a6216 Switch from mcs to csc compiler with nostdlib
Use Roslyn compiler (csc) instead of old mcs to avoid netstandard 2.1 conflicts
2025-11-23 17:51:27 +00:00
Claude
618c3b6c35 Remove unnecessary assembly references from build script
Only reference game-specific DLLs, let Mono provide system libraries
2025-11-23 17:47:08 +00:00
Claude
8cdd933d35 Fix build script and API usage
- Add all required assembly references (mscorlib, netstandard, System.dll, System.Core.dll)
- Use GameManager.ChatMessageServer instead of NetPackageChat
- Use Log.Out (proper 7DTD API) instead of Debug.Log
2025-11-23 17:44:58 +00:00
Claude
8495249cb1 Add build script for command line compilation 2025-11-23 17:19:24 +00:00