lozoyt

See this txt file idea and make a plugin for minecraft version 1.21+

📎 1 file 8,422 chars
📄
pasted-code-1779266351782.txt
txt 213 lines
▶
=== MODULE 8: FULL INVENTORY GUI CONTROL PANEL ===
Main command: /smp → opens main control panel INVENTORY GUI

=== MAIN MENU (54 slot chest) ===
Title: "§6§lSMP Director - Control Panel"

Slots:
[10] Spawn Enemies      - ZOMBIE_SPAWN_EGG    - §cRed name
[11] Spawn Allies       - CREEPER_SPAWN_EGG   - §aGreen name
[12] Combat Control     - DIAMOND_SWORD       - §6Orange name
[13] Player Management  - PLAYER_HEAD         - §9Blue name
[14] Scene Manager      - BOOK                - §5Purple name
[15] Arena Manager      - BEACON              - §eYellow name
[16] Enemy Team         - RED_BANNER          - §cRed name
[17] Ally Team          - GREEN_BANNER        - §aGreen name
[31] Clear All NPCs     - TNT                 - §4Dark red - confirmation required
[49] Close              - BARRIER             - §7Gray

All items have enchantment glow
Each item lore shows description + keyboard shortcut command

=== SPAWN ENEMIES MENU (54 slot) ===
Title: "§c§lSpawn Enemies"

Row 1 - GAMEMODE (items glow when selected):
[0]  Diamond SMP   - DIAMOND_SWORD    - lore: "Full diamond gear, totems, gaps"
[1]  Nethpot       - SPLASH_POTION    - lore: "Gold sword, potions, no armor"
[2]  Mace          - MACE             - lore: "Mace + wind charge + heavy armor"
[3]  Mace+Elytra   - ELYTRA           - lore: "Mace + elytra + rockets dive bomb"
[4]  Axe PvP       - DIAMOND_AXE      - lore: "Axe + shield + diamond armor"
[5]  SMP Kit       - IRON_SWORD       - lore: "Full iron kit + bow + arrows"
[6]  Bow PvP       - BOW              - lore: "Power V bow, keeps distance"
[7]  SMP Neth      - GOLDEN_SWORD     - lore: "Gold sword + potions no armor"
[8]  Spear+Mace    - TRIDENT          - lore: "Trident + mace combo fighter"
[17] Manhunt       - COMPASS          - lore: "Coordinates, surround tactics"

Row 2 - DIFFICULTY (wool glows when selected):
[18] Easy    - LIME_WOOL    - lore: "Slow, no enchants, low aggression"
[19] Medium  - YELLOW_WOOL  - lore: "Normal speed, mid enchants"
[20] Hard    - RED_WOOL     - lore: "Fast, max enchants, uses potions, crits"

Row 3 - COUNT (click cycles through values):
[27] §a1     - GREEN_STAINED_GLASS_PANE
[28] §a5     - GREEN_STAINED_GLASS_PANE
[29] §a10    - YELLOW_STAINED_GLASS_PANE
[30] §a25    - YELLOW_STAINED_GLASS_PANE
[31] §a50    - ORANGE_STAINED_GLASS_PANE
[32] §a100   - ORANGE_STAINED_GLASS_PANE
[33] §a500   - RED_STAINED_GLASS_PANE
[34] §a1000  - RED_STAINED_GLASS_PANE
Currently selected count glows

Row 4 - ACTIONS:
[45] BACK         - ARROW
[49] SPAWN NOW    - LIME_CONCRETE - large green button
     lore shows: "Spawning X [gamemode] NPCs at [level]"

=== SPAWN ALLIES MENU (54 slot) ===
Title: "§a§lSpawn Allies"
Same layout as Spawn Enemies menu but green themed
Extra options:
[36] Follow Mode  - LEAD       - toggle on/off
[37] Hold Mode    - IRON_BARS  - toggle on/off  
[38] Charge Mode  - FIREWORK_ROCKET - toggle on/off
[49] SPAWN ALLIES - GREEN_CONCRETE

=== COMBAT CONTROL MENU (54 slot) ===
Title: "§6§lCombat Control"

