pix san
📎 1 file 4,686 chars
📄
pasted-code-1789496999494.txt
txt 159 lines
▶
Create a production-ready Minecraft Paper plugin named UpehRelics for Paper 1.21.11 using Java 21.

This plugin is the main progression/event system for my custom SMP. It must be stable, modular, and written like a real plugin, not a toy example.

SERVER CONTEXT
- Works on Paper 1.21.11
- Java 21
- Must coexist with: LifeStealZ, TAB, LuckPerms, EssentialsX, Vault, Geyser, Floodgate, ViaVersion, ViaBackwards, SkinsRestorer, Simple Voice Chat
- Java and Bedrock players both join through Geyser/Floodgate
- Avoid Java-only control schemes; gameplay interactions must be Bedrock-safe
- Use vanilla-safe interactions such as right click, sneak + right click, inventory GUIs, attack, bow shots, and tracked item use
- Do NOT depend on client mods, custom keybinds, or mod loaders

MAIN GOAL
Build the core progression framework plus a fully playable ORIGINS phase.

COMMANDS
- /ra = admin/owner GUI control center
- /smp = player progression GUI
- owner username is: upeh
- console has owner-level access

AGES
Create 6 progression ages:
I Origins
II Frontier
III Ascension
IV Dominion
V Relic Age
VI Convergence

Only ORIGINS should be fully playable in this first build.
The other 5 ages should appear in the UI as locked future modules, not fake implemented systems.

CORE ADMIN GUI (/ra)
Create a real chest GUI admin panel with working buttons for:
- view current age
- activate/complete current age
- open Origins controls
- event controls: Prepare, Start, Pause, Resume, Inspect, End, Reset
- player progress viewer
- hint controls
- system health
- audit/history
- test lab
- reset all with double confirmation

PLAYER GUI (/smp)
Create a real, fully interactive GUI showing:
- current age
- active event
- handbook
- Origins section
- event requirements
- event rewards
- event progress
- current hint
- rankings/placements if applicable

SERVER HANDBOOK
Give every player one persistent-data-tagged item called:
UPEH SMP HANDBOOK

Requirements:
- give it once automatically
- if lost, admin can reissue later
- right-clicking the handbook MUST open an interactive handbook GUI
- the handbook must explain:
  - how the SMP works
  - the 6 ages
  - global events
  - limited reward slots
  - hints
  - Soul Lives
  - what players should do first
  - how /smp works

SOUL SYSTEM
Add a custom Soul Lives system separate from LifeStealZ hearts.
Each player starts with 3 Souls:
♥♥♥
On tracked death:
♥♥♥ -> ♥♥
♥♥ -> ♥
♥ -> eliminated state
At 1 Soul, show a dramatic “FINAL LIFE” warning.
Persist this per player.

ORIGINS PHASE
Implement 2 fully playable Origins events:

1) FORGEMASTER SCAVENGER
- server-wide event
- all players can participate
- track progress per UUID
- only first 10 finishers earn the reward
- 4 objectives:
  Tempered Plate
  Forgemaster’s Rivet
  Binding Cloth
  Blacksmith’s Seal
- create themed mini-caches or shrines, not plain floating barrels
- track each player’s 0/4 progress
- show next objective, current hint, rank, remaining slots, and reward in /smp

2) ITEM BINGO
- shared 3x3 board
- detect required items in player inventories without consuming them
- track each player separately
- first 3 players to complete the board get placements/rewards
- show board state, completed squares, rankings and remaining reward slots in /smp

HINT SYSTEM
For each Origins event, add admin hint controls:
- Hint I
- Hint II
- Hint III
- Full Reveal
Track:
- current hint level
- who issued it
- when it was issued

PRESENTATION / IMMERSION
Every important action must feel polished using vanilla-safe effects:
- particles
- sounds
- titles
- actionbars
- bossbars
- small timed animation sequences

Examples:
- event start: title + global sound + particle pulse
- shrine proximity: ambient particles and occasional themed sound
- discovery: burst, actionbar, sound, title
- success: ascending sound sequence + particles
- failure: error sound + red particles
- reward claim: dramatic burst + server message
- event completion: global celebration

