spookyluke60

can you help me make a plugin that has a custom economy using sea lanterns. prismarine shards and crystals?

Kodari AI
KodariAug 20 at 4:13 pm 2
AquaticEconomy
A Minecraft plugin introducing a custom economy based on aquatic resources. Players can deposit sea lanterns, prismarine shards, and prismarine crystals into a dedicated currency system. The plugin tracks balances, enables trading between players via a GUI, and provides commands for balance checking, deposits, withdrawals, and transfers. It features a shop interface where items can be bought and sold using this aquatic currency, with configurable exchange rates and transaction logging for security.
  1. Create a Gradle Bukkit plugin project with XSeries-based material handling.

  2. Implement physical balances for sea lanterns, prismarine shards, and prismarine crystals.

  3. Add player and admin commands for balance, payments, giving, and taking currency.

Created a physical Prismarine economy plugin.

Commands:

  • /marine balance

  • /marine balance <sea_lantern|shard|crystal>

  • /marine pay <player> <currency> <amount>

  • /marine give <player> <currency> <amount> — admin only

  • /marine take <player> <currency> <amount> — admin only

  • /marine help

Balances are calculated directly from player inventories using:

  • Sea Lanterns

  • Prismarine Shards

  • Prismarine Crystals

Also added tab completion, inventory-space checks, payment rollback safety, admin permissions, Gradle setup, and plugin.yml.

spookyluke60

can you make this compatible with superiorskyblock2. make it the go to economy

Kodari AI
KodariAug 22 at 3:42 pm 2
  1. Inspect the existing economy and SuperiorSkyblock2 API surface.

  2. Add a SuperiorSkyblock2-aware provider integration without replacing the physical currency model.

  3. Register the integration and expose a polished economy API/command flow.

The integration will use Vault as the standard economy bridge, with physical one-for-one Prismarine Credits backed by the three accepted item types. SuperiorSkyblock2 will load after this provider when present, so its island upgrades/bank features can use Vault without a hard compile-time dependency on its API.

Implemented Vault integration so PrismarineEconomy can act as the server’s primary economy and work with SuperiorSkyblock2.

Changes:

  • Added Vault API support.

  • Registered MarineEconomyProvider through Bukkit’s ServicesManager.

  • Set provider priority to Highest.

  • Added Vault economy methods for balances, deposits, withdrawals, and account checks.

  • Physical currency remains backed by:

    • Sea Lanterns

    • Prismarine Shards

    • Prismarine Crystals

  • Vault balances count all three item types as one-for-one Prismarine Credits.

  • Vault deposits issue Prismarine Shards.

  • Vault withdrawals can remove any combination of the three supported items.

  • Added offline-player safeguards since the economy is inventory-backed.

  • Added Vault as a required dependency.

  • Added loadbefore: SuperiorSkyblock2 so SuperiorSkyblock2 can discover this economy provider during startup.

  • Added clean provider unregistering on shutdown.

SuperiorSkyblock2 should now be able to use PrismarineEconomy through Vault for economy-dependent features such as island upgrades and related transactions.

spookyluke60

i need this to run 26.2 and java 25

Kodari AI
KodariAug 23 at 5:05 am 1
  1. Update the Gradle toolchain and server API target to Java 25 / Minecraft 26.2.

  2. Adjust plugin metadata and compatibility declarations for the 26.2 runtime.

The project currently targets Spigot 1.20.4 and Java 17. I’m switching the compile target to Paper 26.2, adding the Paper repository, and setting the Java 25 toolchain and plugin API version.

Updated the project for Minecraft 26.2 and Java 25:

  • Replaced Spigot 1.20.4 API with io.papermc.paper:paper-api:26.2-R0.1-SNAPSHOT

  • Added the Paper Maven repository

  • Updated Gradle Java toolchain from Java 17 to Java 25

  • Added api-version: '26.2' to plugin.yml

The plugin now targets Paper 26.2 and compiles using Java 25.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 832
src/main/java/com/kodari/prismarineeconomy/PrismarineEconomyPlugin.java
package com.kodari.prismarineeconomy;

import net.milkbowl.vault.economy.Economy;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.ServicePriority;
import org.bukkit.plugin.java.JavaPlugin;

public final class PrismarineEconomyPlugin extends JavaPlugin {

    private EconomyService economyService;
    private MarineEconomyProvider economyProvider;

    @Override
    public void onEnable() {
        economyService = new EconomyService();
        economyProvider = new MarineEconomyProvider(economyService);
        getServer().getServicesManager().register(Economy.class, economyProvider, this, ServicePriority.Highest);

        PluginCommand command = getCommand("marine");
        if (command == null) {
            throw new IllegalStateException("The marine command is missing from plugin.yml");
        }

        MarineCommand marineCommand = new MarineCommand(economyService);
        command.setExecutor(marineCommand);
        command.setTabCompleter(marineCommand);
    }

    @Override
    public void onDisable() {
        if (economyProvider != null) {
            getServer().getServicesManager().unregister(economyProvider);
        }
    }

    public EconomyService getEconomyService() {
        return economyService;
    }

    public MarineEconomyProvider getEconomyProvider() {
        return economyProvider;
    }
}