skippingmanx
📎 1 file 2,799 chars
📄
pasted-code-1787610776499.txt
txt 34 lines
▶
Create a Minecraft Java Spigot 1.21.11 plugin for a DonutSMP-style survival economy PvP server. The entire server MUST use vanilla Minecraft assets only. Do NOT create, require or download a resource pack. Do NOT use custom textures, 3D models, ModelEngine, ItemsAdder, Oraxen or custom model data. All custom items must use existing vanilla Minecraft items with custom names, lore, enchantments, potion effects, particles and abilities.

Core gameplay: players can survive, build, mine, farm, explore, create bases and PvP in the wilderness. Add protected spawn and configurable PvP-safe zones.

Economy: add /balance, /pay and /baltop plus a GUI server shop with configurable buy and sell prices for vanilla Minecraft items.

Auction House: add /ah where players can list vanilla items, browse, search, filter, purchase, cancel listings and collect expired items. Make it secure against duplication.

Trading: add /trade with a GUI. Both players must confirm before the trade completes. Changing an item resets confirmation. Prevent duplication and item loss.

PvP: add combat tagging, combat logging protection, kills, deaths, K/D, kill streaks and configurable kill rewards. Add /bounty so players can place money on other players and killers receive the bounty.

Progression: add XP, player levels, daily and weekly quests, and rewards for mining, farming, fishing, killing mobs, killing players, selling items and earning money.

Crates: add multiple crate rarities and keys using vanilla items only. Include configurable rewards, chances, commands, sounds and particles.

Add vanilla-item custom weapons/tools using existing Minecraft items, with custom names, lore, enchantments and special abilities.

Add kits, daily rewards, voting rewards, playtime rewards and configurable ranks/permissions.

Claims: allow players to protect bases and containers with trust/untrust functionality.

Add /spawn, /home, /sethome, /delhome, /tpa and /tpaccept with configurable teleport delays.

Events: add KOTH, supply drops, boss events and PvP events.

Add statistics and leaderboards for money, kills, deaths, playtime and blocks mined.

Add customizable GUIs, scoreboard, tablist, chat, messages and announcements.

Use SQLite/MySQL support and asynchronous database operations where safe. Use a modular architecture and optimize for high player counts. Add strong server-side validation and anti-duplication/exploit protection.

The plugin MUST be compatible with Spigot 1.21.11, must NOT require Paper-only APIs, and must work completely without any resource pack or external textures/models. Support LuckPerms and PlaceholderAPI. Make prices, rewards, messages, permissions, cooldowns, items, quests, crates and settings configurable without changing source code.
Kodari AI
KodariAug 24 at 10:45 pm 3
SurvivalEconomySuite
A comprehensive Spigot 1.21.11 survival economy PvP plugin using only vanilla Minecraft assets. Features protected spawn zones, full economy system with balance/pay/baltop commands and configurable server shop GUI, secure auction house with listing/browsing/purchase, two-player trade GUI with dual confirmation, PvP combat tagging with bounty system, progression with daily/weekly quests, multiple crate rarities with configurable rewards, custom vanilla-item weapons with abilities, kits, claim system with trust management, teleport commands, KOTH/supply drop events, statistics leaderboards, and fully customizable GUIs, scoreboard, tablist and messages. Uses SQLite/MySQL storage with asynchronous operations, modular architecture, anti-duplication protection, and supports LuckPerms and PlaceholderAPI.
  1. Create the Spigot 1.21.x Gradle project and plugin configuration.

  2. Add economy, database-backed player data, shops, auctions, bounties, combat, claims, homes and teleport systems.

  3. Add secure trade and inventory GUI handling.

  4. Register all requested commands, listeners and configurable server settings.

