LANLock

Quick rating

LANLock

No reviews yet

a whitelist for LAN worlds e.g. when opening them to the public with e4mc

Mod Loaders
Fabric
Quilt
Minecraft
26.2

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.3.7
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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

  • 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

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~17,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works