ENGINEERING REQUIREMENTS
- use clean modular architecture
- persist data safely to disk
- include audit logging
- include a test-lab mode that never alters live progress
- include reset-all with confirmation and backup
- avoid synchronous far-chunk loading
- no fake placeholder buttons
- every control shown in a GUI must actually work
- if something is not implemented, clearly mark it as TODO rather than pretending it works

OUTPUT
Provide:
1. full source code
2. compiled jar
3. setup notes
4. config notes
5. any admin commands needed for testing
Kodari AI
KodariSep 15 at 6:37 pm 3
UpehRelics
A modular Paper 1.21 SMP progression plugin featuring six locked ages with fully playable Origins phase. Includes dual GUIs (/ra admin control center, /smp player hub), persistent Soul Lives system, two complete events (Forgemaster Scavenger with 4-objective shrine hunting, Item Bingo with 3x3 shared board), server handbook with right-click GUI, hint system with full reveal, bossbar/particle/sound immersion, audit logging, test-lab mode, and reset-all with backup. Bedrock-safe interactions throughout.
  1. Create the Gradle/Paper project metadata and default configuration.

  2. Add persistence, audit, progression, soul, hint, effects, and handbook services.

  3. Implement the two Origins event modules with preparation, tracking, rewards, hints, and resets.

  4. Add Bedrock-safe commands, listeners, and interactive admin/player/handbook GUIs.

  5. Register everything in the plugin entry point and include setup notes.

  1. Created the complete UpehRelics Paper plugin project for Java 21, including Gradle configuration, plugin.yml, default config, and setup notes.

  2. Added modular progression systems:

    • Six ages with Origins active and future ages locked.

    • Persistent Soul Lives with Final Life and elimination warnings.

    • Persistent handbook item with PDC tagging and reissue support.

    • YAML persistence, backups, audit logging, and reset-all confirmation.

  3. Implemented playable Origins events:

    • Forgemaster Scavenger with four themed shrines and 10 reward slots.

    • Item Bingo with a shared 3×3 board, non-consuming inventory detection, and 3 reward slots.

  4. Added working /ra, /smp, admin controls, hint levels, player progress viewer, system health, audit history, test-lab mode, and Bedrock-safe interactions.

  5. Added immersion effects using titles, action bars, sounds, and particles.

Build the jar with:

Plain Text
gradle build

The output will be:

Plain Text
build/libs/UpehRelics-1.0.0.jar
pix san
📎 1 file 10,117 chars
📄
pasted-code-1789499124712.txt
txt 409 lines
▶
Continue the EXISTING UpehRelics project. Do not rebuild the foundation or Origins. Inspect the current code first and preserve all existing data, GUIs, event state, persistence and commands.

This update adds a reusable ARTIFACT / LIMITED ITEM / HIDDEN MILESTONE ENGINE.

CORE ITEM ENGINE
Every special item must have a unique PDC ID, serial number where applicable, owner/history tracking, ability cooldowns, passive effects, right-click abilities, audit history and anti-duplication validation.

Support item categories:
1. STANDARD REWARD – many can exist
2. LIMITED CRAFT – global server cap such as 1/1 or 3/3
3. WORLD ARTIFACT – usually only 1
4. HIDDEN MILESTONE ITEM
5. TRUE RELIC – future system

Track:
- item ID
- serial number
- original owner
- current holder when known
- creation timestamp
- kills
- ability uses
- global cap
- amount currently legitimately created

Never rely only on display name to identify items.

==================================================
ORIGINS SPECIAL REWARDS
==================================================

Upgrade Forgemaster rewards.

A qualifying Forgemaster winner gets the normal starter kit plus chooses ONE:

FORGEMASTER BLADE
- strong early-game iron sword
- right click: FORGE RUSH
- Speed I + Strength I for 4 seconds
- 60 second cooldown
- orange sparks + forge sounds

