U

Rebirth Claims - Complete Feature Specification (v1.0)

Plugin Name: Rebirth Claims Developer: ItzMeTechu Platform: Purpur/Paper 1.21.11+ Java: 21 Storage: YAML (SQLite/MySQL optional in future) Goal: A modern, lightweight, production-ready land protection plugin designed for UNDERWORLD Rebirth with high performance, intuitive gameplay, and extensive customization.

---

Core Philosophy

Rebirth Claims is designed to be simple for new players while providing powerful management tools for experienced players and server administrators.

The plugin focuses on:

Easy land claiming

Strong grief protection

High performance

Fully configurable behavior

Modern INVENTORY GUI

Extensive API

Deep integrations

Minimal server impact

---

Claim Creation

Players receive a configurable Claim Tool.

Default:

Wooden Shovel

Claim Process:

  1. Left-click first corner.
  1. Right-click opposite corner.
  1. A temporary particle border appears.
  1. The player receives a live preview of the claim size.
  1. The plugin calculates:

Width

Length

Total area

Required Rebirth Blocks

  1. If enough Rebirth Blocks are available:

Claim is created instantly.

  1. If not:

Creation is cancelled with an explanation.

Players can also create claims using commands.

---

Claim Visualization

Instead of holograms, the plugin uses visual effects only.

When selecting or viewing a claim:

Corner particles

Border particles

Vertical particle pillars

Animated border pulse

Height indicators

Different particle colors depending on ownership

Example colors:

Own Claim

Purple

Trusted Claim

Blue

Admin Claim

Red

Wilderness

Gray

Players can disable particle previews if desired.

---

Claim Sizes

Server owners can configure:

Minimum width

Minimum length

Maximum width

Maximum length

Maximum area

Maximum claims

Claim depth

Claim height

Supports:

Full world height

Custom height

Automatic bedrock-to-build-limit protection

---

Rebirth Blocks

Rebirth Blocks replace traditional Claim Blocks.

Players earn them from:

Quests

Daily Rewards

Weekly Rewards

Vote Rewards

Crates

Events

Shops

Admin Rewards

Battle Pass

Achievements

Custom Plugins

Discord Rewards

Administrators can:

Give

Remove

Reset

Transfer

---

Claim Information

Every claim stores:

Claim ID

Owner UUID

Owner Name

World

Coordinates

Width

Length

Area

Creation Date

Last Active Date

Trusted Players

Flags

Member Count

Upgrade Level

Total Rebirth Blocks Used

---

Trust System

Permission levels:

Build Trust

Can:

Place blocks

Break blocks

Cannot:

Edit claim settings

---

Container Trust

Can:

Open chests

Open barrels

Use hoppers

Use furnaces

Use brewing stands

Cannot:

Modify permissions

---

Access Trust

Can:

Open doors

Use buttons

Use pressure plates

Use trapdoors

Use gates

---

Management Trust

Can:

Invite members

Remove members

Modify flags

Resize claim

Transfer ownership (if permitted)

---

Temporary Trust

Supports:

Minutes

Hours

Days

Automatically expires.

---

Group Trust

Supports:

Teams

Guilds

LuckPerms Groups

---

Claim Flags

Every claim supports configurable flags.

Protection:

PvP

TNT

Creeper Explosion

Ghast Explosion

Wither Damage

End Crystal Damage

Fire Spread

Lava Flow

Water Flow

Frost Walker

Mob Control:

Passive Mob Spawn

Hostile Mob Spawn

Villager Breeding

Animal Damage

Player Actions:

Item Pickup

Item Drop

Teleport

Elytra Flight

Fishing

Vehicle Usage

Ender Pearls

Blocks:

Redstone

Pistons

Doors

Fence Gates

Trapdoors

Buttons

Levers

Pressure Plates

Note Blocks

Bells

Containers:

Chests

Barrels

Furnaces

Blast Furnaces

Smokers

Brewing Stands

Hoppers

Shulker Boxes

Misc:

Beacon Usage

Campfires

Beds

Respawn Anchors

Jukeboxes

Lecterns

Armor Stands

Item Frames

Glow Item Frames

Paintings

---

Claim Upgrades

Upgradeable claims.

Examples:

Level 1

Base Claim

Level 2

More claim area

Level 3

More trusted members

Level 4

More flags

Level 5

Extra settings

Level 6

Unlimited visitors

Everything configurable.

---

Public Claims

Players may enable:

Public Visit

Public Containers

Public Building

