Tixmonek

I would like you to create a plugin for version 26.2. It should add several commands—some of which grant event-specific items—linked to corresponding events. For example, one such item could be "Divine Dirt," which a player could obtain by mining 10,000 blocks of dirt and then exchanging them for either a key (from the "GetCase" plugin) or an event-exclusive item. Please come up with 5 such event-exclusive items, one of which should be themed for the upcoming Halloween. The plugin must be designed for Paper.

Kodari AI
KodariOct 19 at 1:06 pm 1
EventRewardExchange
EventRewardExchange is a Paper plugin that introduces five event-exclusive items, each tied to specific in-game achievements. Players can earn items like "Divine Dirt" by mining 10,000 dirt blocks, then exchange them for exclusive rewards or GetCase keys. The plugin includes a Halloween-themed item, "Pumpkin King's Crown," obtainable by defeating 500 zombies during October. Other items include "Eternal Ember" (craft 1,000 torches), "Ocean's Blessing" (catch 200 fish), and "Sky Guardian's Feather" (kill 300 phantoms). A command system allows players to check progress, redeem rewards, and view available exchanges. The plugin integrates with GetCase for key distribution and features a GUI-based exchange menu for intuitive item trading.
  1. Add a Paper 26.2 plugin skeleton and configurable GetCase key command.

  2. Track five event objectives and persist progress and active events.

  3. Add player event commands for progress and rewards, plus admin start/stop/status commands.

Created EventRelics for Paper 26.2 with five event-exclusive rewards:

  • Divine Dirt: break 10,000 dirt blocks; exchange progress for a Divine Dirt item or a GetCase key.

  • Phantom Lantern (Halloween): defeat 13 phantoms.

  • Frostbound Crown: break 500 ice or snow blocks.

  • Bloomheart: harvest 300 mature crops.

  • Starfall Shard: break 100 amethyst blocks.

Players can use each item’s command to check progress and claim or exchange rewards. Admins can start and stop events with /eventitems start|stop <event|all>; progress and active events are saved. The GetCase command is configurable in config.yml to match your installation’s command syntax.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 683
src/main/java/com/kodari/eventrelics/EventRelicsPlugin.java
package com.kodari.eventrelics;

import com.kodari.eventrelics.command.EventItemsCommand;
import com.kodari.eventrelics.event.EventProgressListener;
import com.kodari.eventrelics.service.EventService;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class EventRelicsPlugin extends JavaPlugin {
    private EventService eventService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        eventService = new EventService(this);

        Bukkit.getPluginManager().registerEvents(new EventProgressListener(eventService), this);
        EventItemsCommand commandHandler = new EventItemsCommand(this, eventService);
        for (String name : new String[]{"eventitems", "divinedirt", "phantomlantern", "frostboundcrown", "bloomheart", "starfallshard"}) {
            PluginCommand command = getCommand(name);
            if (command != null) {
                command.setExecutor(commandHandler);
                command.setTabCompleter(commandHandler);
            }
        }
        eventService.startAutosave();
    }

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