LAN Whitelist
Developed with inspiration from this video: https://www.youtube.com/watch?v=3tK06u22VQg
This modification enables the activation of whitelist systems in single-player game worlds. You now have the ability to control access to your local network - allowing only trusted friends to join, hopefully preventing any potential griefing.
This functionality becomes particularly useful when combined with mods like e4mc, which allow other players to connect to your world.
Use the standard /whitelist command, which fully matches the vanilla implementation and is intuitive to use.
All data is saved directly in your world folder within the lan-whitelist directory. Two configuration files are stored here: whitelist.json (containing the list of authorized players) and enabled.json (containing the system activation status), since single-player games lack the server.properties file.