Build the complete original Paper plugin in this project, named “Unstable Pacts”, for Minecraft/Paper 26.1.2. User selected the Unstable Pacts mechanic: players form a temporary pact around a shared goal; completing it rewards both, while abandoning it simply ends it. No existing plugin/code/assets may be copied. Implement a polished, usable first release with no unnecessary runtime dependencies.
Technical requirements:
- Use Java and the correct Paper API dependency for Minecraft 26.1.2 (Paper API 26.1.2; use the appropriate current snapshot coordinate/repository), with a Gradle wrapper/project configuration suitable for building. Target the Java version required by Minecraft 26.1.2 (Java 25 if that is the applicable requirement). Do not use NMS.
- Include plugin.yml, default config.yml and any required data files/resources. Set accurate plugin metadata, command declarations, permissions, and API version appropriate for 26.1.2.
- Use only the Paper/Bukkit API and JDK; no external runtime libraries. Plugin must work on a dedicated multiplayer server.
Feature scope:
- Support two-player pacts with two objectives: JOURNEY and HUNT. Commands:
/pact invite <player> <journey|hunt>,/pact accept,/pact decline,/pact status,/pact abandon,/pact help, plus/pact reloadfor authorized admins. Add sensible aliases only if cleanly supported. Provide tab completion for subcommands, online player names, and objective names. Validate args, permissions, online status, self-invites, existing pact membership, and pending invitation state; give concise configurable feedback. Invites expire after a configurable number of minutes. Each player can have at most one active pact and one pending invitation at a time. Accepting creates the pact and begins its configured lifetime. - JOURNEY: each partner must individually accumulate a configurable horizontal travel distance while both partners are online, in the same world, and within a configurable radius. Track legitimate movement via player move events, ignore vertical-only movement and teleport-sized jumps/vehicles where appropriate, and persist each member’s progress. Clearly show both contributions and requirements in status.
- HUNT: accumulate a shared configurable count of kills of allowed mob types, credited to either pact member. Configure the eligible entity types and target count. Do not count non-mob entities or invalid/unsupported configured types.
- On objective completion, give each online/offline member the configured reward (at minimum configurable experience and item rewards), announce completion to members, then safely remove the pact. Avoid duplicate rewards if completion/save/restart overlaps. Invalid reward materials/config values should be handled safely with a warning rather than crashing.
- Expire active pacts after a configurable duration; notify online members. Abandoning/declining/invite expiry ends or clears the relevant state without imposing penalties. Persist active pact data and progress across server restarts using a robust plugin-owned YAML data file; handle missing/corrupt/expired entries safely. Do not persist stale pending invites across restarts. Save mutations safely and save on disable.
- Make all user-facing text configurable in config.yml, with sensible defaults, readable progress/status displays, and legacy color-code support. Include configurable journey distance, proximity radius, pact lifetime, invite lifetime, hunt target/mob whitelist, reward XP/items, and any safe movement limits. Include helpful comments in config.yml.
- Implement clean lifecycle and edge handling (reload validation, player disconnect/reconnect, same-world/proximity checks, no async Bukkit API access, completion only once). Reload should refresh configuration safely without corrupting active progress.
Deliver source code and all project files, with no placeholder or unimplemented features. Do not create test files or ask to run tests. Keep implementation focused and maintainable; after your changes compile is checked by the workspace verifier, not by you.
Set up the Java 25 Gradle project against Paper 26.1.2.
Implement pact commands, invitations, journey/hunt tracking, and configurable feedback.
Add durable pact/reward persistence, expiry handling, and safe reload behavior.
Implemented Unstable Pacts for Paper 26.1.2 with a Java 25 Gradle project and no external runtime dependencies.
Added
/pactcommands, permissions, tab completion, configurable messages, and invitation expiry.Implemented JOURNEY and HUNT objectives, progress/status reporting, rewards, pact lifetime, and penalty-free abandonment.
Added restart-safe pact and offline reward persistence, with atomic saves and configuration reloads that preserve active progress.
Perform a full but backward-compatible quality and feature-improvement pass on the existing Unstable Pacts plugin. Read and understand the existing Java/config/resources first. Keep current JOURNEY and HUNT commands, persistence, and core behavior working; extend rather than casually rewrite unrelated code. Target Minecraft 26.1.2 on Paper using the existing Java 25 toolchain and Paper API, no NMS. No tests/test files; do not claim runtime testing. Implement real features only, no placeholders. Do not try to build; workspace verifier will compile after your changes.
Current files/classes include PactObjective, Pact, PactManager, PactCommand, PactListener, UnstablePactsPlugin, config.yml, plugin.yml; project currently depends only on Paper API.
Implement these improvements as a complete deliverable: 1) Pact lifecycle: intuitive invite/accept/decline/abandon, one active pact per player, robust online/offline behavior, configurable invite and pact durations, invite cooldown and sensible configurable limits, durable state across restart, safe migration/backward compatibility with existing data.yml. Prevent overlapping invites/pacts, avoid stale pending invitations after restart, handle disconnect/world changes/death, validate all input and reload without resetting progress. Admin command(s) to list/inspect/cancel active pacts, with separate permission node(s); include useful opt-in debug logging. 2) Objectives: preserve existing JOURNEY (individual horizontal distance, only when both online, same world and within radius) and HUNT (shared kills of configured valid mob whitelist). Add configurable working objective definitions/templates for: EXPLORE distance together, specific mob defeat, specific player defeat, visit a configured biome, collect configured items, and survive together for configured time. Design a config-driven objective catalog with unique usable IDs and objective-specific settings/requirements; expose IDs in /pact invite and tab completion, while preserving journey/hunt IDs and the user's existing command form. Track progress accurately and persist all progress. Avoid exploits (no partner PvP kills, no non-mob targets, canceled interactions, invalid materials/types, duplicated inventory accounting, etc.). Evaluate sensible event points, support reload validation without corrupting persisted active objectives, and show objective/requirement/progress clearly in status. 3) Rewards: retain experience/item rewards; add configurable console-command rewards and optional money via Vault economy hook (Vault must be optional/softdepend and not required to run; avoid linking an economy provider or introducing unnecessary mandatory runtime deps). Add configurable reward pools, chosen deterministically/randomly once per pact and persisted so reload/restart cannot reroll; validate entries. Use durable completion/reward bookkeeping so completion is processed once and reconnecting/offline members receive their saved rewards. Never execute arbitrary placeholder code; commands are explicit config values with documented substitutions, dispatched safely as console. If economy is configured without Vault/provider, handle it safely with a clear warning. Explain unavoidable transaction limitations honestly in changelog if relevant. 4) UI: implement polished inventory GUI accessible via /pact gui (or another clear subcommand), showing current objective, both members, progress, remaining time, and actionable invite/accept/decline/abandon controls where feasible. Fully handle/lock custom inventory clicks and drags to prevent item movement/duplication, and close/refresh safely. Add clickable Adventure chat invitations with accept/decline actions and hover hints, while retaining textual fallback and configurable messages. All user-visible strings/items must be configurable as appropriate and legacy & color codes should continue working. 5) Reliability/performance: all Bukkit/Paper calls on main thread, no expensive per-tick scans; track movement/events efficiently. Handle deaths, disconnects, restart, world changes, invalid/corrupt config/data, and completion/expiry without duplicate reward grants. Keep writes robust/atomic and save on disable. Validate user interactions. 6) Config/admin/docs: expand config.yml with helpful comments and sane defaults for catalog, rewards/pools, GUI, limits/cooldowns, debug and text; update plugin.yml commands, aliases if used, permissions, softdepend and API metadata accurately. Add CHANGELOG.md covering every implemented improvement and important behavior/limitations. Keep deps lean; if adding VaultAPI as compileOnly, use a current compatible API and do not make Vault a hard dependency.
The end state must compile against Paper 26.1.2 with Java 25 and existing features retained. Reply with a factual summary and explicit notes for anything not implemented; do not report tests or live server verification as done.
Inspect the existing command, pact lifecycle, persistence, and configuration so improvements remain backward-compatible.
Extend the objective catalog, validation, progress tracking, rewards, and admin controls.
Add the configurable GUI and clickable invitations, then update metadata and changelog.
Implemented the Unstable Pacts improvement pass while retaining the existing /pact invite <player> journey|hunt form and migrating its version-1 data.yml progress.
Added configurable objective templates for exploration, mob and player defeats, biome visits, item collection, and surviving together. Active pacts retain their objective settings and selected reward across reloads and restarts.
Improved invitation and pact lifecycle handling with cooldowns, limits, outgoing-invite cancellation, expiry handling, and separately permissioned admin list, inspect, and cancel commands.
Added XP, item, console-command, and optional Vault economy rewards, plus
/pact guiand clickable invitation buttons with textual instructions.Expanded configuration and metadata, and added
CHANGELOG.mddocumenting behavior and reward-delivery limitations.
Verification: I did not build the project or run tests or a live server, as requested; the workspace verifier should check compilation. No requested feature was intentionally omitted.
Update the plugin metadata author to Vistalune, as requested by the user. In src/main/resources/plugin.yml, change only the author metadata value from Kodari to Vistalune. Keep all other metadata and plugin behavior unchanged. No tests or build requested; workspace verifier will compile after your change.
Updated the author in src/main/resources/plugin.yml to Vistalune. All other metadata and behavior are unchanged.
Replace the remaining Kodari branding/namespace throughout the Unstable Pacts project with Vistalune. Search all text project files (excluding generated build outputs) for Kodari/kodari and remove/replace project-owned occurrences. Specifically change Gradle group dev.kodari to dev.vistalune, migrate all Java package declarations from dev.kodari.unstablepacts to dev.vistalune.unstablepacts, update source directory paths to match that package, and update plugin.yml main to dev.vistalune.unstablepacts.UnstablePactsPlugin. Preserve plugin functionality and all unrelated content. Ensure there are no remaining Kodari references in project source/config/docs/build metadata. Do not build; workspace verifier will compile after the change. No tests.
Move the Java package directory to
dev.vistalune.unstablepacts.Update Gradle group and plugin entrypoint metadata.
Confirm no project-owned
Kodari/kodarireferences remain.
Moved the Java sources to dev.vistalune.unstablepacts, updated the Gradle group and plugin entrypoint, and removed the remaining project-owned Kodari/kodari references found in the source, configuration, documentation, and build metadata. No build or tests were run.
give me a short description of the mod to add to modrinth
Team up in Unstable Pacts: form a temporary pact, work together on shared objectives, and earn rewards before time runs out. Choose from journeys, hunts, exploration, collection, and more.
Is this a plugin or mod
It’s a Paper server plugin, not a Minecraft mod.
Version?
It targets Paper for Minecraft 26.1.2 and uses Java 25.
package dev.vistalune.unstablepacts;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public final class UnstablePactsPlugin extends JavaPlugin {
private PactManager pactManager;
private PactGui pactGui;
@Override
public void onEnable() {
saveDefaultConfig();
pactManager = new PactManager(this);
pactManager.reloadSettings();
pactManager.load();
getServer().getPluginManager().registerEvents(new PactListener(pactManager), this);
pactGui = new PactGui(this, pactManager);
getServer().getPluginManager().registerEvents(pactGui, this);
PactCommand pactCommand = new PactCommand(this, pactManager, pactGui);
PluginCommand command = getCommand("pact");
if (command == null) {
getLogger().severe("The pact command is missing from plugin.yml; disabling plugin.");
getServer().getPluginManager().disablePlugin(this);
return;
}
command.setExecutor(pactCommand);
command.setTabCompleter(pactCommand);
pactManager.processLoadedCompletions();
getServer().getScheduler().runTaskTimer(this, pactManager::tick, 20L, 20L);
}
@Override
public void onDisable() {
if (pactManager != null) {
pactManager.save();
}
}
public void reloadPactsConfig() {
reloadConfig();
pactManager.reloadSettings();
}
}