Skip to content

Configuration

Alexander edited this page Oct 6, 2024 · 5 revisions

1. How can I manually implement the condition system in the checks?

The condition system allows players to bypass detection if they have high ping or if the server is experiencing low TPS. If the player meets the condition, they will be detected; otherwise, they won’t be flagged by FoxAddition. This feature is only available in some checks within the checks.yml file, but you can manually add it to any check that has this option:

    # Enable this feature?
    enable:
        java: true
        bedrock: true

If the currently check has this option, you can add under the condition system, like:

    # Enable this feature?
    enable:
        java: true
        bedrock: true
    # Exempts from check if the player don't has the
    # conditions. This feature can prevent false flags
    # from laggy users but ~probably~ can make
    # bypass.
    conditions:
        # Enable conditions to don't detect players
        # for: Bad ping.
        ping:
            # Enable this feature?
            enable: true
            # What is the maxium value to ignore
            # player in case is laggy.
            maxium: 1200
        # Enable conditions to don't detect players
        # for: Bad TPS.
        tps:
            # Enable this feature?
            enable: true
            # What is the minium TPS to starting
            # ignore player.
            minium: 15.0

But, why only in that option? Because like the check mechanics.blockplace, don't has the system of follow conditions to detect. Example:

    invalid:
        # Enable this feature?
        # This apply in both editions.
        enable:
            nan: true
            infinite: true
Clone this wiki locally