A lightweight Fabric mod for Minecraft servers to verify that clients are using the correct modpack version.
- Lightweight Version Checking: Simple version-based verification instead of complex modlist comparison
- Easy Configuration: Simple TOML files for server and client configuration
- Automatic Disconnection: Players with incorrect versions are automatically disconnected with helpful messages
- Vanilla Reload Integration: Configuration reloads automatically when using vanilla's
/reloadcommand - Development Mode: Use version "0.0.0" to always allow joining (useful for development)
- Install the mod on your server
- The configuration file will be automatically created at
config/modpack-checker-server.toml - Edit the configuration file to set your desired settings
- Use
/reloadto apply configuration changes
- Include this mod in your modpack
- The configuration file will be automatically created at
config/modpack-checker-client.toml - Edit the configuration file to set the current modpack version
- Distribute the modpack to your players
# Modpack Checker Server Configuration
# Enable or disable modpack version checking
enable = true
# Expected modpack version that clients must have
expected_version = "1.0.0"
# Kick messages for different scenarios
[messages]
# Message shown when client doesn't have the mod installed
no_mod = "Please install the Modpack: <your-modpack-link>"
# Message shown when client has wrong version (use {version} as placeholder)
wrong_version = "Please install modpack version {version}: <your-modpack-link+version>"
# Message shown when there's a server configuration error
server_error = "Server configuration error. Please contact an administrator." # Modpack Checker Client Configuration
# Current modpack version - this should match the server's expected version
# Use "0.0.0" for development (always allows joining)
version = "1.0.0"- When a player connects, the server sends a version check request
- If the client has the mod installed, it reads its configuration file and sends the version back
- The server compares the client's version with the expected version from its configuration
- If versions don't match (and client doesn't have dev version "0.0.0"), the player is disconnected with a helpful message
The mod automatically reloads its configuration when you use the vanilla /reload command. This allows you to change settings without restarting the server.
- No Mod: "Please install the ModpackChecker mod: https://triibu.tech/minecraft"
- Wrong Version: "Please install modpack version X.X.X: https://triibu.tech/minecraft"
- Server Error: "Server configuration error. Please contact an administrator."
enable- Enable or disable version checking (true/false)expected_version- The version that clients must havemessages.no_mod- Message shown when client doesn't have the modmessages.wrong_version- Message shown when client has wrong version (use {version} placeholder)messages.server_error- Message shown for server configuration errors
version- The current modpack version (use "0.0.0" for development mode)
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.
The mod automatically detects singleplayer environments and disables version checking to avoid interfering with local gameplay.
- Uses Fabric's login networking for lightweight version verification
- No complex modlist comparison or checksum calculations
- Minimal network overhead
- Compatible with Fabric API 0.96.0+ for Minecraft 1.21.1
- Configuration files are automatically created with sensible defaults
- Uses night-config:toml (Licensed under LGPL) for robust TOML configuration parsing
- Environment-aware: Only generates and loads appropriate config files for the current environment