sahrkftv

Plugin minecraft paper 1.21.4 nome server: "VORTEX SMP" modalità: "SMP" versione minecraft: "1.21.4" nome del plugin: VORTEX_Administrator prefix: &f&lᴠ&d&lᴏ&f&lʀ&d&lᴛ&f&lᴇ&d&lx &7&lꜱᴍᴘ]

creami un plugin per questo: toolbreaknotify(avvisa quando uno strumento sta per rompersi) repair scrolls(permette di riparare gli strumenti con pergamene) con INVENTORY GUI /ripara prezzo scroll 6000 se piu scrolls si applica uno sconto del 10% acquistando almeno 3 scrolls e così via xp voucher (permette di ottenere esperienza tramite pergamene) con economia

plugin drugs(permette di coltivare droghe con effetti vari che dannno vantaggi e alcune svantaggi, e si possono vendere tramite /sell di ShopGUIPlus) +INVENTORY GUI per l'acquisto e info in merito buff e debuff

Kodari AI
KodariFeb 3 at 1:23 am 21,730 (v2)

I’ll create a comprehensive SMP administration plugin with tool break notifications, repair scrolls, XP vouchers, and a drugs system.

VortexAdministrator
A comprehensive SMP management plugin featuring tool break notifications, repair scrolls with economy integration, XP vouchers, and a custom drugs system with farming mechanics and trading. Includes GUI-based shops for repair scrolls and drug information with buff/debuff displays.

Planned sub:

  • Core plugin structure with economy-tasks integration (Vault)

  • Tool break notification system

  • Repair scroll system with bulk discount GUI

  • XP voucher system

  • Drugs system with custom crops, effects, and shop GUI

  • Configuration files for customization

Plugin VortexAdministrator creato con successo!

Il plugin include tutti i sistemi richiesti:

  • Tool Break Notify: Avvisa quando gli strumenti hanno poca durabilità

  • Repair Scrolls: GUI /ripara con sconti bulk (10% da 3+ scrolls)

  • XP Vouchers: Voucher esperienza con integrazione economy

  • Drugs System: Coltivazione droghe con buff/debuff, GUI shop e integrazione ShopGUIPlus

Tutte le GUI seguono il framework documentato con gestione eventi ottimizzata. Il sistema droghe supporta crescita temporizzata, effetti personalizzabili e vendita economia.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
25 1,753
src/main/java/com/vortex/administrator/VortexAdministrator.java
package com.vortex.administrator;

import com.vortex.administrator.commands.DrugCommand;
import com.vortex.administrator.commands.RiparaCommand;
import com.vortex.administrator.commands.XPVoucherCommand;
import com.vortex.administrator.inventory.gui.GUIListener;
import com.vortex.administrator.inventory.gui.GUIManager;
import com.vortex.administrator.listeners.DrugListener;
import com.vortex.administrator.listeners.RepairScrollListener;
import com.vortex.administrator.listeners.ToolBreakListener;
import com.vortex.administrator.listeners.XPVoucherListener;
import com.vortex.administrator.managers.DrugManager;
import com.vortex.administrator.managers.RepairScrollManager;
import com.vortex.administrator.managers.XPVoucherManager;
import lombok.Getter;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class VortexAdministrator extends JavaPlugin {
    
    private Economy economy;
    private GUIManager guiManager;
    private RepairScrollManager repairScrollManager;
    private XPVoucherManager xpVoucherManager;
    private DrugManager drugManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        if (!setupEconomy()) {
            getLogger().severe("Vault non trovato! Disabilitazione plugin...");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        
        this.guiManager = new GUIManager();
        this.repairScrollManager = new RepairScrollManager(this);
        this.xpVoucherManager = new XPVoucherManager(this);
        this.drugManager = new DrugManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("VORTEX Administrator caricato con successo!");
    }
    
    @Override
    public void onDisable() {
        if (drugManager != null) {
            drugManager.saveData();
        }
        getLogger().info("VORTEX Administrator disabilitato!");
    }
    
    private boolean setupEconomy() {
        if (getServer().getPluginManager().getPlugin("Vault") == null) {
            return false;
        }
        RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
        if (rsp == null) {
            return false;
        }
        economy = rsp.getProvider();
        return economy != null;
    }
    
    private void registerCommands() {
        getCommand("ripara").setExecutor(new RiparaCommand(this));
        getCommand("drug").setExecutor(new DrugCommand(this));
        getCommand("xpvoucher").setExecutor(new XPVoucherCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new ToolBreakListener(this), this);
        Bukkit.getPluginManager().registerEvents(new RepairScrollListener(this), this);
        Bukkit.getPluginManager().registerEvents(new XPVoucherListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DrugListener(this), this);
    }
    
    public String getPrefix() {
        return getConfig().getString("prefix", "&d&lVORTEX &7»");
    }
}