[10] Start Fight        - DIAMOND_SWORD  - all NPCs attack caller
[11] Stop Fight         - SHIELD         - freeze all combat
[12] Attack Target      - PLAYER_HEAD    - opens player selector INVENTORY GUI
[13] Allies Attack      - GREEN_BANNER   - allies charge all enemies
[14] Allies Hold        - IRON_BARS      - allies stop and defend
[15] Allies Follow      - LEAD           - allies follow you
[16] Enemy Fight Enemy  - CROSSED_SWORDS - make enemy NPCs fight each other
[22] Fight Intensity    - FIRE_CHARGE    - cycles: LOW / NORMAL / CHAOS
     CHAOS mode = everyone fights everyone including allies vs enemies

[49] BACK - ARROW

=== PLAYER MANAGEMENT MENU (54 slot) ===
Title: "§9§lPlayer Management"

[10] Freeze All      - PACKED_ICE     - freezes all real players
[11] Unfreeze All    - FIRE           - releases all
[12] Freeze One      - ICE            - opens player selector
[13] Unfreeze One    - BLAZE_POWDER   - opens player selector
[14] Split Teams     - BANNER         - opens team split menu
[15] TP to Arena     - ENDER_PEARL    - opens arena selector
[16] TP One Player   - CHORUS_FRUIT   - opens player+arena selector
[17] Give Kit        - CHEST          - give a gamemode kit to a player

Team Split Sub-Menu:
[10] Split into 2 teams  - shows team preview before confirming
[11] Split into 3 teams
[12] Split into 4 teams
[13] Random shuffle      - reshuffles current teams
[49] CONFIRM - LIME_CONCRETE

=== SCENE MANAGER MENU (54 slot) ===
Title: "§5§lScene Manager"

[10] Save Scene    - BOOK_AND_QUILL  - opens anvil INVENTORY GUI to type scene name
[11] Load Scene    - BOOKSHELF       - opens scene list to click
[12] Delete Scene  - LAVA_BUCKET     - opens scene list to click (confirmation)
[13] List Scenes   - BOOKSHELF       - shows all saved scenes as book items
     Each scene book shows: name, date saved, NPC count, player count

[49] BACK - ARROW

=== ARENA MANAGER MENU (54 slot) ===
Title: "§e§lArena Manager"

[10] Save Arena        - BEACON         - saves current location, anvil INVENTORY GUI for name
[11] Teleport to Arena - ENDER_PEARL    - opens arena selector list
[12] Delete Arena      - LAVA_BUCKET    - opens arena selector (with confirmation)
[13] Set Spawn Points  - GRASS_BLOCK    - click to add current location as spawn point
[14] List Arenas       - MAP            - shows all arenas as map items

Each arena in list shows:
- Name
- World name
- Coordinates
- Number of spawn points saved

[49] BACK - ARROW

=== ENEMY TEAM MENU (54 slot) ===
Title: "§c§lEnemy Team Manager"

[10] Add Player as Enemy   - RED_BANNER      - opens online player selector
[11] Remove Enemy Player   - WHITE_BANNER    - shows current enemy list
[12] Mark All NPCs Enemy   - ZOMBIE_HEAD     - all non-ally NPCs become enemies
[13] Clear All Enemies     - BUCKET          - removes all enemy marks
[14] Show Enemy List       - PAPER           - lists all marked enemies as skull items

Each enemy in list shown as PLAYER_HEAD with their name
Click enemy head to remove them from enemy list

[49] BACK - ARROW

=== ALLY TEAM MENU (54 slot) ===
Title: "§a§lAlly Team Manager"

[10] Spawn Ally NPCs       - CREEPER_SPAWN_EGG  - opens spawn allies menu
[11] Command: Follow Me    - LEAD               - all allies follow you
[12] Command: Hold Ground  - IRON_BARS          - all allies stop at position
[13] Command: Charge       - FIREWORK_ROCKET    - all allies rush enemies
[14] Command: Retreat      - FEATHER            - all allies run back to you
[15] Remove All Allies     - LAVA_BUCKET        - despawns ally NPCs only
[16] Show Ally List        - PAPER              - lists all ally NPCs

