GPExpansion v1.2.6
This release adds a built-in claim flags system that works without GPFlags, a server-wide Claim
Market with remote mailbox gifts and written letters, a GUI flow for GriefPrevention3D claim
ownership transfers, full item/NBT claim icons, interactive /claimlist pagination with hover and click-to-teleport, and full
Spigot support alongside Paper, Purpur, and Folia.
The Maven project version is now 1.2.6. New configuration sections, GUI files, language keys,
and permissions are added to existing installs automatically, and existing guis/claim-options.yml
files migrate their middle-row slots (19, 21, 23, 25) so Global Settings and Transfer
Ownership do not collide.
Built-in Claim Flags
GPExpansion now includes 98 built-in claim flags across three tabs in /claim flags [claimId] (and
Claim Options -> Claim Flags), with no external flag plugin required:
| Tab | Count | What it covers |
|---|---|---|
| Player | 48 | Block break/place/harvest, chests and containers, doors/buttons/plates/beds/anvils, PvP, villager and animal damage, ender pearls, chorus fruit, portals, item drop/pickup, vehicle/hanging placement, plus block, damage, and command filters |
| Mobs & Entities | 18 | Ambient, animal, monster, and water-mob spawning, mob spawn filter, farmland/turtle-egg trampling, TNT/creeper/wither/fireball/end-crystal block damage, animal grief, villager farming, and silverfish infestation |
| Natural | 32 | Crop, bamboo, kelp, sugar cane, and vine growth, grass/mycelium/fire/amethyst spread, ice and snow formation or melting, leaf decay, coral death, farmland drying, and water or lava flowing across claim borders |
- Trust-aware player rules: Each player flag maps to GriefPrevention's trust hierarchy
(
access,container, orbuild). Setting a player flag to Allow lets outsiders perform that action without needing trust; Deny blocks outsiders even when GriefPrevention would normally allow it. Trusted players and claim owners are unaffected, except bypvp, which applies to everyone in the claim. - Whitelist and blacklist filter flags:
block_interact_filter(materials),player_incoming_damage_filter(damage causes),command_usage_filter(commands), andmob_spawn_filter(entity types) let owners switch between whitelist and blacklist mode and add or remove individual entries from the GUI. - Inheritance and defaults: Subdivisions inherit unset flags from their parent claim, and
top-level claims fall back to optional server-wide defaults before leaving normal
GriefPrevention/vanilla rules untouched. Flag data is stored in
claimflags.ymlwith lock-free reads that skip claim lookups entirely for flags no claim uses. - Permissions and GPFlags coexistence: Individual flags check
griefprevention.claim.flag.<id>, whilegriefprevention.claim.flags.bypass(defaultop) bypasses flag restrictions and lets staff edit any flag. When GPFlags is also installed, a button in the top-right corner opens GPFlags' menu, or settingclaim-flags.enabled: falsereverts/claim flagsdirectly to GPFlags.
Claim Market and Unified My Claims
/claim market [search] (standalone /claimmarket [search] or /claimshop [search], plus the
Main Menu Claim Market button) opens a searchable directory of active [Rent], [Sell], and
buyable [Mailbox] listings across the server.
- Browse, filter, and buy from the GUI: Filter listings by All, For Rent, For Sale,
Buyable Mailboxes, or Send Gift / Letter, search by claim name, owner, or note, and sort
by
newest,price_asc,price_desc, orarea_desc. Whenmarket.allow-gui-purchaseistrue, players can rent or buy directly from the GUI and optionally teleport straight to the claim on completion. - Manage your listings (
/claim listed): Owners can open/claim listed [claimId](or click a listing they own) to open the Market Listing Editor, where they can change the price, toggle market visibility, toggle whether shoppers may teleport to inspect the claim, set a custom tagline up tomarket.max-note-lengthcharacters, or unlist a for-sale sign (/claim removelisting). - Unified My Claims filters: My Claims (
OwnedClaimsGUI) now cycles through six views in one menu: Owned Claims, Trusted Claims, Rented Claims, Bought Claims, Mailboxes, and Listed Claims. - Market listings, purchase history, per-mailbox delivery preferences, and unread mail counts are
stored in
market.yml.
Remote Mailbox Gifts and Letters
Sold mailboxes and [Self Mailbox] containers can now receive deliveries remotely through the
Send Gift / Letter view in /claim market:
- Remote item gifts: Clicking a mailbox that accepts mail lets players deposit an item gift
remotely (
griefprevention.claim.market.mail.deposit, defaulttrue). - Written letters: Players can write a message in chat (
market.mail.max-letter-length, 240 characters by default) that arrives inside the mailbox as a signed, dated letter item (griefprevention.claim.market.mail.letter, defaulttrue). - Owner remote access and notifications: Mailbox owners can toggle remote mail acceptance per
mailbox, receive unread-mail notices on join, and remotely open their own mailboxes from My
Claims or Claim Market (
griefprevention.claim.market.mail.open-own, defaulttrue). - Virtual container protection:
MailboxContainerListenerprotects virtual-protocol mailbox containers against explosions and unauthorized breaking, requiring owner break confirmation before removing an active mailbox container and automatically cleaning up market entries when signs are removed.
Claim Ownership Transfer
Claim Options now includes a Transfer Ownership button (slot 42, TRIAL_KEY, falling back
to TRIPWIRE_HOOK on 1.20–1.20.4) for giving a top-level claim to another player on
GriefPrevention3D servers with Claims.TransferClaim.Enabled: true.
- Clicking the button opens a player-name prompt followed by a confirmation menu showing the target
player, claim size, and transfer fee (
Claims.TransferClaim.Pricevia Vault, waived bygriefprevention.transferclaim.freeorgriefprevention.transferclaim.others). - Validates recipient claim-block balance and maximum claim-slot limits before transferring, matching
GriefPrevention3D's
/transferclaim <player> confirmrules. - On upstream GriefPrevention or servers with player transfers disabled, the button stays visible with lore explaining why transfers are unavailable.
- Existing
guis/claim-options.ymlfiles automatically nudge Teleport, Resize Claim, and Manage Trust left by one slot (19, 21, 23) and place Global Settings (ENDER_CHEST) at slot25so it remains in the middle row alongside Transfer Ownership at slot42.
Custom Item and Head Claim Icons
/claim icon [claimId] and the Icon Selection GUI now save the full ItemStack in claimdata.yml
when claim-customization.icons.allow-custom-items is true (the default):
- Custom Model Data, item names/components, Oraxen/ItemsAdder/Nexo items, and player head textures are preserved across My Claims, Global Claim List, Claim Market, and admin claim menus.
- The Icon Selection GUI accepts clicking an item onto the center slot, pressing a hotbar key over it, or shift-clicking from your inventory without consuming the item, and previews the current icon when one is already set.
- Public API:
ClaimMetadataService#getIconItem(String claimId)returnsOptional<ItemStack>with full item metadata (getIconcontinues to returnOptional<Material>).
Interactive /claimlist Pagination and Click Teleport
/claimlist, /claimslist, and /claim list have been reworked with accurate row pagination,
interactive hover/click components on both Paper and Spigot, and customizable layout options:
- Row-accurate pagination:
claim-list.page-size(default10) now counts every displayed claim entry — owned parent claims, owned subdivisions, trusted claims, and trusted subdivisions — instead of paginating only owned parent claims and printing subdivisions and trusted claims afterward. - Hover tooltips and click-to-teleport: Claim IDs and claim names carry hover tooltips showing
the claim ID (
Claim ID: <id>) and aClick to teleportprompt when permitted. Clicking an enabled entry routes through the standard/claim tppipeline, respecting teleport delay, cooldown, move cancellation, and safe-location checks. - Hover-only claim IDs (
claim-list.show-id-on-hover): Settingclaim-list.show-id-on-hover: truehides inline#<id>prefixes (and(Child of #<parent>)suffixes) in the chat list while keeping the claim ID in the claim name's hover tooltip and click-to-teleport on the name. - Dividers, page navigation buttons, and
lang.ymltemplates: Top and bottom dividers (claim-list.show-divider), clickable« Previous/Next »page buttons (claim-list.page-buttons), and all row prefixes, fields, buttons, and hover lines are customizable underclaim.list-*inlang.yml. - Separate own/trusted and staff teleport permissions: Clicking your own or trusted claims
requires
claim-list.click-teleport-permission(griefprevention.claimslist.teleportby default), while clicking claims when inspecting another player's/claimlist <player>requires bothgriefprevention.claimslistotherandgriefprevention.claimslistother.teleport. - Dynamic
gpx.adminlist and/claim bartab completion:admin-commandsinconfig.ymlnow dynamically populatesgpx.adminchild permissions on startup and/gpx reload(matchingplayer-commands->gpx.player), and/claim barmode arguments (own,trusted,both,off) now tab-complete when GriefPrevention3D owns/claim.
Full Spigot Support
GPExpansion now runs natively on Spigot as well as Paper, Purpur, and Folia from the same JAR:
- Dual plugin descriptors: Ships both
plugin.yml(loadbefore: [GriefPrevention],folia-supported: true, matchingsoftdependand 1:1 permissions) andpaper-plugin.yml, while registering commands dynamically onCommandMapacross both platforms. - Self-contained Adventure bridge: Shades and relocates Adventure
5.2.0undercodes.castled.gpexpansion.libs.kyori. On Paper/Purpur/Folia,Minibridges components directly to the server's nativeAudience, inventory title, andItemMetaAPIs. On Spigot,Mini.toBungeeconverts components directly into BungeeCordBaseComponenttrees (preserving clickable[CONFIRM]/[EVICT]chat buttons, hover tooltips, and 24-bit#RRGGBBhex colours without Gson schema mismatches) and formats GUI titles/lore with 24-bit§xhex colours. - Zero hard Paper bytecode dependencies: Paper-specific events (
AsyncChatEvent,WorldGameRuleChangeEvent,PlayerOpenSignEvent) and Spigot'sPlayerSignOpenEventare hooked reflectively throughPaperEvents, andWaypointPacketBridgefalls back to versioned CraftBukkitCraftPlayerpackages on Spigot.
Configuration and Permissions
New config.yml entries, added to existing configs automatically:
claim-list:
show-id: true
show-id-on-hover: false
show-divider: true
click-teleport: true
click-teleport-permission: griefprevention.claimslist.teleport
page-size: 10
page-buttons: true
claim-flags:
enabled: true
deny-message: actionbar
disabled-flags: []
spawn-flags-ignore-reasons:
- CUSTOM
- COMMAND
- SPAWNER_EGG
market:
enabled: true
auto-list-signs: true
allow-gui-purchase: true
allow-teleport: true
default-allow-teleport: true
teleport-after-purchase: true
default-sort: newest
max-note-length: 120
mail:
enabled: true
default-accepts-mail: true
allow-remote-deposit: true
allow-owner-remote-open: true
allow-letters: true
max-letter-length: 240
New commands and permissions:
| Command / Permission | Default | Purpose |
|---|---|---|
/claimmarket [search] (/claimshop) |
griefprevention.claim.market (true) |
Open the Claim Market GUI |
griefprevention.claim.listed |
true |
View and manage your active listings (/claim listed) |
griefprevention.claim.market.buy |
true |
Rent or purchase claims and mailboxes from the Claim Market GUI |
griefprevention.claim.market.teleport |
true |
Teleport to listings that allow market visits |
griefprevention.claim.market.edit |
true |
Edit price, visibility, teleport, and notes on your own listings |
griefprevention.claim.market.mail.deposit |
true |
Remotely deposit gift items into mailboxes |
griefprevention.claim.market.mail.letter |
true |
Send written letters into mailboxes |
griefprevention.claim.market.mail.open-own |
true |
Remotely open your own mailboxes from My Claims or Claim Market |
griefprevention.claim.market.admin |
op |
Edit or remove any player's market listings and mail settings |
griefprevention.claim.flags.bypass |
op |
Bypass built-in claim flags and edit any flag |
griefprevention.claimslist.teleport |
op |
Click-to-teleport to own/trusted claims in /claimlist (/claimslist, /claim list) |
griefprevention.claimslistother.teleport |
op |
Click-to-teleport when viewing another player's /claimlist <player> (with griefprevention.claimslistother) |
griefprevention.sign.create.buy.anywhere |
op |
Place [Buy] signs outside their target claim |
griefprevention.sign.create.mailbox.anywhere |
op |
Place [Mailbox] signs outside the managed claim |
- New GUI configs:
guis/flags.yml,guis/claim-market.yml,guis/listed-claims.yml,guis/market-listing-edit.yml, andguis/claim-transfer.yml. - New data files:
claimflags.ymlandmarket.yml.
Compatibility
Built against GriefPrevention3D 18.2.7, Paper 26.2, and Spigot 1.21.4 (-Pspigot-compat),
with BlueMap API 2.8.0 and Dynmap API 3.8. Compatible with Spigot, Paper, Purpur, and Folia on
Minecraft 1.20–26.3. No manual storage migration is required.
Verification
mvn -Pspigot-compat clean test(spigot-api:1.21.4-R0.1-SNAPSHOT) andmvn clean test package(paper-api:26.2.build.40-alpha) both succeed and pass all 17 unit tests, includingplugin.yml/paper-plugin.ymlparity, Spigot BungeeCord click/hex component conversion, interactive/claimlisthover/click/pagination formatting across Paper and Spigot paths, andguis/claim-options.ymllayout migration.- Verified
target/GPExpansion.jarcontains zero hardio/papermc/paperbytecode references and zero un-relocatednet/kyoriclasses.