_
📎 1 file 4,327 chars
📄
pasted-code-1774680700094.txt
txt 341 lines
▶
You are a professional Minecraft plugin developer.

Create a COMPLETE A-to-Z Minecraft plugin with FULL working code.

PLUGIN NAME:
ApexSMP

PLUGIN TYPE:
Ultimate SMP Plugin

IMPORTANT:

* No errors
* Fully working
* Optimized
* Production ready
* Clean code
* Proper package structure

════════════════════════
COMPATIBILITY
════════════════════════

Minecraft Version:

* 1.21.11+
* Future versions supported

Server:

* Paper
* Spigot
* Purpur

Java:

* Java 17+

Build System:

* Maven or Gradle

Package:

* com.apexsmp.plugin

════════════════════════
CURRENCY SYSTEM
════════════════════════

Currency:
Dollar ($)

Money Notes:

* $1
* $2
* $5
* $10
* $20
* $50
* $100
* $200
* $500
* $1000
* $2000

Features:

* Physical money item
* CustomModelData
* Stackable notes
* Anti duplication
* Fake item protection
* Drop on death
* Combine notes
* Split notes
* UUID protection
* NBT protection

Players must trade using notes only

Remove Commands:

* /pay
* /deposit
* /withdraw

════════════════════════
HELP COMMAND
════════════════════════

Create Help Command:

/apexsmp help
/as help

Help INVENTORY GUI:

* Show all commands
* Show plugin info
* Clickable commands
* Clean INVENTORY GUI

Help Message Example:

&6&lApexSMP Help
&7/apexsmp help
&7/balance
&7/bank
&7/shop
&7/jobs
&7/power

════════════════════════
WALLET SYSTEM
════════════════════════

Wallet Item:

* Craftable item
* Made from leather
* Custom texture
* Custom name "Wallet"

Craft Recipe:

Leather
String
Paper

Wallet Features:

* Right click → Open INVENTORY GUI
* Left click → Open INVENTORY GUI

Wallet INVENTORY GUI:

* Deposit money
* Withdraw money
* View balance
* Move to bank

════════════════════════
BANK SYSTEM
════════════════════════

Features:

* Bank INVENTORY GUI
* Deposit INVENTORY GUI
* Withdraw INVENTORY GUI
* Bank safe on death
* Wallet drop on death
* Bank limit configurable

Commands:

/bank
/balance
/balance wallet
/balance bank

════════════════════════
SHOP SYSTEM
════════════════════════

EconomyShopGUI Style Shop

Features:

* Buy system
* Sell system
* Categories
* Custom icons
* Custom prices
* Permission shop
* Reload support
* Configurable shop

Commands:

/shop
/shop open
/shop editor
/shop reload

════════════════════════
JOBS SYSTEM
════════════════════════

Jobs:

* Miner
* Hunter
* Farmer
* Builder
* Fisher
* Woodcutter

Features:

* Jobs INVENTORY GUI
* Jobs levels
* Jobs rewards
* Configurable money
* jobs.yml file

════════════════════════
POWER GEM SYSTEM
════════════════════════

First Join Spin:

* Player joins first time
* Spin INVENTORY GUI opens automatically
* Random gem reward

════════════════════════
CRAFTABLE SPIN ITEM
════════════════════════

Players can craft spin item

Spin Item Features:

* Right click → Spin
* Left click → Spin
* Random gem reward

════════════════════════
POWER GEMS
════════════════════════

* Fire Gem
* Ice Gem
* Speed Gem
* Strength Gem
* Lightning Gem
* Teleport Gem
* Heal Gem
* Night Vision Gem
* Wind Gem
* Earth Gem

════════════════════════
POWER ACTIVATION
════════════════════════

* Hold gem in hand → Power active
* Hold gem in offhand → Power active
* Remove gem → Power disabled

════════════════════════
GEM CHANCE SYSTEM
════════════════════════

Configurable gem chances

powers.yml

════════════════════════
GEM UPGRADE SYSTEM
════════════════════════

Level 1 → Level 5

Hard upgrade recipe

Upgrade INVENTORY GUI

════════════════════════
TEXTURE PACK
════════════════════════

Money notes
Power gems
Wallet
Spin item

Crunchy Indian Style
SMP Friendly
CustomModelData

════════════════════════
CREATOR COMMAND
════════════════════════