FORGEMASTER PICK
- Efficiency-focused iron/diamond progression pick
- right click: MOLTEN FOCUS
- Haste II for 8 seconds
- 60 second cooldown
- flame/smoke particles and anvil sound

WAYFARER BOOTS
- early mobility boots
- right click: BURST STEP
- Speed II for 5 seconds
- 45 second cooldown
- cloud/wind particles

Show cooldowns through actionbar and subtle sound feedback.

==================================================
UNIQUE IMPACT BOOTS
==================================================

Create a hidden Limited Craft called:

SKYBREAKER BOOTS

Base item: Diamond Boots
Global cap: 1

Only ONE legitimate pair may ever be crafted in the world unless owner resets its registry.

Hidden recipe/quest should not be revealed immediately.

Mechanic:
When wearer falls at least 4 blocks and lands extremely close to another player while moving downward, trigger a mace-style impact attack.

Damage scales with fall distance but must have a configurable safe maximum.
Add strong downward knockback/shockwave.
Successful impact reduces part of the wearer's fall damage.
Small impact radius so players can dodge it.

VFX:
- circular wind ring
- cloud burst
- crit particles
- bass impact sound
- optional second expanding particle ring

RIGHT CLICK ABILITY: VAULT
Launch wearer upward and slightly forward so they can set up a smash.
Cooldown around 20 seconds.
Use wind particles and wind-charge style sounds.

Track:
Skybreaker Boots 1/1
crafter
kills
smashes
highest recorded smash

==================================================
LIMITED MACE SYSTEM
==================================================

Create RESONANT MACES.

Global maximum: 3 legitimate Resonant Maces.

The first, second and third must receive serials:
I/III
II/III
III/III

The recipe/progression may remain hidden until players interact with Trial Chambers / Heavy Cores.

IMPORTANT:
When another legitimate Resonant Mace enters the server, existing Resonant Maces evolve into a higher RESONANCE TIER.

Do NOT simply give them huge extra damage.

Instead unlock better mechanics and counterplay.

When 2+ Resonant Maces fight each other:
- reduce extreme smash bonus between them
- trigger unique CLASH particles/sounds
- provide limited defensive counter mechanics so one mace owner cannot instantly dominate another

When the third mace is crafted:
GLOBAL CAP becomes SEALED 3/3.
No fourth legitimate craft may succeed.

Show this in /smp once the system has been discovered.

==================================================
HIDDEN MILESTONE ENGINE
==================================================

Continuously and safely monitor major world milestones.

Examples:
- first Nether entry
- first End entry
- first Stronghold entry
- first Bastion entry
- first Ancient City discovery
- first Elytra acquisition
- first Netherite upgrade
- first Heavy Core acquisition
- first Warden kill
- first Wither kill
- first Dragon kill
- first Elder Guardian kill
- first Trial Chamber major completion

Milestones can have four behaviors:

PERSONAL
RACE
WORLD-FIRST
HIDDEN

Do not automatically announce everything.

Some hidden milestones should silently unlock:
- new /smp mystery entry
- strange book
- shrine
- manifestation
- recipe
- quest chain
- artifact eligibility

Admin /ra must show hidden milestones even when players cannot see them.

==================================================
WORLD ARTIFACTS
==================================================

Add framework and initial versions of:

ECHO
Triggered through Warden progression.
Unique: 1.
Warden death should produce an intense manifestation instead of simply dropping the item.

VFX:
- SCULK_SOUL
- SONIC_BOOM style effects
- reverse portal particles
- expanding cyan/sculk rings
- deep layered Warden sounds

Ability:
right click SONIC RUPTURE
short forward/cone sonic shockwave
damage + knockback
meaningful cooldown.

DECAY
Wither-related unique artifact.
Base: Netherite Axe.
Passive: consecutive melee hits build limited Wither pressure.
Right click GRAVE PULSE:
short-range Wither pulse.
Dark smoke/soul particles.
Strong Wither sound profile.
Long cooldown.