Public Redstone

Public Farms

Useful for:

Shops

Cities

Community Farms

---

Admin Claims

Special claims:

Unlimited size

Cannot expire

Cannot be deleted accidentally

Highest protection priority

Ignore player limits

Perfect for:

Spawn

Shops

Event Areas

War Zones

Server Buildings

---

Wilderness Protection

Server owner may configure:

Spawn protection radius

Lava restrictions

Water restrictions

Fire restrictions

TNT restrictions

Crystal restrictions

Mob griefing

Tree protection

---

Automatic Claims

Optional automatic protection.

Trigger options:

First Chest

First Furnace

First Bed

First Barrel

First Crafting Table

First Animal Pen

---

Claim Resizing

Players can:

Expand

Shrink

Move corners

Merge claims

Split claims

Preview always shown before confirming.

---

Claim Inspection

Inspection mode displays:

Owner

Area

Claim ID

Trusted players

Flags

Rebirth Blocks used

Remaining Rebirth Blocks

---

Claim Logs

Every action is logged.

Examples:

Block placed

Block broken

Chest opened

Chest looted

Item inserted

Item removed

Trust added

Trust removed

Flag modified

Claim resized

Claim deleted

Claim transferred

Admins can inspect logs instantly.

---

Performance

Optimized for large servers.

Features:

Region-based lookup

Cached claims

Async saving

Auto cleanup

Memory optimization

Fast claim detection

Low TPS impact

Automatic backups

---

Integrations

Supports:

PlaceholderAPI

LuckPerms

Vault

BlueMap

Dynmap

DiscordSRV

WorldEdit

WorldGuard

Multiverse-Core

DecentHolograms (optional compatibility only, no required holograms)

Geyser

Floodgate

---

API

Developer API:

Create Claims

Delete Claims

Resize Claims

Add Trust

Remove Trust

Get Claim

Claim Events

Flag API

Custom Flag API

Rebirth Block API

Placeholder Expansion

---

Configuration

Fully configurable:

Messages

Sounds

Particles

INVENTORY GUI

Commands

Permissions

Economy

Claim Tool

Flags

Limits

Upgrades

Rewards

Colors

Borders

Integrations

No recompilation required.

---

Unique Rebirth Claims Features

Rebirth Blocks progression system

Animated particle claim borders

Advanced claim upgrade system

Team and guild shared claims

Visitor mode with configurable permissions

Temporary event claims

Daily and weekly claim rewards

Claim achievements and milestones

Claim merge and split tools

Claim templates for repeated layouts

Automatic inactive-claim cleanup

Full audit logging

Multi-world support

Multi-language support

Production-ready API

Optimized for servers with thousands of claims

Lightweight architecture designed specifically for Purpur/Paper 1.21.11 servers

Kodari AI
KodariAug 2 at 4:30 am 1

I can build Rebirth Claims, but the specification covers a complete multi-phase plugin. To start implementation, choose the first milestone:

  1. Core claiming MVP — claim tool, corner selection, Rebirth Blocks, YAML storage, claim protection, visualization, and basic commands.

  2. Trust and flags — permission levels, temporary trust, containers, doors, redstone, explosions, and configurable flags.

  3. GUI management — modern inventory menus for claim info, members, flags, resizing, upgrades, and deletion.

  4. Advanced systems — upgrades, public/admin claims, automatic claims, merge/split, logs, rewards, templates, and integrations.

If no preference is given, I’ll begin with Milestone 1 and structure the code so the remaining systems can be added without redesigning the claim model.

U

Start with milestone 1

Kodari AI
KodariAug 2 at 4:39 am 10
  1. Inspect the existing plugin structure and build configuration.

  2. Implement the Milestone 1 claim model, YAML persistence, Rebirth Blocks, commands, tool selection, visualization, and core protection.

  3. Register listeners/commands and add the required configurable resources.

Milestone 1 is already scaffolded in the repository. I’m tightening the implementation rather than duplicating it: fixing height-bound persistence/preview behavior, making the claim tool configurable and obtainable, and closing the most important protection bypasses.

Implemented Milestone 1 foundation for Rebirth Claims:

  • Added configurable claim tool settings under claim.tool.

  • /claim now gives the configured claim tool.

  • Added configurable claim height bounds with YAML persistence.

  • Claim lookup now respects Y-level protection boundaries.

  • Fixed selection preview Y-coordinate ordering.

  • Added bucket empty/fill protection.

  • Added piston protection.

  • Added armor stand, item frame, glow item frame, and painting interaction protection.

  • Added hanging entity break protection.

  • Fixed console execution of player-only commands.

  • Added claim-tool messages.

  • Preserved chunk-indexed claim lookup and asynchronous YAML saving.