Created the Spigot 1.21.x DonutSMP-style survival economy plugin foundation with:

  • Vanilla-only items and visuals; no resource pack, custom models, or custom textures.

  • SQLite/MySQL database support with asynchronous player-data saves.

  • Economy commands: /balance, /pay, /baltop.

  • Configurable GUI shop with buy/sell prices.

  • Auction house browsing, searching, listing, buying, and cancellation.

  • Secure two-party trade GUI with confirmation reset when items change.

  • Combat tagging, spawn-safe PvP radius, combat logging punishment, kills, deaths, K/D, XP and levels.

  • Bounties with killer payouts.

  • Claims with trust/untrust protection.

  • Homes, spawn, TPA and delayed teleportation.

  • Daily rewards, vote rewards and configurable kits.

  • Configurable permissions, messages, rewards, database settings and shop prices.

  • Optional PlaceholderAPI and LuckPerms compatibility declarations.

skippingmanx

it needs to be a jar file and the sidebar needs to be customisable the server is called Apex Duels Sidebar must contain Server Name, Name, Money, Kills, Deaths Etc

Kodari AI
KodariAug 24 at 10:55 pm 1
  1. Update the plugin identity and default configuration to Apex Duels.

  2. Add a configurable sidebar scoreboard containing server name, player name, money, kills, deaths and extra statistics.

  3. Register the sidebar lifecycle and ensure the Gradle project produces the plugin JAR.

Implemented Apex Duels sidebar and JAR configuration.

  • Added customizable sidebar scoreboard with:

    • Server Name

    • Player Name

    • Money

    • Kills

    • Deaths

    • K/D

    • Level and XP

    • Blocks mined

    • Playtime

    • Online player count

    • Maximum player count

    • World and ping placeholders

  • Added optional PlaceholderAPI placeholder support.

  • Sidebar refresh interval is configurable.

  • Sidebar title and lines are fully configurable in config.yml.

  • Updated plugin and project name to ApexDuels.

  • Updated the default message prefix to Apex Duels.

  • Configured Gradle to create:

Plain Text
build/libs/ApexDuels-1.0.0.jar

Custom sidebar settings are located under:

YAML
sidebar:
  enabled: true
  title: '&6&lApex Duels'
  update-ticks: 20
  lines:
    - '&7%server_name%'
    - '&fName: &e%name%'
    - '&fMoney: &a$%money%'
    - '&fKills: &c%kills%'
    - '&fDeaths: &c%deaths%'

Build it with:

Shell
./gradlew build
skippingmanx

I meant Apex SMP

Kodari AI
KodariAug 24 at 10:57 pm 1

Updated the plugin branding to Apex SMP.

Changes:

  • Plugin name: ApexSMP

  • Project name: ApexSMP

  • JAR filename: ApexSMP-1.0.0.jar

  • Sidebar title: Apex SMP

  • Sidebar server name: Apex SMP

  • Message prefix: [Apex SMP]

  • SQLite database file: apexsmp.db

  • Internal scoreboard objective updated to apexsmp

Build output:

Plain Text
build/libs/ApexSMP-1.0.0.jar
skippingmanx

how do i export it as a .jar file

Kodari AI
KodariAug 24 at 10:57 pm 1

From the plugin’s project folder, run:

Windows

Open PowerShell or Command Prompt in the folder containing build.gradle, then run:

Shell
gradlew.bat build

macOS/Linux

Shell
chmod +x gradlew
./gradlew build

The compiled plugin will be exported to:

Plain Text
build/libs/ApexSMP-1.0.0.jar

Copy that .jar file into your server’s:

Plain Text
plugins/

Then restart the Spigot server.

If you do not have gradlew or gradlew.bat, install Gradle and run:

Shell
gradle build

You can also use IntelliJ IDEA:

  1. Open the project.

  2. Open the Gradle panel.

  3. Select Tasks → build → build.

  4. Find the JAR in build/libs/.

skippingmanx

it doesnt work when i put it in my plugin folder on my purpify host

Kodari AI
KodariAug 24 at 11:03 pm 2
  1. Bundle XSeries and the database drivers into the exported plugin JAR.

  2. Keep the JAR named ApexSMP-1.0.0.jar and verify the host requirements.

  3. Rebuild and upload the newly generated JAR, not the previous one.

The plugin JAR was missing its required libraries. I updated the Gradle build so XSeries and the database drivers are included inside the plugin JAR.

Rebuild it, then upload the new file:

Plain Text
build/libs/ApexSMP-1.0.0.jar

