用于保护区域并在你的服务器上执行规则的插件!
它允许你创建立方体区域,阻止某些操作(破坏、放置、PvP、刷怪等),授予例外权限,并在进入或退出时执行命令。
环境要求
服务器 -
Paper 1.21+
Wiki:
支持 Discord:
概述
ProtectedArea 是一个由两部分组成的系统:一个 Paper 服务端插件和一个可选的 Fabric 客户端模组。插件负责在服务端处理所有保护逻辑、数据持久化和命令管理。客户端模组则通过需要客户端渲染和物理计算的扩展功能来增强体验。
这两个组件通过自定义插件通道(protectedarea:main)进行通信。当安装了模组的玩家连接到运行了该插件的服务器时,服务器会实时发送区域数据、规则状态和调试信息。在未安装该插件的服务器上,此模组不会执行任何操作。
架构
服务端插件 (Paper)
该插件管理所有受保护的区域,通过 Bukkit 事件监听器强制执行规则,将数据存储为 YAML 文件,并向授权管理员暴露单一命令树 (/area)。它还负责处理插件消息传递,以向客户端发送区域数据。
客户端模组 (Fabric)
该模组从服务器接收区域数据,并提供仅靠服务端无法实现的三种能力:
视觉轮廓 — 在每个区域周围渲染的彩色线框盒
物理屏障 — 客户端碰撞检测,用于强制执行 no_entry(禁止进入)和 no_exit(禁止离开)规则
调试 HUD — 带有实时区域信息的多页叠加层
Plugin to protect areas and enforce rules on your server!
It allows you to create cubic zones, block actions (breaking, placing, PvP, spawns, etc.), grant exceptions, and execute commands when entering or exiting.
Environments
Server -
Paper 1.21+
Wiki:
Support Discord:
Overview
ProtectedArea is a two-component system: a Paper server plugin and an optional Fabric client-side mod. The plugin handles all protection logic, persistence, and command management on the server. The client mod extends the experience with features that require client-side rendering and physics.
The two components communicate over a custom plugin channel (protectedarea:main). When a player with the mod connects to a server running the plugin, the server sends area data, rule states, and debug information in real time. On servers without the plugin, the mod does nothing.
Architecture
Server Plugin (Paper)
The plugin manages all protected areas, enforces rules through Bukkit event listeners, stores data in YAML files, and exposes a single command tree (/area) to authorized administrators. It also handles plugin messaging to send area data to clients.
Client Mod (Fabric)
The mod receives area data from the server and provides three capabilities that cannot be implemented server-side alone:
Visual outlines — colored wireframe boxes rendered around each area
Physical barriers — client-side collision that enforces no_entry and no_exit rules
Debug HUD — a multi-page overlay with real-time area information
评论 0
登录后参与评分
还没有评论,来抢沙发吧