A Minecraft Fabric mod that connects the game with ATProtocol ⛏️
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: enhance security auditor with sync preference logging

- Add logSyncPreferenceChange() for sync preference updates
- Add logSecurityEvent() for generic security event logging
- Track all data types toggled (stats, sessions, achievements, server status)
- Audit log includes player name and UUID for traceability

+20
+20
src/main/kotlin/com/jollywhoppers/security/SecurityAuditor.kt
··· 65 65 } 66 66 log("SYNC_CONSENT_CHANGE", uuid, "Player $playerName changed sync consent:$changes", null) 67 67 } 68 + 69 + fun logSyncPreferenceChange( 70 + playerId: UUID, 71 + playerName: String, 72 + stats: Boolean, 73 + sessions: Boolean, 74 + achievements: Boolean, 75 + serverStatus: Boolean, 76 + ) { 77 + log( 78 + "SYNC_PREFERENCE_UPDATE", 79 + playerId, 80 + "Player $playerName updated sync preferences: stats=$stats sessions=$sessions achievements=$achievements serverStatus=$serverStatus", 81 + null 82 + ) 83 + } 84 + 85 + fun logSecurityEvent(eventType: String, uuid: UUID?, message: String) { 86 + log(eventType, uuid, message, null) 87 + } 68 88 69 89 private fun log(event: String, uuid: UUID?, message: String, ip: String?) { 70 90 if (!initialized) {