/apexsmp

Message:

&8&m--------------------------------
&6&lPlugin &7- &aApexSMP
&6&lMade by &7- &bDropiBoii
&6&lDiscord &7- &d@drpoiboii
&8&m--------------------------------

════════════════════════
CONFIG FILES
════════════════════════

config.yml
jobs.yml
powers.yml
shop.yml
messages.yml

════════════════════════
SECURITY
════════════════════════

* Anti dupe
* Fake money protection
* UUID storage
* Async saving
* Data saving

════════════════════════
OUTPUT
════════════════════════

Generate:

* plugin.yml
* All classes
* Commands
* INVENTORY GUI
* Config files
* Resource pack
* Folder structure

Important:

* No errors
* Fully working
* Optimized
* SMP friendly

END PROMPT
Kodari AI
KodariMar 28 at 6:58 am 36,632 (v2)

I’ll create a complete ApexSMP plugin with all requested features. This is a large-scale project with multiple interconnected systems.

ApexSMP
Ultimate SMP plugin featuring physical currency system with money notes, wallet and bank management, GUI-based shop with categories, six-job progression system with rewards, ten unique power gems with passive effects, spin system for gem rewards, gem upgrade mechanics, and comprehensive player data management. All interactions are GUI-based with anti-duplication protection and async data saving.

Now I’ll continue generating all remaining files:

Now I’ll create all the command classes:

Now I’ll create all the listener classes:

Now I’ll create all the GUI implementation classes. Due to length, I’ll continue in the next response.


Progress Update: Core systems complete (data, currency, bank, jobs, powers, spin, shop managers, all commands, all listeners). Next: GUI implementations (Bank, Wallet, Shop, Jobs, Power, Spin, Help).

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
43 3,069
src/main/java/com/apexsmp/plugin/ApexSMP.java
package com.apexsmp.plugin;

import com.apexsmp.plugin.bank.BankManager;
import com.apexsmp.plugin.commands.*;
import com.apexsmp.plugin.currency.MoneyManager;
import com.apexsmp.plugin.data.DataManager;
import com.apexsmp.plugin.inventory.gui.GUIListener;
import com.apexsmp.plugin.inventory.gui.GUIManager;
import com.apexsmp.plugin.jobs.JobsManager;
import com.apexsmp.plugin.listeners.*;
import com.apexsmp.plugin.powers.PowerManager;
import com.apexsmp.plugin.shop.ShopManager;
import com.apexsmp.plugin.spin.SpinManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ApexSMP extends JavaPlugin {
    
    private GUIManager guiManager;
    private DataManager dataManager;
    private MoneyManager moneyManager;
    private BankManager bankManager;
    private JobsManager jobsManager;
    private PowerManager powerManager;
    private ShopManager shopManager;
    private SpinManager spinManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("jobs.yml", false);
        saveResource("powers.yml", false);
        saveResource("shop.yml", false);
        saveResource("messages.yml", false);
        
        this.guiManager = new GUIManager();
        this.dataManager = new DataManager(this);
        this.moneyManager = new MoneyManager(this);
        this.bankManager = new BankManager(this);
        this.jobsManager = new JobsManager(this);
        this.powerManager = new PowerManager(this);
        this.shopManager = new ShopManager(this);
        this.spinManager = new SpinManager(this);
        
        registerCommands();
        registerListeners();
        
        dataManager.loadAllData();
        
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, 
            () -> dataManager.saveAllData(), 
            20L * getConfig().getInt("settings.auto-save-interval"),
            20L * getConfig().getInt("settings.auto-save-interval")
        );
        
        getLogger().info("ApexSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAllData();
        }
        getLogger().info("ApexSMP has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("apexsmp").setExecutor(new ApexSMPCommand(this));
        getCommand("bank").setExecutor(new BankCommand(this));
        getCommand("balance").setExecutor(new BalanceCommand(this));
        getCommand("shop").setExecutor(new ShopCommand(this));
        getCommand("jobs").setExecutor(new JobsCommand(this));
        getCommand("power").setExecutor(new PowerCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new MoneyProtectionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new WalletListener(this), this);
        Bukkit.getPluginManager().registerEvents(new SpinItemListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GemEffectListener(this), this);
        Bukkit.getPluginManager().registerEvents(new JobsListener(this), this);
    }
}