ASTRA
Dragon/End artifact.
Base: Bow.
Enhanced projectile identity.
Right click activates a temporary STARFALL/VOIDSHOT mode for next shots.
Use END_ROD, PORTAL and dragon/end sounds.

BREACH
Trial Chamber / Heavy Core artifact family.
Connect it to Resonant Mace progression.

CINDER
Hidden Nether progression artifact/quest.
The first Nether milestone should NOT simply hand the player CINDER.
Instead secretly awaken a CINDER progression chain that can later become a race.

==================================================
ENTITY / MANIFESTATION INTERACTIONS
==================================================

High-grade discoveries should sometimes create a temporary supernatural manifestation.

Example:
After first legitimate Warden kill:
- death location darkens through particles/sounds
- sculk energy gathers
- floating/focal manifestation appears
- killer can interact with it
- title/actionbar sequence plays
- this begins ECHO acquisition

Use crossplay-safe vanilla entities/interactions.
Do not make critical progression depend solely on Java Display Entities.
If Display Entities are used visually, provide a vanilla interaction/fallback compatible with Geyser.

==================================================
VFX QUALITY TIERS
==================================================

Create reusable VFX tiers.

COMMON:
small sound + 5-15 particles

RARE:
particle burst + short sound sequence

EPIC:
multiple particle shapes + title/actionbar + layered sound

ARTIFACT:
intense multi-stage sequence

RELIC:
future god-tier cinematics

For ARTIFACT effects use actual animation math:
- rotating rings
- counter-rotating rings
- spirals
- expanding circles
- vertical columns
- directional trails
- pulses

Examples:
Fire item:
two spinning flame rings + lava sparks + smoke

Wind item:
rotating cloud/wind helix + expanding gust rings

ECHO:
sculk ring + sonic pulse + soul particles

Void:
reverse portal spiral + dark/purple orbiting ring

Do not spam particles every tick globally.
Only animate near relevant players and use sensible particle budgets.

==================================================
SOUNDS
==================================================

Layer vanilla sounds rather than using one random sound.

Different sound profiles:
- forge
- wind
- echo/sculk
- void
- fire
- artifact discovery
- failure
- success
- cooldown ready
- artifact clash

Important actions need audio feedback.

==================================================
GUI
==================================================

Expand /smp with:

ARTIFACTS
LIMITED ITEMS
MYSTERIES
SERVER HISTORY

Unknown hidden content appears as:
???

Once globally discovered, reveal its real entry.

Examples:

RESONANT MACES
Created: 2/3
Status: AVAILABLE

SKYBREAKER BOOTS
Created: 1/1
Status: SEALED

ECHO
Holder: ???
State: AWAKENED

Do not reveal undiscovered secret requirements.

Expand /ra with full admin information:
- artifact registry
- legitimate item count
- serials
- owners/history
- milestone triggers
- hidden unlock states
- force reset individual artifact
- force reset limited-item cap
- test manifestation
- test abilities
- test VFX
- test milestones

All destructive resets require confirmation.

==================================================
SERVER HISTORY
==================================================

Record meaningful history:

Day/date
Player
Event

Examples:
upeh — First Nether Entry
Alex — First Warden Kill
ECHO entered the world
Steve — Resonant Mace II/III forged
NULL awakened

Expose appropriate history through /smp and detailed history through /ra.

==================================================
CROSSPLAY
==================================================

All abilities must use:
- right click
- sneak + right click
- attacks
- bows
- normal movement
- normal GUI interactions

No custom client keybinds.

==================================================
IMPORTANT
==================================================

Do not fake functionality.

Compile and repair the project after implementing it.

Preserve the current Origins systems.

Add configuration values for:
- damage caps
- cooldowns
- item caps
- VFX density
- milestones
- ability strengths

Update setup notes with every new mechanic.
Kodari AI
KodariSep 15 at 7:16 pm 11
  1. Inspect the existing UpehRelics architecture, persistence, GUIs, commands, and Origins managers without changing them.

  2. Add the persistent artifact/limited-item registry and reusable special-item validation engine.

  3. Implement Origins reward choices, Skybreaker Boots, Resonant Maces, and their crossplay-safe abilities.

  4. Add milestone tracking, hidden discoveries, initial artifacts, manifestations, VFX/audio tiers, and server history.

  5. Expand /smp, /ra, configuration, setup notes, and repair any compile issues.

