All Mods Resource Packs Data Packs Shaders Modpacks Plugins
LANLock

LANLock

by technicfan • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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 o.O).

Features

  • a whitelist similar to the server counterpart
    • stores name and UUID
    • UUID is used to check if connecting player is on the whitelist
  • config screen made with Cloth Config in modmenu for easy configuration
    • automatically resolves UUID for added player names asynchronously
    • option to disable the whitelist entirely
    • option to use names instead of UUIDs for checking (for testing)
  • same options accessible via the client side command /lanlock

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

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric Quilt
1mo ago 1
26.2
Fabric Quilt
4mo ago 1
26.1.x
Fabric Quilt
4mo ago 1
1.21.x
Fabric Quilt
4mo ago 1
1.21.x 1.20.x
Fabric Quilt
4mo ago 1
1.20.x 1.19.x
Fabric Quilt
4mo ago 1
26.1.x
Fabric Quilt
7mo ago 1
26.1
Fabric Quilt
7mo ago 1
1.21.x
Fabric Quilt
7mo ago 1
1.21.x 1.20.x
Fabric Quilt
7mo ago 1
1.20.x 1.19.x
Fabric Quilt
7mo ago 1
1.20.x 1.19.x
Fabric Quilt
8mo ago 1
1.21.x 1.20.x
Fabric Quilt
8mo ago 1
1.21.x
Fabric Quilt
8mo ago 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
[1.3.7] LANLock 1.3.7 by technicfan on Sep 15, 2026
Download
  • 26.3 support
[1.3.7] LANLock 1.3.7 by technicfan on Jun 16, 2026
Download
  • 26.2 support
[1.3.7] LANLock 1.3.7 by technicfan on Jun 16, 2026
Download
  • internal improvements
[1.3.7] LANLock 1.3.7 by technicfan on Jun 16, 2026
Download
  • internal improvements
[1.3.7] LANLock 1.3.7 by technicfan on Jun 16, 2026
Download
  • internal improvements
[1.3.7] LANLock 1.3.7 by technicfan on Jun 16, 2026
Download
  • internal improvements
[1.3.6-2] LANLock 1.3.6 by technicfan on Apr 01, 2026
Download
26.1.1
[1.3.6] LANLock 1.3.6 by technicfan on Mar 26, 2026
Download
  • support 26.1
  • fix two small bugs
[1.3.5] LANLock 1.3.5 by technicfan on Mar 13, 2026
Download
  • use stonecutter to properly support more versions
[1.3.5] LANLock 1.3.5 by technicfan on Mar 13, 2026
Download
  • use stonecutter to properly support more versions
[1.3.5] LANLock 1.3.5 by technicfan on Mar 13, 2026
Download
  • use stonecutter to properly support more versions
[1.3.4] LANLock 1.3.4 by technicfan on Oct 03, 2025
Download
  • adapt for 1.21.9
[1.3.3] LANLock 1.3.3 by technicfan on Jun 10, 2025
Download
  • fix clickable message not working on 1.21.5 due to api changes
[1.3.2] LANLock 1.3.2 by technicfan on Jun 09, 2025
Download
  • fix crash when trying to add a player via the command on a remote server
[1.3.1] LANLock 1.3.1 by technicfan on Jun 08, 2025
Download
  • make /lanlock more similar to the vanilla /whitelist command
  • also resolve player name case
[1.3] LANLock 1.3 by technicfan on Jun 08, 2025
Download
  • added a notification that lets you whitelist players trying to connect to your world
  • to make a clickable button i added commands for every config option

[1.2.4] LANLock 1.2.4 by technicfan on Jun 05, 2025
Download
  • fix again
[1.2.3] LANLock 1.2.3 by technicfan on Jun 05, 2025
Download
  • fix UUID/name mode
[1.2.2] LANLock 1.2.2 by technicfan on Jun 04, 2025
Download
  • cleanup
  • add translations for the config screen
[1.2.1] LANLock 1.2.1 by technicfan on Jun 04, 2025
Download
  • fix name
[1.2] LANLock 1.2 by technicfan on Jun 04, 2025
Download
  • rename from LANWhitelist to LANLock
  • the config is now lanlock.json
[1.1] LANWhitelist 1.1 by technicfan on Jun 04, 2025
Download
  • add option to disable the whitelist (config incompatible with 1.0)
  • code cleanup + optimization
[1.0] LANWhitelist 1.0 by technicfan on Jun 03, 2025
Download
Initial release
LANLock Icon
Download LANLock
Select game version
Select platform