Mod Detector Plugin
Monitors plugin message channels to detect client mods and optionally kick players using blocked mods.
314
1
Список изменений
Added
-
Session Tracking
- Tracks
totalTimePlayedSecondsacross all sessions - Records
sessionCountfor each player - Maintains
sessionsarray with join/leave times and duration for each session
- Tracks
-
Clickable Player Names
- Player names in
/md playersare now clickable - Click to run
/md info <player>automatically - Hover text shows "Click to view channels"
- Player names in
Changed
-
Simplified Action Config
- Replaced
action: kick/log/bothwith simplekick: true/false - Detections are now ALWAYS logged regardless of kick setting
- Cleaner config, same functionality
- Replaced
-
Smarter Detection Logging
- Only creates new JSON entry when player's modlist changes
- Returning players with same mods just add session info to existing entry
- Reduces file size and improves readability
-
Separated Mods and Channels
modsfield now contains resolved mod names (e.g., "Simple Voice Chat")channelsfield now only contains unrecognized/unknown channels/md infocommand updated to show both sections separately
-
Internal Improvements
- Replaced manual JSON parsing with Gson library
- Atomic file writes (write to .tmp, then move) prevents corruption
- Batched I/O with 30-second flush interval reduces disk writes
- Memory cleanup task removes stale player data every 5 minutes
- Proper shutdown handling ensures pending writes are flushed
Fixed
- Console no longer shows
TextComponentImpl{...}blobs for admin notifications
Example Detection Entry
{
"uuid": "f999e944-a15d-4287-bff4-34f63a97832e",
"username": "PlayerName",
"mods": ["Simple Voice Chat", "Noxesium", "AppleSkin", "Fabric API"],
"channels": ["civ:handshake", "civ:class_xp"],
"firstSeen": "2026-01-16T17:28:01Z",
"lastSeen": "2026-01-16T17:32:04Z",
"totalTimePlayedSeconds": 243,
"sessionCount": 2,
"sessions": [
{"joinTime": "2026-01-16T17:27:59Z", "leaveTime": "2026-01-16T17:28:01Z", "durationSeconds": 2},
{"joinTime": "2026-01-16T17:29:20Z", "leaveTime": "2026-01-16T17:32:04Z", "durationSeconds": 241}
]
}
Файлы
moddetectorplugin-1.2.1.jar(30.77 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.2.1
Загрузчики
Paper
Версии игры
1.21–1.21.11
Загрузок
11
Дата публикации
2 мес. назад