The existing project has a compact manager/listener architecture, so I’ll extend it in place rather than replacing the Origins foundation. The artifact layer will use its own PDC namespace and YAML sections, while existing data.yml keys, event progress, GUI routing, and commands remain intact.

Implemented the artifact and milestone expansion while preserving the existing Origins systems.

  • Added ArtifactManager with:

    • Unique PDC artifact IDs

    • Serial numbers for Resonant Maces

    • Ownership, holder, creation time, ability-use, kill, and smash tracking

    • Global caps and sealed registries

    • Artifact validation and reset support

    • Hidden Skybreaker and Resonant Mace recipes unlocked after the first Heavy Core

  • Upgraded Forgemaster rewards:

    • Forgemaster Blade

    • Forgemaster Pick

    • Wayfarer Boots

    • Interactive reward-choice GUI

  • Added artifact abilities:

    • Forge Rush

    • Molten Focus

    • Burst Step

    • Skybreaker Vault and impact smash

    • ECHO Sonic Rupture

    • DECAY Grave Pulse

    • ASTRA Starfall/Voidshot bow mode

  • Added Resonant Mace progression:

    • I/III, II/III, III/III serials

    • Global 3-item cap

    • Resonance tier evolution

    • Reduced damage and knockback during mace clashes

  • Added milestone monitoring for:

    • Nether and End entry

    • Stronghold, Bastion, Trial Chamber, and Ancient City discoveries

    • Elytra, Heavy Core, and Netherite progression

    • Warden, Wither, Dragon, and Elder Guardian kills

  • Added ECHO manifestation spawning after the first Warden kill with crossplay-safe Armor Stand interaction.

  • Added /smp artifact, mystery, and milestone pages.

  • Added /ra artifact registry, milestone viewer, test manifestation, VFX test, milestone test, and artifact test grants.

  • Added configurable cooldowns, caps, damage limits, impact radius, projectile damage, and resonance behavior.

  • Updated SETUP.md with artifact mechanics, admin commands, hidden recipes, and reset behavior.

Useful admin commands:

Plain Text
/ra grant SKYBREAKER_BOOTS
/ra grant RESONANT_MACE
/ra grant ECHO
/ra grant DECAY
/ra grant ASTRA
/ra reset-artifact CONFIRM <TYPE>

Build with:

Plain Text
./gradlew build

The existing Origins data keys, event state, persistence, GUI pages, /ra, /smp, handbook, Souls, and reset-all backup flow remain intact.

pix san
📎 1 file 2,583 chars
📄
pasted-code-1789499958869.txt
txt 81 lines
▶
Review the entire current UpehRelics implementation as a senior Paper 1.21.11 QA engineer. Do not add major new content yet.

Compile the complete project and fix every compile/runtime API issue you can identify.

Audit these systems end-to-end:

1. Forgemaster Blade, Pick and Wayfarer Boots:
- PDC identity
- reward choice GUI
- right-click abilities
- cooldown enforcement
- particles/sounds
- actionbar cooldown feedback
- cannot trigger from normal renamed items

2. Skybreaker Boots:
- exactly one legitimate craft globally
- recipe unlock after Heavy Core milestone
- survives restart
- duplicate crafting blocked
- Vault right-click works
- fall-smash only triggers while actually falling
- damage scales safely
- cannot repeatedly hit multiple times from one landing
- fall-damage reduction works
- VFX/sound works

3. Resonant Maces:
- hard global cap 3
- serials I/III, II/III, III/III persist
- tiers update existing maces when a new one is legitimately created
- fourth craft is impossible
- mace-vs-mace counter/clash behavior works
- copied/renamed maces cannot enter registry

