Rayan Shadowki

Develop an add-on for ExcellentCrates that enables players to transfer their crate keys to another user using the command /key transfer <user>. Include permission checks to restrict usage, a confirmation prompt to prevent accidental transfers, and support for configurable messages to notify both the sender and receiver about the transaction. Name it unstable crates

Kodari AI
KodariSep 2 at 4:32 am 1
UnstableCrates
A Minecraft plugin add-on for ExcellentCrates enabling secure crate key transfers between players. Players use /key transfer &lt;user&gt; to initiate a transfer, which triggers a confirmation prompt to prevent accidental sends. The plugin performs permission checks before allowing transfers, supports configurable messages for both sender and receiver notifications, and integrates seamlessly with ExcellentCrates' key system. Features include transfer confirmation GUI, success/failure feedback messages, and complete configuration file for customizing all notification text.
  1. Create the Maven plugin skeleton and unstable crates metadata.

  2. Add a confirmation-based /key transfer <user> command with permission enforcement.

  3. Integrate ExcellentCrates key lookup/removal/granting through its documented API.

  4. Add configurable sender, receiver, confirmation, and error messages.

Created unstable crates, a Maven-based ExcellentCrates add-on with:

  • /key transfer <user>

  • Permission: unstablecrates.transfer

  • Confirmation and cancellation flow

  • Configurable confirmation timeout

  • Configurable sender, receiver, and error messages

  • Online-player validation and self-transfer protection

  • Key transfer rollback handling if the operation fails

  • ExcellentCrates marked as a required dependency in plugin.yml

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
6 462
src/main/java/com/kodari/unstablecrates/UnstableCratesPlugin.java
package com.kodari.unstablecrates;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class UnstableCratesPlugin extends JavaPlugin {

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

        ExcellentCratesBridge bridge = new ExcellentCratesBridge(this);
        KeyTransferCommand command = new KeyTransferCommand(this, bridge);
        if (getCommand("key") == null) {
            getLogger().severe("The key command is missing from plugin.yml.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        getCommand("key").setExecutor(command);
        getCommand("key").setTabCompleter(command);
    }
}