The existing system already includes:

  • Wooden shovel corner selection.

  • Live block-cost calculation.

  • Rebirth Blocks balance and deduction.

  • Claim overlap and world-border validation.

  • YAML claim/block storage.

  • Claim visualization.

  • Basic trust levels.

  • Block, container, door, button, PvP, explosion, and fluid protection.

  • Claim management commands and GUI.

U

Rebirth Claims – Claim Resizing System Specification

Overview

The claim resizing system must behave almost identically to GriefPrevention while using the Rebirth Claims branding. Players resize existing claims using the Claim Tool (default: Wooden Shovel, configurable).

---

Enter Resize Mode

A player enters resize mode by using:

/claim resize

or by right-clicking one of their existing claim corners with the Claim Tool (configurable).

When resize mode starts:

  • The current claim border is visualized.
  • Every corner becomes visible.
  • Corner markers remain visible until resizing is completed or cancelled.
  • The player receives:

You are now resizing your claim.

Left-click a corner to move.

Right-click to confirm the new corner.

Sneak + Right-click to cancel.

---

Corner Selection

When the player left-clicks a claim corner:

  • Detect the nearest existing corner.
  • Select that corner as the active resize corner.
  • Replace the visualization marker with a highlighted marker.

Example marker:

  • Normal Corner → Gold Block
  • Selected Corner → Diamond Block
  • Active Corner Particle → Purple Dust

Display:

Corner #1 Selected Move to the new position and right-click to confirm.

Play:

  • Experience Orb Pickup sound
  • Purple particles

---

First Corner Marker

Immediately after selecting the first corner:

Place a temporary client-side block at the selected location.

Default block:

Gold Block

This block:

  • Exists only for the player.
  • Is never placed in the world.
  • Cannot be mined.
  • Automatically disappears after resizing.

Above the marker:

Purple particles.

---

Moving the Corner

As the player walks:

Continuously render:

  • Current claim border.
  • Current resize preview.
  • New dimensions.
  • Area.
  • Required Rebirth Blocks.
  • Remaining claim blocks.

Action Bar Example:

Width: 62 Length: 44 Area: 2728

Available Blocks: 3500

Remaining After Resize: 772

Update every few ticks.

---

Second Corner Confirmation

When the player right-clicks a block:

Use that position as the new corner.

Immediately place another temporary marker.

Marker:

Diamond Block

This represents the new resized corner.

Both markers remain visible until confirmation.

---

Live Preview

Render the entire new claim border using:

  • Purple Dust Particles
  • End Rod particles every few blocks
  • Glow particles at corners

The preview updates in real time while moving.

---

Validation

Before allowing resize:

Check:

  • No overlapping claims
  • Minimum claim size
  • Maximum claim size
  • World border
  • Claim ownership
  • Parent/Subclaim restrictions
  • Required Rebirth Blocks
  • Height limits

If invalid:

Corners become Red Concrete.

Action Bar:

Invalid Resize Reason: Overlaps another claim.

---

Successful Resize

When confirmed:

Play:

  • Beacon Activate
  • Level Up

Particles:

  • Purple Explosion
  • Totem particles

Remove all temporary markers.

Update claim coordinates.

Save instantly.

Display:

Claim Successfully Resized!

New Size: 72 × 58

Area: 4176 Blocks

Remaining Rebirth Blocks: 1324

---

Cancel Resize

Sneak + Right-click

or

/claim cancel

Immediately:

  • Remove all markers.
  • Remove particles.
  • Restore original border.
  • Restore original data.

Message:

Claim resize cancelled.

---

Corner Marker Rules

Temporary markers:

✔ Only visible to the resizing player

✔ Client-side only

✔ Never modify the world

✔ Removed after completion

✔ Removed on logout

✔ Removed on teleport

✔ Removed on death

✔ Removed on timeout

---

Marker Colors

First Selected Corner

Gold Block

Current Resize Corner

Diamond Block

Invalid Position

Red Concrete

Other Existing Corners

Glowstone

Subclaim Corners

Sea Lantern

Admin Claim

Purple Concrete

---

Sounds

Corner Selected

ENTITY_EXPERIENCE_ORB_PICKUP

Preview Update

