[LP]LanPerm

Lightweight LAN Permission Management轻量级局域网权限管理

10

[LP]LanPerm

####LanPerm —— 轻量级局域网权限管理

LanPerm 是一个简单但强大的 Minecraft 权限控制模组,专为局域网(LAN)联机或小型服务器设计。它允许房主或管理员无需修改任何配置文件,直接在游戏内对特定玩家进行细粒度的权限禁止与恢复。

无论你是想防止朋友不小心破坏建筑、误用指令,还是希望创建一个更有序的联机环境,LanPerm 都能在几秒钟内完成设置。

✨ 主要特性

- 极简设计:指令实时生效,即输即用。 - 极简设计:独立控制 7 类行为,互不干扰。 - 极简设计:一键禁止/恢复某玩家的全部权限。 - 极简设计:随时查看某玩家的权限受限情况。 - 极简设计:纯指令交互,无 GUI,无额外依赖。

📋 指令一览

| 指令 | 说明 | |------|------| | `/lanperm deny <玩家> <权限>` | 禁止该玩家的某个权限 | | `/lanperm deny <玩家> all` | 禁止该玩家的所有权限 | | `/lanperm allow <玩家> <权限>` | 恢复该玩家的某个权限 | | `/lanperm allow <玩家> all` | 恢复该玩家的所有权限 | | `/lanperm check <玩家>` | 查看该玩家的权限状态 | | `/lanperm list` | 列出所有被限制过权限的玩家 | | `/lanperm help` | 显示帮助信息 |

🛡️ 可控权限类型

| 权限 | 对应行为 | |------|----------| | `BUILD` | 放置 / 破坏方块 | | `INTERACT` | 与箱子、门、按钮、拉杆等交互 | | `ATTACK` | 攻击任何实体(生物、玩家等) | | `CHAT` | 发送聊天消息(可配合聊天事件扩展) | | `COMMAND` | 使用任何指令 | | `DROP` | 从物品栏丢弃物品 | | `PICKUP` | 拾取掉落的物品 |

🎯 适用场景

- 与朋友联机时,临时禁止某人的测试,避免熊孩子炸房子。 - 只允许特定玩家测试,防止其他人滥用 `/gamemode` 等。 - 禁止玩家测试测试,实现更公平的冒险。 - 快速测试时,一键禁止所有权限,让玩家只能旁观。

📦 安装与兼容

- 放入 `mods` 文件夹即可(需对应模组加载器,如 Fabric / Forge / NeoForge)。 - 单人游戏或局域网主机有效,无需安装到客户端(仅服务端/主机需要)。 - 支持任何 Minecraft 版本(基于实际构建情况)。

LanPerm —— 让局域网联机更可控、更安心。

---

English

###LanPerm – Lightweight LAN Permission Management

LanPerm is a simple yet powerful permission control mod for Minecraft, designed specifically for LAN games or small servers. It allows the host or admin to deny or restore granular permissions for specific players directly in-game, without editing any config files.

Whether you want to prevent friends from accidentally breaking buildings, misusing commands, or just want a more organized multiplayer experience, LanPerm can be set up in seconds.

✨ Key Features

- Minimalist Design – Commands take effect immediately. - Minimalist Design – Independently manage 7 types of actions. - Minimalist Design – Deny/allow all permissions for a player with one command. - Minimalist Design – Check a player's current permission restrictions at any time. - Minimalist Design – Pure command interface, no GUI, no extra dependencies.

📋 Command List

| Command | Description | |---------|-------------| | `/lanperm deny <player> <permission>` | Deny a specific permission for the player | | `/lanperm deny <player> all` | Deny all permissions for the player | | `/lanperm allow <player> <permission>` | Allow a specific permission for the player | | `/lanperm allow <player> all` | Allow all permissions for the player | | `/lanperm check <player>` | Check the permission status of a player | | `/lanperm list` | List all players who have restricted permissions | | `/lanperm help` | Show help information |

🛡️ Controllable Permission Types

| Permission | Action Controlled | |------------|-------------------| | `BUILD` | Place / break blocks | | `INTERACT` | Interact with chests, doors, buttons, levers, etc. | | `ATTACK` | Attack any entity (mobs, players, etc.) | | `CHAT` | Send chat messages (can be extended with chat events) | | `COMMAND` | Use any command | | `DROP` | Drop items from inventory | | `PICKUP` | Pick up dropped items |

🎯 Use Cases

- Temporarily deny test for a friend in a LAN game to prevent griefing. - Allow only specific players to test, preventing others from abusing `/gamemode` etc. - Deny players from test or test for fairer adventuring. - Quickly test something by denying all permissions, letting a player only spectate.

📦 Installation & Compatibility

- Drop the JAR file into your `mods` folder (requires a mod loader such as Fabric, Forge, or NeoForge). - Works for single-player or LAN hosts – no need to install on clients (only the host/server needs it). - Supports any Minecraft version (based on actual build target).

LanPerm – making LAN games more controllable and worry-free.

ADS