跳到正文

LanOperators

作者:GumPaper

LanOperators ("LanOps") is a simple lightweight mod that allows you to add Ops to your LAN world.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

常见问题

LanOperators 支持哪些 Minecraft 版本?

LanOperators 支持 Minecraft Java 版 26.1.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

LanOperators 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

GumPaper 的其他作品

查看全部 →