4. Milestones:
- trigger once globally where intended
- hidden milestones remain hidden from players
- first Nether/End/Warden/Wither/Dragon/etc survive restarts
- duplicate login/chunk/entity events cannot trigger twice

5. ECHO manifestation:
- spawns once
- interaction works Java + Geyser safely
- cannot be claimed twice
- despawn/restart recovery is safe
- particles and sounds stop when manifestation ends

6. ECHO, DECAY, ASTRA abilities:
- right-click interaction works
- cooldowns persist correctly
- no duplicate projectile/event firing
- abilities cannot activate while plugin item is invalid
- VFX and audio are substantial enough to distinguish artifact-grade items

7. Persistence:
- artifact registry
- serials
- caps
- owners
- milestones
- kill counters
- ability-use counters
all survive complete server restart.

8. /smp and /ra:
- every visible button works
- hidden content displays ??? until discovered
- admin can see hidden state
- reset-artifact requires confirmation
- Test actions never corrupt live state

9. Performance:
- no synchronous loading of distant chunks
- no global every-tick particle spam
- cancel all repeating tasks correctly on disable
- clean up entities/tasks after resets.

Add a System Health report for Artifact Engine and Milestone Engine if one does not already exist.

After fixes, compile again and give me a concise list of every issue found and repaired.
Kodari AI
KodariSep 15 at 7:37 pm 20
  1. Establish a compile/API baseline and map the existing Artifact, Milestone, GUI, persistence, and task lifecycle code.

  2. Repair Forgemaster artifacts and their GUI/ability validation, cooldowns, and feedback.

  3. Repair Skybreaker’s global craft/recipe, fall-smash, Vault, and VFX lifecycle.

  4. Repair Resonant Mace registry, serials, caps, tier propagation, and clash behavior.

  5. Repair milestone idempotency and restart persistence.

  6. Repair ECHO manifestation and ECHO/DECAY/ASTRA ability lifecycle and validation.

  7. Audit persistence, /smp, /ra, reset confirmation, hidden-state presentation, and test isolation.

  8. Audit performance/cleanup and add or complete Artifact Engine and Milestone Engine health reports.

  9. Re-run the complete verification and provide a concise issue-and-repair report.

Task 1 is narrowed to the verified baseline mismatch and API-safe setup: the project targets Paper 1.21.4 despite the requested 1.21.11 baseline, while the source-level entrypoint and dependency usage have no confirmed compile blocker.

Task 2 repair scope is concrete: harden artifact identity against registry/type/material tampering, make Forge reward claims persistent and single-use, persist shrine locations, centralize Forgemaster cooldowns, and allow Wayfarer activation from legitimately worn boots without weakening PDC validation.

Task 3 will preserve the existing legitimate recipe path and global cap, but make the craft transaction explicit, broaden Heavy Core unlock recovery, fix worn Skybreaker Vault activation, clean landing state across player transitions, and bound impact/fall-damage behavior so one landing produces one safe smash.Task 4 keeps the authoritative three-item registry and serial generation, then closes the proven gaps: enforce a hard cap independent of config drift, persist serial/tier metadata, synchronize old maces to the current resonance tier, validate the defending mace, and reject renamed/invalid mace metadata before combat use.

Task 5 will make milestone loading structurally correct, add idempotent join-world/inventory recovery, separate fortress from stronghold, and give the GUI two views: admins see full state, while players see discovered entries and ??? placeholders without raw UUID/timestamp data.

Task 6 will add persisted manifestation state with loaded-chunk reconciliation and reset cleanup, make claims single-consumer, clear DECAY combo state on lifecycle transitions, give ASTRA’s toggle a persisted cooldown, and add dedicated DECAY/ASTRA audiovisual feedback without introducing a particle loop.

Task 7 persistence repair will make YAML replacement atomic, synchronize writes, persist registry entries for both created/cap state, mirror ability-use counts into the artifact registry, and flush holder/metadata updates that were previously only in memory until a clean shutdown.

