javascript/features/abuse/abuse_monitor.js
// |detectorName| with the given level of |certainty|. In-game staff will be informed.
|detectorName| with the given level of |certainty|. In-game staff will be informed.
|detectorName| with the given level of |certainty| . In - game staff will be informed .
reportAbuse(player, detectorName, certainty, evidence) {
        switch (certainty) {
            case AbuseDetector.kFunnyFeeling:
                this.announce_().announceToAdministrators(
                    Message.ABUSE_ADMIN_FUNNY_FEELING, player.name, player.id, detectorName);
                break;
            case AbuseDetector.kSuspected:
                this.announce_().announceToAdministrators(
                    Message.ABUSE_ADMIN_SUSPECTED, player.name, player.id, detectorName);
                break;
            case AbuseDetector.kDetected:
                this.announce_().announceToAdministrators(
                    Message.ABUSE_ADMIN_DETECTED, player.name, player.id, detectorName);
                break;
        }
        if (!server.isTest() && evidence)
            this.database_.storeEvidence({ player, detectorName, certainty, evidence });
    }
reportAbuse ( player , detectorName , certainty , evidence ) { switch ( certainty ) { case AbuseDetector . kFunnyFeeling : this . announce_ ( ) . announceToAdministrators ( Message . ABUSE_ADMIN_FUNNY_FEELING , player . name , player . id , detectorName ) ; break ; case AbuseDetector . kSuspected : this . announce_ ( ) . announceToAdministrators ( Message . ABUSE_ADMIN_SUSPECTED , player . name , player . id , detectorName ) ; break ; case AbuseDetector . kDetected : this . announce_ ( ) . announceToAdministrators ( Message . ABUSE_ADMIN_DETECTED , player . name , player . id , detectorName ) ; break ; } if ( ! server . isTest ( ) && evidence ) this . database_ . storeEvidence ( { player , detectorName , certainty , evidence } ) ; }
|detectorName| with the given level of |certainty|.
|detectorName| with the given level of |certainty| .
// TODO: Implement rate limiting of reports. // TODO: Implement auto-banning and kicking based on |certainty|.