[49] BACK - ARROW

=== COMMAND REFERENCE MENU (54 slot) ===
Access: click BOOK icon in main menu bottom row
Title: "§7§lCommand Reference"

Shows every command as a PAPER item
Click any command paper → it gets pasted into your chat bar ready to send
Organized by category with colored glass pane separators:

§c Spawn Commands:
- /npc spawn   
- /npc random 
- /smpclear

§a Ally Commands:
- /ally spawn   
- /ally follow
- /ally hold
- /ally charge
- /ally retreat

§6 Combat Commands:
- /fight start
- /fight stop
- /fight target 

§9 Player Commands:
- /freeze all
- /unfreeze all
- /split 
- /tp arena 

§5 Scene Commands:
- /scene save 
- /scene load 
- /scene list
- /scene delete 

§e Arena Commands:
- /arena save 
- /arena list
- /arena delete 

§c Enemy Commands:
- /enemyteam add 
- /enemyteam remove 
- /enemyteam clear

=== GENERAL INVENTORY GUI RULES ===
- All menus have BACK button at slot 49 or 45
- All destructive actions (clear, delete) require a confirmation click
- Currently selected options always glow
- Player selectors show real online players as their PLAYER_HEAD
- Anvil GUIs used for naming scenes and arenas
- All GUIs cancel item pickup (inventory locked)
- OP only access for all GUIs and commands
- INVENTORY GUI state remembered per player (reopens on same page)
- Shift+click on any NPC spawn egg in INVENTORY GUI = spawn at your exact location
- Right click items in INVENTORY GUI = see detailed info/lore
Kodari AI
KodariMay 20 at 8:47 am 18,074 (v2)

I’ll create a comprehensive SMP Director plugin with full GUI control panels for managing combat scenarios, NPCs, and player teams.

SMPDirector
A comprehensive SMP content creation tool featuring GUI-based NPC combat management, player team control, scene recording, and arena systems. Spawn configurable enemy and ally NPCs with various combat modes, freeze players, manage teams, save/load combat scenarios, and create custom arenas with multiple spawn points. Perfect for content creators and server events.

Implementation Plan

  1. Inventory GUI Framework - Reusable system for all menus

  2. Data Models - GameMode, Difficulty, Scene, Arena structures

  3. Manager Classes - NPC, Combat, Player, Scene, Arena, Team managers

  4. GUI Implementations - All 9 menu screens

  5. Commands - /smp main command + backend commands

  6. Utilities - ItemBuilder, color formatting

lozoyt

The compilation failed with this error:

code
Compilation failed with 13 error(s):

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 3: package com.smpdirector.command does not exist
import com.smpdirector.command.SMPCommand;
                              ^

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 16: cannot find symbol
    private NPCManager npcManager;
            ^
  symbol: class NPCManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 17: cannot find symbol
    private CombatManager combatManager;
            ^
  symbol: class CombatManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 18: cannot find symbol
    private PlayerManager playerManager;
            ^
  symbol: class PlayerManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 19: cannot find symbol
    private SceneManager sceneManager;
            ^
  symbol: class SceneManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 20: cannot find symbol
    private ArenaManager arenaManager;
            ^
  symbol: class ArenaManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 21: cannot find symbol
    private TeamManager teamManager;
            ^
  symbol: class TeamManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 16: cannot find symbol
    private NPCManager npcManager;
                       ^
  symbol: class NPCManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 17: cannot find symbol
    private CombatManager combatManager;
                          ^
  symbol: class CombatManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 18: cannot find symbol
    private PlayerManager playerManager;
                          ^
  symbol: class PlayerManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 19: cannot find symbol
    private SceneManager sceneManager;
                         ^
  symbol: class SceneManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 20: cannot find symbol
    private ArenaManager arenaManager;
                         ^
  symbol: class ArenaManager
  location: class SMPDirector

ERROR in src/main/java/com/smpdirector/SMPDirector.java at line 21: cannot find symbol
    private TeamManager teamManager;
                        ^
  symbol: class TeamManager
  location: class SMPDirector


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - NPCManager
  - CombatManager
  - PlayerManager
  - SceneManager
  - ArenaManager
  - TeamManager
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/smpdirector/SMPDirector.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariMay 20 at 8:50 am 7,295 (v2)

