Integrity

Integrity

Make sure the client contains only the mods that the server want when it connects to a server

by
583 Downloads
fabricutility
Rent Server with this Mod

About this Mod

You have created a modpack and a modded server, and you want to make sure that your friend
connects with the right mods, that he has not altered them.
For example, he could delete some of them or add the xray.jar mod. Something you don't want of course.

When you create the modpack and the modded server, you will also have to create
a file called integrity.json, this file will contain the names of the jar files
as well as their respective hash for the mods you put in the original modpack.
This file will have to be copied in the config folder of the server inside the
folder called Integrity (If the Integrity folder doesn't exist, you can start
the server once with the Integrity mod, it will then be created)

concerning the hash of the files, be sure to use the SHA-256 algorithm and that the hash is in lower case

check this video to understand how it works -> https://youtu.be/HDsvAae6k78
also a sample file integrity.json can be found here https://github.com/AmibeSkyfy16/Integrity/blob/master/samples/version%200.0.2/integrity.json

How does it work internally ?

When you connect to the server, you send at the same time data in json format
representing the names of the mods in the modpack and their hashes.
When the server receives the data, it compares it with its own data
from the configuration files (integrity.json). If the data you sent
matches the integrity.json file, then you will be allowed to play
on the server. Otherwise, you will be disconnected.

-------------- OLD DESCRIPTION TO DELETE --------------

This mod allows to check the mods present on the client, when it connects to a server.
The server has a file called modpack-mods-list.json which contains the mods that must be
present on the client (You have to manually configure this either by putting the mods you want the client to have when it connects). When the client connects to the server, the client sends the names
of the .jar files for each mods present in the mods folder. The server then checks if the mods
sent match the list. If it does, the player will not be disconnected.

IMPORTANT: the fileHash has to use the SHA-256 algorithm

check this video to understand how it works -> https://youtu.be/HDsvAae6k78

Available Versions

Integrity 0.0.4+1.20.4release
MC 1.20.4fabric
March 28, 2024
Integrity 0.0.2+1.19.4release
MC 1.19.4fabric
April 26, 2023
Integrity 0.0.1+1.19.4release
MC 1.19.4fabric
April 25, 2023

How to Install Integrity on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.4).

3

Install Mod

Open the mod browser in the dashboard and search for "Integrity". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.4, 1.20.1, 1.19.4

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Integrity server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.4). You can switch loaders with one click in the panel.

Is Integrity compatible with fabric?

Integrity officially supports fabric for Minecraft 1.20.4, 1.20.1, 1.19.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Integrity – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Integrity consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Integrity with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.20.41.20.11.19.4