通过租赁告示牌、邮箱等扩展 GriefPrevention 的功能
GPExpansion 为 GriefPrevention 添加了强大的功能,包括租赁告示牌、领地邮箱、全球领地、租赁快照、领地 GUI、告示牌保护等——同时保持自助服务的理念。
还没听说过 GriefPrevention 3D Subdivisions?请在此处获取 这里 以启用邮箱支持。这是一个替换 GriefPrevention jar 的分支版本。
支持的平台
Spigot, Paper, Purpur 和 Folia
需要 GriefPrevention,并可选安装 Vault 以支持经济功能。
可选地,用 GriefPrevention3D 替换 GriefPrevention 以实现无缝邮箱体验(1x1x1 子分区和公共容器信任)。邮箱也可以与常规 GP 配合使用,并且有一个名为 mailbox-protocol: virtual 的配置项,如果您希望允许邮箱堆叠放置,可以使用此项。
功能特性
租赁告示牌
允许领地所有者使用告示牌将他们的领地出租给其他玩家。
- 设置租赁价格和时长
- 租赁开始/到期时自动添加/移除信任
- 支持 Vault 经济、经验值、领地方块数和基于物品的支付方式
- 提供交互式设置向导,使用
/rentclaim 命令
- 租赁快照 – 保存和恢复租客之间的领地状态
手动设置租赁告示牌
出售告示牌
允许领地所有者使用告示牌将他们的领地出售给其他玩家。
- 设置领地价格
- 自动转移领地所有权
- 支持 Vault 经济、经验值、领地方块数和基于物品的支付方式
- 提供交互式设置向导,使用
/sellclaim 命令
手动设置出售告示牌
领地邮箱
为每个领地提供一个邮箱,其他玩家可以向其中存入物品。
- 所有者拥有完全访问权限以取出物品
- 非所有者看到虚拟库存(打开时的快照)
- 更改仅在菜单关闭时保存
- 关闭前可以取回物品(可撤销的存入操作)
- 如果查看期间邮箱已满,物品将被退回
- 点击告示牌时发出箱子打开的声音/动画
- 邮箱接近满载时显示存储警告
- 可通过告示牌购买,价格可配置
- 提供交互式设置向导,使用
/mailbox 命令
创建自用邮箱
向其他玩家出售邮箱
与其他玩家共享邮箱
自用邮箱(即时创建)
- 所有者和租客可以在他们拥有或租用的领地上的容器旁直接放置
[Mailbox] 墙壁告示牌
- 可通过
defaults.max-self-mailboxes-per-claim 配置限制数量
| 协议类型 |
创建的子分区 |
非所有者视图 |
实时更新 |
可堆叠 |
| Real Protocol (真实协议) |
1x1x1 (GP3D) 或 1x1 2D (常规 GP) |
带有公共容器信任的真实箱子 |
是 |
否 |
| Virtual Protocol (虚拟协议) |
无 |
虚拟快照库存 |
否(打开时快照) |
是 |
全球领地
允许将领地列在全球领地列表中,供所有人查看。
- 设置全局属性,如图标、描述、名称、出生点等
- 默认情况下允许用户通过 GUI 传送至全球领地
- 允许
[global] 领地告示牌即时设置出生点并将其列为全球领地
- 简单的
/claim global <true|false> 命令用于管理全球列表状态
告示牌保护
保护您的租赁和邮箱告示牌免受未授权修改。
- 活动租赁期间的告示牌破坏仅限管理员
- 移除告示牌时自动清理
租赁恢复快照
拥有 griefprevention.restoresnapshot 权限的管理员可以保存和恢复租赁的领地方块状态。当租赁或驱逐结束时,领地可以恢复到保存的快照,以便下一位租客看到原始的建造状态。
- 创建 (Create) – 将当前领地方块保存为快照(例如,在挂牌出租前)
- 列表 (List) – 查看特定领地或所有领地的快照
- 恢复 (Restore) – 在驱逐或租赁结束时,最新快照会自动应用
命令
/claim snapshot create [claimId] – 创建快照
/claim snapshot list [claimId|all] – 列出快照
/claim snapshot remove <snapshotId> – 删除快照
领地管理与图形界面
交互式领地管理,支持完全可配置的 GUI:
/claim name <name> - 设置领地名称(支持通过权限使用颜色代码)
/claim desc <description> - 设置领地描述(使用与名称相同的颜色权限)
/claim icon <material> - 为 GUI 显示设置领地图标
/claim spawn - 设置领地的传送出生点
/claim tp [claimId] - 传送到某个领地的出生点
/claim flags [claimId] - 打开领地标志 GUI(GPFlags)
/claim options [claimId] - 打开领地选项 GUI
/claim ban <player> - 禁止玩家进入你的领地
/claim unban <player> - 解除对玩家的禁令
/claim info [claimId] - 查看详细的领地信息
/mailbox - 管理邮箱
/gpx reload - 重新加载配置文件和语言文件
/gpx max - 管理玩家创建告示牌的数量限制
领地 GUI 功能
- 可视化领地地图编辑器 – 通过交互式 GUI 调整大小、分割和管理领地
- 可自定义布局、图标和权限
- 从一个界面传送到领地、查看领地信息并管理设置
- 集成 GPFlags 以进行领地标志管理
可配置的税收系统
可选的领地维护税收系统:
- 按领地方块配置税率
- 多种支付方式(金钱、领地方块、经验值)
- 领地删除前的宽限期
- 通过权限实现税收豁免
CrowBar 定位栏集成
当安装了 Fabric 客户端模组 CrowBar 并与 GPExpansion 一起使用时,领地所有者和受信任的玩家会在定位栏上看到领地航点的领地名称以及领结标记。CrowBar 读取 GPExpansion 发送的相同定位数据,并在每个航点上方渲染可读的名称标签。

