Modpack Checker
A lightweight Fabric mod for Minecraft servers to verify that clients are using the correct modpack version.
Features
- Disconnection Messages: Ability to set custom helpful disconnection messages
- Reload Command: reload the configuration by using
/modpackchecker-reload - LAN Multiplayer Support: Works with both dedicated servers and LAN multiplayer (can be disabled by setting enabled_lan to false)
- Development Mode: Use version "development" to always allow joining (useful for testing servers)
How It Works
- Server sends a version check during login
- Client replies with the version from
modpack-checker.toml - Server compares it to its expected version
- If mismatched, the player is kicked with a custom message
Configuration
Server (config/modpack-checker.toml):
# Modpack Checker Configuration
# This file contains both server and client configuration
# Modpack version of the server and client, that must match
# version "development" always allows joining
version = "1.0.0"
# Enable or disable modpack version checking
enable_server = true
enable_lan = true
# Kick messages for different scenarios
[messages]
# Message shown when client doesn't have the mod installed
no_mod = "Modpack not installed! \n\n Please install the modpack, version \"{version}\" \n <your-modpack-link>"
# Message shown when client has wrong version (use {version} as placeholder)
wrong_version = "Wrong modpack version installed! \n\n Please install the modpack version \"{version}\" \n <your-modpack-link>"
# Message shown when there's a server configuration error
server_error = "Server configuration error. Please contact an administrator." How to Install Modpack Checker (Mod)
Modpack Checker by TriibuNupsik is verified for Fabric across Minecraft versions 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21 (latest release: 0.4.1+1.20.4, file size: 329 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Modpack Checker file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionAdded
/modpackchecker-reload for reloading configuration.Added optional LAN multiplayer checking support.
## Development Mode (0.0.0)
For development purposes, you can set the client version to "0.0.0". Clients with this version will always be allowed to join any server, regardless of the server's expected version. This is useful when developing modpacks or testing configurations.
2. Only env-specific config is generated now. (client conf on client and server conf on server) [#49d733f](https://github.com/TriibuNupsik/ModpackChecker/commit/49d733f8b191b9ce3563e26862c5aa3c39b23f85)
3. Added Apache-2.0 License [#678fec9](https://github.com/TriibuNupsik/ModpackChecker/commit/678fec929f4249f8e04945887039b84257e4326a)
License: ARR