integrity

Self defined function

Performs an integrity check by checking if the player's role or rank in the community corresponds with the crux depending on the authType and then returns true. The default value of communityId is the community id setup in the Configuration module.

Parameters

.integrity(
    otherPlayer: Player,
    args: {
        crux: number | string,
        authType: 'rank'? | 'role'?,
        communityId: number?
    }
): boolean