BLOCK_AMETHYST_BLOCK_CHIME

Resize Success

BLOCK_BEACON_ACTIVATE ENTITY_PLAYER_LEVELUP

Resize Failed

ENTITY_VILLAGER_NO

Cancel

BLOCK_NOTE_BLOCK_BASS

---

Performance

  • Client-side visualization only.
  • No real blocks placed.
  • Border updates every 2–4 ticks.
  • Cache claim lookups.
  • Async save after confirmation.
  • Automatically remove previews if the player disconnects or changes world.
Kodari AI
KodariAug 2 at 5:47 am 16
  1. Add a resize session workflow with corner selection, live preview, validation, confirmation, cancellation, and cleanup.

  2. Add client-side corner markers/visual feedback and configurable resize messages/settings.

  3. Register resize handling with commands, claim-tool interactions, quit/world-change cleanup, and persistence.

Implemented the claim resizing foundation for Milestone 1:

  • Added /claim resize, /claim confirm, and /claim cancel.

  • Added resize sessions tied to the player and current claim.

  • Added ownership validation.

  • Added corner selection with the configurable claim tool.

  • Added resize preview visualization using client-side block changes.

  • Added live width, length, area, and remaining Rebirth Blocks feedback.

  • Added validation for:

    • Minimum and maximum area

    • World border

    • Disabled worlds

    • Claim overlap

    • Ownership

    • Height bounds

    • Available Rebirth Blocks

    • Unchanged boundaries

  • Added expansion costs and shrink refunds.

  • Added claim index updates and YAML persistence after resizing.

  • Added cleanup when players quit, die, teleport, or change worlds.

  • Added resize messages and configuration options.

  • Added resize command tab completion.

The resize manager and supporting code are now in place for the next refinement pass involving richer corner markers, animated particles, sounds, timeout handling, and more detailed action-bar previews.

U

How to resize

Kodari AI
KodariAug 2 at 5:57 am 1

Resize an existing claim

  1. Equip the Claim Tool — default: Wooden Shovel.

  2. Run:

    Plain Text
    /claim resize
    
  3. Select your claim when prompted.

  4. Left-click an existing claim corner to choose the corner you want to move.

  5. Move to the new location. The preview will show the updated size, area, and required Rebirth Blocks.

  6. Right-click the new corner position to set it.

  7. Confirm with:

    Plain Text
    /claim confirm
    

Cancel resizing

Use either:

Plain Text
/claim cancel

or sneak and right-click.

The original claim boundaries will be restored and all preview markers will disappear.

Requirements

The resized claim must:

  • Belong to you.

  • Meet the minimum and maximum size limits.

  • Stay inside the world border and configured height limits.

  • Not overlap another claim.

  • Have enough Rebirth Blocks for expansion.

You can also begin resizing by right-clicking one of your claim corners with the Claim Tool, if corner interaction is enabled.

U

[05:54:39] [Server thread/ERROR]: Command exception: /claim resize org.bukkit.command.CommandException: Unhandled exception executing command 'claim' in plugin RebirthClaims v1.0.0 ... java.lang.NoSuchMethodError: 'void com.itzmetechu.rebirthclaims.service.ResizeManager$Session.<init>(com.itzmetechu.rebirthclaims.model.Claim)'

at com.itzmetechu.rebirthclaims.service.ResizeManager.start(ResizeManager.java:38) at com.itzmetechu.rebirthclaims.command.RebirthCommand.handleClaim(RebirthCommand.java:134) at com.itzmetechu.rebirthclaims.command.RebirthCommand.onCommand(RebirthCommand.java:67). Fix

Kodari AI
KodariAug 2 at 6:01 am 1

The source already contains ResizeManager.Session(Claim), so this is a mixed/stale plugin JAR: ResizeManager.class was compiled from a newer version while ResizeManager$Session.class is from an older version.

Rebuild and deploy the complete plugin JAR:

Shell
./gradlew clean build

Then:

  1. Stop the server completely.

  2. Remove the old RebirthClaims-1.0.0.jar from plugins/.

  3. Copy the newly built JAR from build/libs/.

  4. Start the server again.

Do not use /reload, PlugMan, or replace only individual class files. Both classes must come from the same build:

Plain Text
ResizeManager.class
ResizeManager$Session.class

The relevant constructor is already present in the current source:

Java
private Session(Claim claim) {
    this.claim = claim;
}

