Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for castledking

The ultimate add-on for GriefPrevention 3D Subdivisions

Report GPExpansion?

R

1.2.6

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, or build). 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 by pvp, 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), and mob_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.yml with lock-free reads that skip claim lookups entirely for flags no claim uses.
  • Permissions and GPFlags coexistence: Individual flags check griefprevention.claim.flag.<id>, while griefprevention.claim.flags.bypass (default op) 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 setting claim-flags.enabled: false reverts /claim flags directly 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, or area_desc. When market.allow-gui-purchase is true, 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 to market.max-note-length characters, 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, default true).
  • 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, default true).
  • 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, default true).
  • Virtual container protection: MailboxContainerListener protects 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.Price via Vault, waived by griefprevention.transferclaim.free or griefprevention.transferclaim.others).
  • Validates recipient claim-block balance and maximum claim-slot limits before transferring, matching GriefPrevention3D's /transferclaim <player> confirm rules.
  • On upstream GriefPrevention or servers with player transfers disabled, the button stays visible with lore explaining why transfers are unavailable.
  • Existing guis/claim-options.yml files automatically nudge Teleport, Resize Claim, and Manage Trust left by one slot (19, 21, 23) and place Global Settings (ENDER_CHEST) at slot 25 so it remains in the middle row alongside Transfer Ownership at slot 42.

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) returns Optional<ItemStack> with full item metadata (getIcon continues to return Optional<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 (default 10) 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 a Click to teleport prompt when permitted. Clicking an enabled entry routes through the standard /claim tp pipeline, respecting teleport delay, cooldown, move cancellation, and safe-location checks.
  • Hover-only claim IDs (claim-list.show-id-on-hover): Setting claim-list.show-id-on-hover: true hides 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.yml templates: 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 under claim.list-* in lang.yml.
  • Separate own/trusted and staff teleport permissions: Clicking your own or trusted claims requires claim-list.click-teleport-permission (griefprevention.claimslist.teleport by default), while clicking claims when inspecting another player's /claimlist <player> requires both griefprevention.claimslistother and griefprevention.claimslistother.teleport.
  • Dynamic gpx.admin list and /claim bar tab completion: admin-commands in config.yml now dynamically populates gpx.admin child permissions on startup and /gpx reload (matching player-commands -> gpx.player), and /claim bar mode 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, matching softdepend and 1:1 permissions) and paper-plugin.yml, while registering commands dynamically on CommandMap across both platforms.
  • Self-contained Adventure bridge: Shades and relocates Adventure 5.2.0 under codes.castled.gpexpansion.libs.kyori. On Paper/Purpur/Folia, Mini bridges components directly to the server's native Audience, inventory title, and ItemMeta APIs. On Spigot, Mini.toBungee converts components directly into BungeeCord BaseComponent trees (preserving clickable [CONFIRM] / [EVICT] chat buttons, hover tooltips, and 24-bit #RRGGBB hex colours without Gson schema mismatches) and formats GUI titles/lore with 24-bit §x hex colours.
  • Zero hard Paper bytecode dependencies: Paper-specific events (AsyncChatEvent, WorldGameRuleChangeEvent, PlayerOpenSignEvent) and Spigot's PlayerSignOpenEvent are hooked reflectively through PaperEvents, and WaypointPacketBridge falls back to versioned CraftBukkit CraftPlayer packages 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, and guis/claim-transfer.yml.
  • New data files: claimflags.yml and market.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) and mvn clean test package (paper-api:26.2.build.40-alpha) both succeed and pass all 17 unit tests, including plugin.yml / paper-plugin.yml parity, Spigot BungeeCord click/hex component conversion, interactive /claimlist hover/click/pagination formatting across Paper and Spigot paths, and guis/claim-options.yml layout migration.
  • Verified target/GPExpansion.jar contains zero hard io/papermc/paper bytecode references and zero un-relocated net/kyori classes.

Information

Published
October 31, 2026
0Downloads

Platforms

Paper
Paper
1.20–26.3