EasyAntiCheat
A straightforward and lightweight anti-cheat solution for Forge that grants server administrators complete oversight over client-side mods and resource packs installed by players.
Important Notice
This mod is not designed to counter experienced hackers. Its purpose is to provide basic protection against novice cheaters and simple scripts. It's implemented as a fundamental detection tool rather than a comprehensive defense against all hacking methods.
How It Operates
Upon connecting to the server, the client automatically transmits a complete inventory of installed mods and resource packs. The server cross-references this list with its collected data and records all discrepancies. If the automatic response function is enabled in the configuration settings, the system will take appropriate measures against unauthorized modifications.
Primary Function
The main purpose of this tool is the swift identification of unapproved mods by server staff through the logging system. Since manual monitoring is efficient only on smaller servers, whitelist and blacklist functions are provided. These automate the verification process for popular mods and simplify administrators' workflow.
Configuration Settings
The configuration file is located at ./config/ezac-common.toml. Each setting includes comprehensive comments, making it straightforward to adapt them according to specific requirements.
["Server Configuration"]
# A list of all mods to be added to either the blacklist or whitelist.
mods = []
# A list of all resource packs to be added to either the blacklist or whitelist.
resourcePacks = ["TotallyLegitResourcePack.zip"]
# How should listed mods be handled?
# BLACKLIST — flags all client mods present in the list.
# WHITELIST — flags all client mods absent from the list.
#Allowed Values: BLACKLIST, WHITELIST
mode = "WHITELIST"
# What actions should be taken when prohibited mods are detected?
# NOTIFY — registers flagged mods in the console (and sends notifications to operators).
# RESTRICT — performs the same as NOTIFY but additionally blocks player login with flagged mods.
# BAN — also executes NOTIFY functions but imposes stricter player bans, preventing reconnection until lifted by an operator.
# Only functions when BLACKLIST or WHITELIST mode is selected.
#Allowed Values: NOTIFY, RESTRICT, BAN
action = "RESTRICT"
In the provided example, the WHITELIST mode is used, meaning only mods specified in the mods array are permitted. Since this array is empty, all client-side mods not installed on the server will be flagged. Permitted resource packs are defined in resourcePacks — in this case, only the "TotallyLegitResourcePack.zip" is allowed. The set action RESTRICT prevents players with banned mods from joining but permits re-entry after removing the problematic modifications.
Frequently Asked Questions
Question: Is support planned for other versions/Fabric/NeoForge?
Answer: Currently, no.
Question: Can this mod be included in custom modpacks?
Answer: Yes, absolutely!