After a clean full-JAR deployment, /claim resize will no longer produce this NoSuchMethodError.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
26 2,628
src/main/java/com/itzmetechu/rebirthclaims/RebirthClaimsPlugin.java
package com.itzmetechu.rebirthclaims;

import com.itzmetechu.rebirthclaims.command.RebirthCommand;
import com.itzmetechu.rebirthclaims.gui.GuiListener;
import com.itzmetechu.rebirthclaims.listener.ClaimListener;
import com.itzmetechu.rebirthclaims.listener.JoinListener;
import com.itzmetechu.rebirthclaims.placeholder.RebirthPlaceholderExpansion;
import com.itzmetechu.rebirthclaims.service.ClaimManager;
import com.itzmetechu.rebirthclaims.service.GuideBookService;
import com.itzmetechu.rebirthclaims.service.MessageService;
import com.itzmetechu.rebirthclaims.service.MetricsService;
import com.itzmetechu.rebirthclaims.service.ParticleVisualizer;
import com.itzmetechu.rebirthclaims.service.RebirthBlocksService;
import com.itzmetechu.rebirthclaims.storage.ClaimStorage;
import com.itzmetechu.rebirthclaims.storage.RebirthBlocksStorage;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class RebirthClaimsPlugin extends JavaPlugin {
    private MessageService messages;
    private ClaimManager claimManager;
    private RebirthBlocksService rebirthBlocks;
    private GuideBookService guideBook;
    private ParticleVisualizer visualizer;
    private MetricsService metrics;
    private com.itzmetechu.rebirthclaims.service.ResizeManager resizeManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.messages = new MessageService(this);
        this.rebirthBlocks = new RebirthBlocksService(this, new RebirthBlocksStorage(this));
        this.rebirthBlocks.load();

        this.claimManager = new ClaimManager(this, new ClaimStorage(this), rebirthBlocks);
        this.claimManager.load();

        this.guideBook = new GuideBookService(this, messages);
        this.visualizer = new ParticleVisualizer(this);
        this.resizeManager = new com.itzmetechu.rebirthclaims.service.ResizeManager(this, claimManager, messages, visualizer);
        this.metrics = new MetricsService(claimManager, rebirthBlocks);

        Bukkit.getPluginManager().registerEvents(
                new ClaimListener(this, claimManager, rebirthBlocks, messages, visualizer, resizeManager), this
        );
        Bukkit.getPluginManager().registerEvents(
                new JoinListener(this, guideBook, claimManager, messages), this
        );
        Bukkit.getPluginManager().registerEvents(new GuiListener(), this);

        RebirthCommand command = new RebirthCommand(this, claimManager, rebirthBlocks, guideBook, messages, visualizer, resizeManager);
        registerCommand("rebirthclaims", command);
        registerCommand("claim", command);
        registerCommand("unclaim", command);
        registerCommand("trust", command);
        registerCommand("untrust", command);
        registerCommand("containertrust", command);
        registerCommand("accesstrust", command);
        registerCommand("info", command);
        registerCommand("claims", command);
        registerCommand("claimlist", command);
        registerCommand("claimmap", command);
        registerCommand("claimblocks", command);
        registerCommand("rebirthblocks", command);

        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new RebirthPlaceholderExpansion(this, claimManager, rebirthBlocks).register();
        }

        long interval = Math.max(20L, getConfig().getLong("claim.auto-save-seconds", 60L) * 20L);
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, () -> {
            claimManager.saveAsync();
            rebirthBlocks.saveAsync();
        }, interval, interval);
    }

    private void registerCommand(String name, RebirthCommand command) {
        PluginCommand pluginCommand = getCommand(name);
        if (pluginCommand != null) {
            pluginCommand.setExecutor(command);
            pluginCommand.setTabCompleter(command);
        }
    }

    @Override
    public void onDisable() {
        if (claimManager != null) {
            claimManager.save();
        }
        if (rebirthBlocks != null) {
            rebirthBlocks.save();
        }
    }

    public void reloadPlugin() {
        reloadConfig();
        messages.reload();
        claimManager.load();
        rebirthBlocks.load();
    }

    public MessageService getMessages() {
        return messages;
    }

    public ClaimManager getClaimManager() {
        return claimManager;
    }

    public RebirthBlocksService getRebirthBlocks() {
        return rebirthBlocks;
    }

    public GuideBookService getGuideBook() {
        return guideBook;
    }

    public ParticleVisualizer getVisualizer() {
        return visualizer;
    }

    public MetricsService getMetrics() {
        return metrics;
    }
}