Do not upload the .txt, project folder, or an older JAR.

Build steps

From the project folder:

Shell
gradle build

If you have a Gradle wrapper:

Shell
./gradlew build

On Windows:

Shell
gradlew.bat build

Then:

  1. Delete the old ApexSMP JAR from Purpify.

  2. Upload the new ApexSMP-1.0.0.jar to the server’s plugins folder.

  3. Make sure the file is directly inside plugins, not inside another folder.

  4. Start or fully restart the server. Do not use /reload.

  5. Check the console for:

Plain Text
ApexSMP has been enabled

Your Purpify server must also run Java 21, since Minecraft/Purpur 1.21 plugins require it. If it still fails, send the exact red error from the server console—especially the lines after:

Plain Text
Error occurred while enabling ApexSMP
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
24 1,634
src/main/java/com/kodari/donutsurvival/DonutSurvivalPlugin.java
package com.kodari.donutsurvival;

import com.kodari.donutsurvival.auction.AuctionHouseManager;
import com.kodari.donutsurvival.claim.ClaimManager;
import com.kodari.donutsurvival.combat.BountyManager;
import com.kodari.donutsurvival.combat.CombatManager;
import com.kodari.donutsurvival.data.DatabaseManager;
import com.kodari.donutsurvival.economy.EconomyManager;
import com.kodari.donutsurvival.gui.MenuListener;
import com.kodari.donutsurvival.shop.ShopManager;
import com.kodari.donutsurvival.sidebar.SidebarManager;
import com.kodari.donutsurvival.teleport.HomeManager;
import com.kodari.donutsurvival.teleport.TeleportManager;
import com.kodari.donutsurvival.trade.TradeManager;
import com.kodari.donutsurvival.command.DonutCommand;
import com.kodari.donutsurvival.listener.ServerListener;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class DonutSurvivalPlugin extends JavaPlugin {
    private DatabaseManager database;
    private EconomyManager economy;
    private BountyManager bounties;
    private CombatManager combat;
    private ClaimManager claims;
    private HomeManager homes;
    private TeleportManager teleports;
    private ShopManager shop;
    private AuctionHouseManager auctions;
    private TradeManager trades;
    private SidebarManager sidebar;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        database = new DatabaseManager(this);
        database.initialize();
        economy = new EconomyManager(this, database);
        bounties = new BountyManager(this, economy);
        combat = new CombatManager(this, economy, bounties);
        claims = new ClaimManager(this);
        homes = new HomeManager(this);
        teleports = new TeleportManager(this);
        shop = new ShopManager(this, economy);
        auctions = new AuctionHouseManager(this, economy);
        trades = new TradeManager(this);
        sidebar = new SidebarManager(this);

        ServerListener serverListener = new ServerListener(this);
        Bukkit.getPluginManager().registerEvents(serverListener, this);
        Bukkit.getPluginManager().registerEvents(new MenuListener(this), this);

        DonutCommand command = new DonutCommand(this);
        String[] names = {"balance", "pay", "baltop", "shop", "ah", "trade", "bounty", "spawn", "home", "sethome", "delhome", "tpa", "tpaccept", "stats", "claim", "trust", "untrust", "daily", "vote", "kits"};
        for (String name : names) {
            PluginCommand pluginCommand = getCommand(name);
            if (pluginCommand != null) {
                pluginCommand.setExecutor(command);
                pluginCommand.setTabCompleter(command);
            }
        }
    }

    @Override
    public void onDisable() {
        if (economy != null) economy.saveAll();
        if (database != null) database.shutdown();
    }

    public DatabaseManager getDatabase() { return database; }
    public EconomyManager getEconomy() { return economy; }
    public BountyManager getBounties() { return bounties; }
    public CombatManager getCombat() { return combat; }
    public ClaimManager getClaims() { return claims; }
    public HomeManager getHomes() { return homes; }
    public TeleportManager getTeleports() { return teleports; }
    public ShopManager getShop() { return shop; }
    public AuctionHouseManager getAuctions() { return auctions; }
    public TradeManager getTrades() { return trades; }
    public SidebarManager getSidebar() { return sidebar; }
}