Task 8 repair will secure every admin page at click time, make full reset genuinely two-step, reject unknown artifact reset targets, persist the Test Lab switch, and prevent test buttons/grants from mutating live registries or spawning test entities when Test Lab is off.

Task 9 will remove needless per-player persistence writes from Bingo scans, target shrine particles to nearby players, explicitly track/cancel temporary test entities/tasks, and expose real Artifact Engine, Milestone Engine, and datastore health instead of static “online” labels.

The static review found no concrete compile or Paper API blockers. One correctness refinement remains before final verification: stale offline maces must be upgraded to the authoritative resonance tier when they re-enter use, rather than being rejected before synchronization.A final integrity gap from the audit is addressed as well: a cloned mace PDC identity must not remain usable when the same identity appears in another online inventory. The registry remains issuance-only, and duplicate physical identities are rejected at validation time.Implemented a full QA hardening pass across UpehRelics.

  • Updated the build target from Paper 1.21.4 to 1.21.11.

  • Hardened artifact validation using PDC identity, registry type, expected material, immutable mace metadata, and duplicate mace identity detection.

  • Fixed Forgemaster reward duplication with persistent one-time claims.

  • Persisted Forgemaster shrine locations across restarts.

  • Added configurable Forgemaster cooldowns/durations shared by item lore, GUI, and runtime abilities.

  • Fixed Wayfarer and Skybreaker worn-boot right-click activation.

  • Enforced hard global limits: one Skybreaker and three Resonant Maces regardless of config drift.

  • Added Skybreaker landing cleanup for teleport, world change, death, and quit.

  • Bounded Skybreaker damage and fall reduction values, guarded zero-vector knockback, ensured one smash per landing, and made impact VFX play even without a victim.

  • Added Heavy Core recipe recovery on login and persisted recipe unlock state.

  • Persisted Resonant Mace serials and resonance tiers; existing maces now synchronize to the current tier.

  • Fixed mace clash validation against invalid/copied/renamed defending maces.

  • Corrected Nether Fortress milestone mapping.

  • Added restart-safe milestone recovery for dimension state and inventory-held milestone items.

  • Fixed personal milestone loading and test-lab isolation.

  • Added hidden milestone masking for players and detailed state for administrators.

  • Added persisted ECHO manifestation state, loaded-chunk reconciliation, single-use claiming, and reset cleanup.

  • Added explicit DECAY effects, DECAY combo cleanup, ASTRA shot effects, and persisted ASTRA mode cooldowns.

  • Persisted ability-use counters and holder updates into the artifact registry.

  • Made datastore writes synchronized and atomic through temporary-file replacement.

  • Removed unnecessary Bingo persistence on every scan.

  • Added tracked cleanup for temporary test manifestations and tasks.

  • Secured all admin GUI pages against unauthorized inventory clicks.

  • Added real two-click reset confirmation.

  • Restricted /ra reset-artifact to known artifact types.

  • Prevented test grants, test manifestation spawning, and test VFX from mutating live state when Test Lab is disabled.

  • Added Artifact Engine, Milestone Engine, and datastore status information to the health GUI.

  • Kept manifestation/entity scans limited to already-loaded chunks; no distant chunk loading was introduced.

  • Targeted shrine particles to nearby viewers instead of broadcasting repeated world particles.

The project has no Gradle wrapper and no usable Gradle executable in the provided environment, so an actual local Gradle compile could not be run. A final static Paper 1.21.11 API/compile review found no concrete missing methods, invalid signatures, import errors, or type mismatches.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
SETUP.md
Code
28 2,825
src/main/java/com/upeh/upehrelics/UpehRelicsPlugin.java
package com.upeh.upehrelics;

