HomeJavaModsLANLock
LANLock

Note: This is not needed for e4mc 5.4.0+ as they implemented a whitelist there


LANLock

A few days ago, I stumbled across LANGuard, a mod that achieves the same thing as this one and also contributed to it. As this was my first ever contact with Java and Minecraft Mod Development, I started to work on a new PR but soon noticed that I'm basically rewriting the entire mod. So I thought, it would be better if I just start a fully own mod that uses a different approach to enforce the whitelist. And here we are :)

Also a thanks to Ovilli for creating their mod that is the start of this one.

Reason for this mod

More and more players are using mods like e4mc to make their LAN worlds publicly available. But griefers have noticed this too and as LAN worlds provide no tooling to prevent anyone from joining, this starts to become a risk (see this video). With this mod I tried to recreate the Minecraft Server whitelist system as closely as possible (with my non-existent Java knowledge).

Features

Important

As of version 1.3.5, Cloth Config API is not a hard dependency anymore.

So if you want to configure the mod via Modmenu in a GUI, you need to install both Modmenu and Cloth Config API by yourself.

Technical

Other than LANGuard, LANLock doesn't even allow non whitelisted players to join the server by modifying the connection process with a mixin. So this and the usage of UUIDs differentiate this mod from LANGuard and at least from my understanding of programming should make it more secure.

License

MIT

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more