LAN Ops
LAN Ops is a lightweight Fabric mod for LAN worlds that lets the host grant command access to specific players without fully opening commands to every guest.
When a singleplayer world is opened to LAN, LAN Ops locks command usage to:
- the LAN host
- players trusted through
/lanop
Untrusted LAN guests are treated as having no command permissions while the world is published to LAN.
Commands
These commands are available to the LAN host in a LAN world. On non-LAN servers, the normal operator check is used for command management.
/lanop <player>
/lanop add <player>
/lanop remove <playerNameOrUuid>
/lanop list
/lanop reload
/unlanop <playerNameOrUuid>
Command Notes
/lanop <player> and /lanop add <player> do the same thing.
/lanop remove and /unlanop remove a trusted player by stored name or UUID.
/lanop list shows all trusted entries currently loaded.
/lanop reload reloads lanops.json from disk.
Config File
LanOps stores its config at:
config/lanops.json
Example:
{
"configuredOwnerUuid": "",
"configuredOwnerName": "",
"trustedPlayers": {
"00000000-0000-0000-0000-000000000000": "ExamplePlayer"
}
}
Config Fields
configuredOwnerUuid: optional override used to recognize the LAN host by UUID.
configuredOwnerName: optional fallback owner name if no owner UUID is set.
trustedPlayers: map of trusted player UUIDs to display names.
In normal use, you can manage trusted players entirely through the in-game commands and let the mod maintain this file for you.