Download Config Comparator — Minecraft Mods — MetaMods

Config Comparator

Active

Downloads

0

Last update

3 years ago
Client
Fabric
Quilt
Forge
Neoforge
Utils

ConfigComparator

Managing a modded server and want to prevent cheating through player configuration file editing? ConfigComparator solves this problem. The mod creates SHA-1 hash sums of files on both server and client sides, then compares them. When discrepancies are detected, the server takes appropriate action.

Configuration

The mod's configuration file is located at config/configcomparator-common.toml and is used only on the server side.

Main configuration parameters:

  • timeout = 30000
  • files = []
  • action = "KICK"
  • algorithm = "MD5"

The key configuration element is the files parameter, containing paths to files that need to be checked for consistency.

By default, the action is set to KICK - the player will be disconnected from the server if files don't match. The WARN_ADMIN option notifies server operators in-game, while LOG only records information to the console.

The timeout parameter defines the waiting time before disconnecting a client that fails to send its hash sum.

algorithm specifies the file hashing algorithm.

Important Note

The mod assumes that all files in the files list are readable text files. Working with binary files may be unstable.

Project members
NorthWestWindNWW

NorthWestWindNWW

Created: 17 Oct 2022

ID: 28099