import com.upeh.upehrelics.command.RaCommand;
import com.upeh.upehrelics.command.SmpCommand;
import com.upeh.upehrelics.core.AuditLogger;
import com.upeh.upehrelics.core.ArtifactManager;
import com.upeh.upehrelics.core.DataStore;
import com.upeh.upehrelics.core.HandbookManager;
import com.upeh.upehrelics.core.MilestoneManager;
import com.upeh.upehrelics.core.ProgressionManager;
import com.upeh.upehrelics.events.BingoManager;
import com.upeh.upehrelics.events.ForgeMasterManager;
import com.upeh.upehrelics.gui.GuiManager;
import com.upeh.upehrelics.listener.GuiListener;
import com.upeh.upehrelics.listener.InteractionListener;
import com.upeh.upehrelics.listener.ArtifactListener;
import com.upeh.upehrelics.listener.ProgressionListener;
import java.util.Objects;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;
import org.bukkit.NamespacedKey;

public final class UpehRelicsPlugin extends JavaPlugin {
    private DataStore store;
    private AuditLogger audit;
    private ProgressionManager progression;
    private HandbookManager handbook;
    private ForgeMasterManager forge;
    private BingoManager bingo;
    private GuiManager guis;
    private ArtifactManager artifacts;
    private MilestoneManager milestones;
    private NamespacedKey handbookKey;
    private NamespacedKey shrineKey;
    private boolean testLab;
    private BukkitTask eventTask;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        store = new DataStore(this);
        audit = new AuditLogger(this);
        handbookKey = new NamespacedKey(this, "handbook");
        shrineKey = new NamespacedKey(this, "shrine-objective");
        testLab = store.data().getBoolean("settings.test-lab", getConfig().getBoolean("settings.test-lab", false));
        progression = new ProgressionManager(this, store);
        handbook = new HandbookManager(this);
        forge = new ForgeMasterManager(this);
        bingo = new BingoManager(this);
        artifacts = new ArtifactManager(this);
        milestones = new MilestoneManager(this);
        guis = new GuiManager(this);

        Bukkit.getPluginManager().registerEvents(new GuiListener(this), this);
        Bukkit.getPluginManager().registerEvents(new InteractionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ProgressionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ArtifactListener(this), this);
        Objects.requireNonNull(getCommand("ra")).setExecutor(new RaCommand(this));
        Objects.requireNonNull(getCommand("smp")).setExecutor(new SmpCommand(this));

        eventTask = Bukkit.getScheduler().runTaskTimer(this, () -> {
            forge.tick();
            artifacts.tick();
            for (org.bukkit.entity.Player player : Bukkit.getOnlinePlayers()) bingo.scan(player);
        }, 20L, 20L);
        audit.log("SYSTEM", "UpehRelics enabled");
        getLogger().info("UpehRelics enabled with Origins framework ready.");
    }

    @Override
    public void onDisable() {
        if (eventTask != null) eventTask.cancel();
        if (artifacts != null) artifacts.shutdown();
        persist();
    }

    public void persist() {
        if (progression == null) return;
        progression.save();
        forge.save();
        bingo.save();
        artifacts.save();
        milestones.save();
        store.save();
    }

    public void resetAll(String actor) {
        store.backup();
        forge.reset();
        bingo.reset();
        artifacts.reset();
        milestones.reset();
        progression.reset();
        store.reset();
        persist();
        audit.log(actor, "Reset all live progress after backup");
    }

    public boolean isAdmin(CommandSender sender) {
        return !(sender instanceof org.bukkit.entity.Player player)
                || sender.hasPermission("upehrelics.admin")
                || player.getName().equalsIgnoreCase(getConfig().getString("owner", "upeh"));
    }

    public DataStore store() { return store; }
    public AuditLogger audit() { return audit; }
    public ProgressionManager progression() { return progression; }
    public HandbookManager handbook() { return handbook; }
    public ForgeMasterManager forge() { return forge; }
    public BingoManager bingo() { return bingo; }
    public GuiManager guis() { return guis; }
    public ArtifactManager artifacts() { return artifacts; }
    public MilestoneManager milestones() { return milestones; }
    public NamespacedKey handbookKey() { return handbookKey; }
    public NamespacedKey shrineKey() { return shrineKey; }
    public boolean isTestLab() { return testLab; }
    public void setTestLab(boolean testLab) {
        this.testLab = testLab;
        store.data().set("settings.test-lab", testLab);
        store.save();
    }
}