I need to read the SMPDirector.java file first to understand what’s needed, then create all the missing classes.

Now I’ll create all the missing manager classes and the command class.

All missing classes have been created:

  • SMPCommand - Opens the main control panel GUI for admins

  • NPCManager - Manages NPC spawning, tracking, and cleanup with event handling

  • CombatManager - Tracks combat sessions and fight intensity with event handling

  • PlayerManager - Manages player states (frozen, director mode, teams)

  • SceneManager - Creates, loads, and saves scenes with persistence

  • ArenaManager - Creates, loads, and saves arenas with persistence

  • TeamManager - Manages team creation and player membership

The plugin should now compile successfully.

lozoyt

Give me Plugin in .jar

Kodari AI
KodariMay 20 at 8:51 am 2,637 (v2)

I cannot directly compile and build a .jar file - I can only create and modify source code files. However, I can guide you on how to build it yourself:

Building the Plugin

Option 1: Using Gradle (Command Line)

Shell
# Navigate to your project directory
cd /path/to/your/project

# Build the plugin
./gradlew build

# Or on Windows:
gradlew.bat build

The .jar file will be created in: build/libs/SMPDirector-1.0.0.jar

Option 2: Using IntelliJ IDEA

  1. Open the Gradle panel (View → Tool Windows → Gradle)

  2. Expand your project → Tasks → build

  3. Double-click “build”

  4. Find the .jar in build/libs/

Option 3: Using Eclipse

  1. Right-click on the project

  2. Select “Run As” → “Gradle Build”

  3. Enter build as the task

  4. Find the .jar in build/libs/


Quick Build Check

Before building, ensure you have:

  • ✅ Java 17+ installed

  • ✅ Gradle installed (or use the wrapper: ./gradlew)

Run ./gradlew clean build for a fresh build.

The compiled plugin will be ready to drop into your server’s plugins/ folder!

lozoyt

where is source code

Kodari AI
KodariMay 20 at 8:52 am 8,878 (v2)

I’ll read the source code files for you:

The source code is in your project directory structure as shown in the context. Here’s what you have:

Core Files:

  • ✅ SMPDirector.java - Main plugin class

  • ✅ SMPCommand.java - Command handler

  • ✅ All 6 Manager classes (NPCManager, CombatManager, PlayerManager, SceneManager, ArenaManager, TeamManager)

  • ✅ config.yml and plugin.yml

  • ✅ build.gradle

Issue Found:

Your build.gradle is missing Lombok dependency (needed for @Getter annotation in SMPDirector.java):

✅ All Source Code is Located in:

Plain Text
your-project/
├── src/main/java/com/smpdirector/
│   ├── SMPDirector.java              ← Main plugin class
│   ├── command/
│   │   └── SMPCommand.java            ← /smp command
│   └── manager/
│       ├── ArenaManager.java          ← Arena creation & saving
│       ├── CombatManager.java         ← Combat tracking
│       ├── NPCManager.java            ← NPC spawning
│       ├── PlayerManager.java         ← Player state management  
│       ├── SceneManager.java          ← Scene creation & saving
│       └── TeamManager.java           ← Team management
└── src/main/resources/
    ├── config.yml                     ← Configuration
    └── plugin.yml                     ← Plugin metadata

🔧 Build Commands:

Option 1: Command Line

Shell
./gradlew clean build

JAR location: build/libs/SMPDirector-1.0.0.jar

Option 2: IDE

  • IntelliJ: Gradle panel → Tasks → build → build

  • Eclipse: Right-click project → Run As → Gradle Build → enter “build”


I’ve also fixed your build.gradle to include Lombok (required for @Getter annotations). The plugin should now compile successfully! 🎯

lozoyt

Please Give Me This Plugin In Fully .jar Only So I can directly Put It Into The server

Kodari AI
KodariMay 20 at 9:51 am 3,993 (v2)

I cannot generate compiled .jar files - I can only create and modify source code. I don’t have the ability to run build tools like Gradle or create binary files.

