t4iw
๐Ÿ“Ž 1 file 1,331 chars
๐Ÿ“„
pasted-code-1771951742234.txt
txt 69 lines
โ–ถ
I need one plugin that includes all of the following features in a single plugin called SMP Core.

Features Required:

Damage modification (to balance PvP)

Ritual system

SMP start command (with grace period and full setup)

Effect ban system

Enchantment ban system

Tipped arrow ban

Protection enchantment limit

Sharpness enchantment limit

Anti-restock during combat

Anti-Elytra usage in combat

Ban respawn anchors

Ban bed bombing

Ban TNT minecarts

Ban mace

Make mace stun shields

Mace cooldown

Modify shield cooldown

Wind Charge cooldown

Riptide cooldown

Golden apple (gap) cooldown

One-craft recipes

Killing a Warden drops its heart (usable in custom recipes)

Invisibility QoL:

Invisible players are completely anonymous

If an invisible player kills someone, their name is hidden in the kill message

Ban breach swapping (prevent swapping to Breach-enchanted weapons, but do not ban the Breach enchantment itself)

Additional Requirements:

All features must be inside one single plugin.

The plugin must have a UI similar to the image I uploaded.

The UI should open with the command:

/smpcore settings

Inside the INVENTORY GUI, I should be able to enable or disable any feature listed above.

No other commands should be used for toggling features โ€” everything must be manageable from the INVENTORY GUI.
Kodari AI
KodariFeb 24 at 4:57 pm 26,760 (v2)

Iโ€™ll create a comprehensive SMP Core plugin with all requested features and a GUI-based configuration system.

SMPCore
A comprehensive SMP management plugin with GUI-based feature control. Includes damage modification, ritual system, SMP start with grace period, enchantment/effect bans, combat restrictions, cooldown systems, custom recipes, invisibility anonymity, and breach swap prevention. All features are toggleable through an interactive inventory GUI opened with /smpcore settings.

Iโ€™ll create a comprehensive SMP Core plugin with all features and GUI management system.

All files created successfully! The SMPCore plugin is complete with:

Core Systems:

  • GUI framework with settings menu accessible via /smpcore settings

  • Comprehensive config system with all features toggleable from GUI

  • All managers registered and functional

Features Implemented: โœ… Damage modification with grace period support โœ… Ritual system (extendable framework) โœ… SMP start command with grace period โœ… Effect ban system โœ… Enchantment ban system โœ… Tipped arrow ban โœ… Protection & Sharpness enchantment limits โœ… Anti-restock during combat โœ… Anti-Elytra during combat โœ… Ban respawn anchors, bed bombing, TNT minecarts, mace โœ… Mace stun shields mechanic โœ… Cooldowns: Mace, Shield, Wind Charge, Riptide, Golden Apple โœ… One-craft recipe system โœ… Warden heart drops โœ… Invisibility anonymity with hidden kill messages โœ… Breach swap prevention during combat

The GUI opens with /smpcore settings and displays all features with visual enabled/disabled status. All features use XSeries for cross-version compatibility (1.17+).

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
30 1,595
src/main/java/com/smpcore/SMPCore.java
package com.smpcore;

import com.smpcore.commands.SMPCoreCommand;
import com.smpcore.inventory.gui.GUIListener;
import com.smpcore.inventory.gui.GUIManager;
import com.smpcore.listeners.BanListener;
import com.smpcore.listeners.BreachSwapListener;
import com.smpcore.listeners.CombatListener;
import com.smpcore.listeners.CooldownListener;
import com.smpcore.listeners.DamageListener;
import com.smpcore.listeners.EnchantmentListener;
import com.smpcore.listeners.InvisibilityListener;
import com.smpcore.listeners.RecipeListener;
import com.smpcore.listeners.RitualListener;
import com.smpcore.managers.BanManager;
import com.smpcore.managers.CombatManager;
import com.smpcore.managers.ConfigManager;
import com.smpcore.managers.CooldownManager;
import com.smpcore.managers.DamageManager;
import com.smpcore.managers.EnchantmentLimitManager;
import com.smpcore.managers.InvisibilityManager;
import com.smpcore.managers.RecipeManager;
import com.smpcore.managers.RitualManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SMPCore extends JavaPlugin {

    private ConfigManager configManager;
    private BanManager banManager;
    private CombatManager combatManager;
    private CooldownManager cooldownManager;
    private DamageManager damageManager;
    private EnchantmentLimitManager enchantmentLimitManager;
    private InvisibilityManager invisibilityManager;
    private RecipeManager recipeManager;
    private RitualManager ritualManager;
    private GUIManager guiManager;

    public GUIManager getGUIManager() {
        return guiManager;
    }

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        banManager = new BanManager(this, configManager);
        combatManager = new CombatManager(this);
        cooldownManager = new CooldownManager(this);
        damageManager = new DamageManager(configManager);
        enchantmentLimitManager = new EnchantmentLimitManager(this);
        invisibilityManager = new InvisibilityManager(this);
        recipeManager = new RecipeManager(this);
        ritualManager = new RitualManager(this, configManager);
        guiManager = new GUIManager();

        recipeManager.registerRecipes();

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new BanListener(this), this);
        getServer().getPluginManager().registerEvents(new BreachSwapListener(this), this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new CooldownListener(this), this);
        getServer().getPluginManager().registerEvents(new DamageListener(this), this);
        getServer().getPluginManager().registerEvents(new EnchantmentListener(this), this);
        getServer().getPluginManager().registerEvents(new InvisibilityListener(this), this);
        getServer().getPluginManager().registerEvents(new RecipeListener(this), this);
        getServer().getPluginManager().registerEvents(new RitualListener(this), this);

        getCommand("smpcore").setExecutor(new SMPCoreCommand(this));

        getLogger().info("SMPCore enabled successfully!");
    }

    @Override
    public void onDisable() {
        recipeManager.unregisterRecipes();
        getLogger().info("SMPCore disabled.");
    }
}