- 同时安装 GPExpansion 和 CrowBar 时自动生效——无需额外配置。
- 领地名称会显示在定位栏上的领结航点标记上方。
- 兼容 Minecraft 1.21.6–1.21.11、26.1.x 和 26.2。
文档
告示牌格式、配置、权限和详细指南
全部在这里
支持
- 问题追踪器 - 报告错误或问题
- 讨论区 - 功能请求和问题咨询
- Wiki - 详细文档和指南
- Discord - 加入我们的社区
从源代码构建
git clone https://github.com/castledking/GPExpansion.git
cd GPExpansion
mvn clean install
编译后的 jar 文件将位于 target/ 目录中。
怀着爱心打造,旨在扩展 GriefPrevention ❤️
Extend GriefPrevention with rental signs, mailboxes, and more
GPExpansion adds powerful features to GriefPrevention including rental signs, claim mailboxes, global claims, rental snapshots, claim GUIs, sign protection, and more — all while maintaining the self-service philosophy.
Haven't heard of GriefPrevention 3D Subdivisions? Get it here to enable mailbox support. This is a fork that replaces the GriefPrevention jar.
Supported Platforms
Spigot, Paper, Purpur, and Folia
Requires GriefPrevention and optionally Vault for economy features.
Optionally, replace GriefPrevention with GriefPrevention3D for seamless mailboxes (1x1x1 subdivisions and public container trust). Mailboxes will work with regular GP and there is a config setting called mailbox-protocol: virtual that helps if you want to be able to stack mailboxes on top of each other.
Features
Rental Signs
Allow claim owners to rent out their claims to other players using signs.
- Set rental prices and durations
- Automatic trust/untrust on rental start/expiry
- Supports Vault economy, experience, claim blocks, and item-based payments
- Interactive setup wizard with
/rentclaim command
- Rental Snapshots – Save and restore claim state between renters
Setting up a rental sign manually
Sell Signs
Allow claim owners to sell their claims to other players using signs.
- Set claim prices
- Automatic transfer of ownership of claim
- Supports Vault economy, experience, claim blocks, and item-based payments
- Interactive setup wizard with
/sellclaim command
Setting up a sell sign manually
Claim Mailboxes
Give each claim a mailbox where other players can deposit items.
- Owners have full access to retrieve items
- Non-owners see a virtual inventory (snapshot at open time)
- Changes save only when the menu closes
- Can take back items before closing (reversible deposits)
- Items returned if mailbox fills up while viewing
- Chest opening sound/animation on sign click
- Storage warnings when mailbox is nearly full
- Purchasable via signs with configurable prices
- Interactive setup wizard with
/mailbox command
Creating a self mailbox
Selling a mailbox to other players
Sharing a mailbox with other players
Self Mailboxes (Instant Creation)
- Owners and renters can place
[Mailbox] wall signs directly on containers in claims they own or rent
- Configurable limit via
defaults.max-self-mailboxes-per-claim
| Protocol Type |
Subdivision Created |
Non-Owner View |
Live Updates |
Stackable |
| Real Protocol |
1x1x1 (GP3D) or 1x1 2D (regular GP) |
Real chest with public container trust |
Yes |
No |
| Virtual Protocol |
None |
Virtual snapshot inventory |
No (snapshot at open time) |
Yes |
Global Claims
Allow claims to be listed in a global claim list, viewable to all.
- Set global settings like icon, description, name, spawn point, and more
- Allows users to teleport to global claims via GUI by default
- Allows
[global] claim signs to instantly set spawn and list as global
- Simple
/claim global <true|false> command to manage global listing status
Sign Protection
Protect your rental and mailbox signs from unauthorized modification.
- Admin-only sign breaking for active rentals
- Automatic cleanup on sign removal
Rental Restoration Snapshots
Admins with griefprevention.restoresnapshot can save and restore claim block state for rentals. When a rental or eviction ends, the claim can be restored to a saved snapshot so the next renter sees the original build.
- Create – Save the current claim blocks as a snapshot (e.g., before listing for rent)
- List – View snapshots for a claim or for all claims
- Restore – On eviction or rental end, the latest snapshot is applied automatically
Commands
/claim snapshot create [claimId] – Create a snapshot
/claim snapshot list [claimId|all] – List snapshots
/claim snapshot remove <snapshotId> – Delete a snapshot
Claim Management & GUIs
Interactive claim management with fully configurable GUIs:
/claim name <name> - Set claim name (supports color codes with permissions)
/claim desc <description> - Set claim description (uses same color permissions as name)
/claim icon <material> - Set claim icon for GUI display
/claim spawn - Set the teleport spawn point for your claim
/claim tp [claimId] - Teleport to a claim's spawn point
/claim flags [claimId] - Open the claim flags GUI (GPFlags)
/claim options [claimId] - Open the claim options GUI
/claim ban <player> - Ban players from your claims
/claim unban <player> - Unban players from your claims
/claim info [claimId] - View detailed claim information
/mailbox - Manage your mailboxes
/gpx reload - Reload configuration and language files
/gpx max - Manage player sign creation limits
Claim GUI Features
- Visual claim map editor – Resize, subdivide, and manage claims via interactive GUI
- Customizable layouts, icons, and permissions
- Teleport to claims, view claim info, and manage settings from one interface
- Integration with GPFlags for claim flag management
Configurable Tax System
Optional tax system for claim maintenance:
- Configurable tax rates per claim block
- Multiple payment methods (money, claim blocks, experience)
- Grace periods before claim deletion
- Tax exemptions via permissions
CrowBar Locator Bar Integration
When CrowBar, a Fabric client mod, is installed alongside GPExpansion, claim waypoints display the claim name and a bowtie marker on the locator bar to the claim owner and trusted players. CrowBar reads the same locator data GPExpansion sends and renders readable name tags above each waypoint.

- Works automatically when both GPExpansion and CrowBar are installed — no extra configuration needed.
- Claim names appear above the bowtie waypoint marker on the locator bar.
- Compatible with Minecraft 1.21.6–1.21.11, 26.1.x, and 26.2.
Documentation
Sign formats, configuration, permissions, and detailed guides
All here
Support
- Issue Tracker - Report bugs or problems
- Discussions - Feature requests and questions
- Wiki - Detailed documentation and guides
- Discord - Join our community
Building from Source
git clone https://github.com/castledking/GPExpansion.git
cd GPExpansion
mvn clean install
The compiled jar will be in target/.
Built to extend GriefPrevention with love ❤️
评论 0
登录后参与评分
还没有评论,来抢沙发吧