What I CAN do:

I can give you all the source code so you can compile it yourself in seconds.


✅ Fastest Solution: Use an Online IDE

Option 1: Replit (Easiest - No Installation)

  1. Create a new “Java” repl

  2. Upload your source files

  3. Run gradle build in the shell

  4. Download the .jar from build/libs/

Option 2: GitHub Codespaces

  1. Upload code to GitHub

  2. Open in Codespaces (free)

  3. Run ./gradlew build

  4. Download the .jar


🖥️ Local Build (Takes 30 seconds)

Requirements: Java 17+ installed

Steps:

Shell
# 1. Navigate to project folder
cd /path/to/SMPDirector

# 2. Build
./gradlew clean build

# 3. Get your .jar
# Location: build/libs/SMPDirector-1.0.0.jar

💡 Alternative: I can prepare a complete ZIP

Would you like me to:

  1. ✅ Verify all source code is correct

  2. ✅ Create a README with build instructions

  3. ✅ Package everything so you just run one command

Then you’d just:

  • Extract the ZIP

  • Run ./gradlew build

  • Get your .jar in 10 seconds


Which option works best for you? I can guide you through any of these approaches, but I cannot directly create the compiled .jar file myself.

lozoyt

where to run ./gradlew build ?

Kodari AI
KodariMay 20 at 9:53 am 2,243 (v2)

You run ./gradlew build in the root directory of your project (where build.gradle is located).

📂 Your Project Structure:

Plain Text
SMPDirector/                    ← RUN COMMAND HERE
├── build.gradle                ← Same folder as this file
├── gradlew                     ← Gradle wrapper (Linux/Mac)
├── gradlew.bat                 ← Gradle wrapper (Windows)
├── gradle/                     ← Wrapper files
├── src/
│   └── main/
│       ├── java/
│       └── resources/
└── build/                      ← .jar appears here after building
    └── libs/
        └── SMPDirector-1.0.0.jar  ← YOUR PLUGIN JAR

🚀 Step-by-Step:### Windows:

Shell
# 1. Open Command Prompt or PowerShell
# 2. Navigate to your project folder
cd C:\path\to\SMPDirector

# 3. Build (choose one)
gradlew.bat clean build
# OR if gradlew.bat doesn't exist:
gradle clean build

Mac/Linux:

Shell
# 1. Open Terminal
# 2. Navigate to your project folder
cd /path/to/SMPDirector

# 3. Make gradlew executable (first time only)
chmod +x gradlew

# 4. Build
./gradlew clean build
# OR if ./gradlew doesn't exist:
gradle clean build

⚠️ Don’t Have Gradle Wrapper?

If gradlew or gradlew.bat doesn’t exist, let me read your files and generate them for you:

Perfect! Your project is ready to build. Here’s exactly what to do:


🎯 Run Command in Root Directory

The root directory is where build.gradle is located. Based on your structure:

Plain Text
YourProject/
├── build.gradle          ← OPEN TERMINAL/CMD HERE
├── src/
└── (other files)

📝 Exact Steps:

Option A: If you have gradlew or gradlew.bat

Windows (Command Prompt):

Cmd
cd C:\path\to\your\project
gradlew.bat clean build

Mac/Linux (Terminal):

Shell
cd /path/to/your/project
chmod +x gradlew
./gradlew clean build

Option B: If NO gradlew files, use Gradle directly

First, install Gradle: https://gradle.org/install/

Then:

Shell
cd /path/to/your/project
gradle clean build

✅ After Building:

Your SMPDirector-1.0.0.jar will be at:

Plain Text
build/libs/SMPDirector-1.0.0.jar

Copy this to your server’s plugins/ folder!


🆘 Still Stuck?

Tell me:

  1. Operating System? (Windows/Mac/Linux)

  2. Do you see gradlew or gradlew.bat files?

  3. Any error message?

I can create the gradle wrapper files for you if needed!

lozoyt

nothing is working for me and now i am exhaust just you do it for me or tell the simplest way without installing anything

Kodari AI
KodariMay 20 at 10:00 am 18,728 (v2)

🎯 SIMPLEST WAY - No Installation Required

I’ll give you 2 online options that require ZERO installation:


✅ Option 1: Replit.com (Recommended - Takes 2 Minutes)

Step-by-step:

  1. Go to: https://replit.com (create free account if needed)

  2. Click: “Create Repl” button

  3. Choose: “Java” template

  4. Click: “Create Repl”

  5. Upload your files:

    • Click the 3-dot menu (⋮) next to “Files”

    • Click “Upload folder”

    • Upload your entire project folder

  6. In the Shell tab (bottom), type:

    Shell
    gradle build
    
  7. Download your .jar:

    • Navigate to build/libs/SMPDirector-1.0.0.jar in the file tree

    • Right-click → Download

Done! 🎉


✅ Option 2: Use an Online Gradle Builder

Let me create a ready-to-use ZIP file with a one-click build script:

Perfect! I can see all your source code is complete. But I found one critical issue - your build.gradle is missing XSeries dependency!

Let me fix that first:

✅ Fixed! Now here’s the SIMPLEST way:


🌐 REPLIT.COM (Takes 3 Minutes, Zero Installation)

Step-by-Step:

  1. Sign up/Login (free - uses Google/GitHub)

  2. Click “Create Repl”

  3. Select “Java” template → Name it “SMPDirector” → Click “Create”

  4. Upload your project:

    • Delete the default Main.java file

    • Click the 3-dot menu (⋮) next to “Files”

    • Select “Upload folder”

    • Upload your entire project folder (containing src/, build.gradle, etc.)

  5. Open the Shell tab (bottom of screen)

  6. Type this command:

    Shell
    gradle build
    
  7. Wait ~30 seconds for it to build

  8. Download your JAR:

    • Navigate to: build/libs/SMPDirector-1.0.0.jar

    • Right-click → Download

Done! Drop it in your server’s plugins/ folder! 🎉


📦 Alternative: GitHub Codespaces (Also Free)

  1. Upload your project to GitHub

  2. Click “Code” → “Create codespace”

  3. In terminal: gradle build

  4. Download from build/libs/SMPDirector-1.0.0.jar


🆘 Still Too Complicated?

Send your project folder to a friend with Java installed and ask them to run gradle build - it’s literally one command. The JAR will appear in build/libs/.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 1,408
src/main/java/com/smpdirector/SMPDirector.java
package com.smpdirector;

import com.smpdirector.command.SMPCommand;
import com.smpdirector.inventory.gui.GUIListener;
import com.smpdirector.inventory.gui.GUIManager;
import com.smpdirector.manager.*;
import com.smpdirector.util.ColorUtil;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SMPDirector extends JavaPlugin {
    
    private GUIManager guiManager;
    private NPCManager npcManager;
    private CombatManager combatManager;
    private PlayerManager playerManager;
    private SceneManager sceneManager;
    private ArenaManager arenaManager;
    private TeamManager teamManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.guiManager = new GUIManager();
        this.npcManager = new NPCManager(this);
        this.combatManager = new CombatManager(this);
        this.playerManager = new PlayerManager(this);
        this.sceneManager = new SceneManager(this);
        this.arenaManager = new ArenaManager(this);
        this.teamManager = new TeamManager(this);
        
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(npcManager, this);
        Bukkit.getPluginManager().registerEvents(combatManager, this);
        
        getCommand("smp").setExecutor(new SMPCommand(this));
        
        getLogger().info("SMPDirector enabled successfully!");
    }
    
    @Override
    public void onDisable() {
        if (getConfig().getBoolean("settings.clear-on-disable", true)) {
            npcManager.clearAllNPCs();
        }
        
        if (getConfig().getBoolean("settings.auto-save", true)) {
            sceneManager.saveAll();
            arenaManager.saveAll();
        }
        
        getLogger().info("SMPDirector disabled.");
    }
    
    public void sendMessage(org.bukkit.entity.Player player, String message) {
        String prefix = getConfig().getString("messages.prefix", "<gold><bold>SMP</bold></gold> <dark_gray>»</dark_gray> ");
        player.sendMessage(ColorUtil.colorize(prefix + message));
    }
}