steander907.

Stwórz plugin na dungeony który będzie konfigurowalny w INVENTORY GUI. Można tworzyć własne mapki,.customowe moby,.itemy customowe, generatory mobów, itemow, co ile pojawiają się te rzeczy, system poziomów do tego, placeholdery na wszystko i statystyki

Kodari AI
KodariFeb 22 at 9:11 pm 36,793 (v2)

I’ll create a comprehensive dungeon plugin with full GUI-based configuration for dungeons, custom mobs, items, spawners, levels, and statistics.

DungeonMaster
A comprehensive dungeon system with full GUI-based configuration. Create custom dungeons with unique arenas, custom mobs with configurable attributes, custom items with special abilities, mob and item generators with spawn intervals, multi-tier level system, complete statistics tracking, and PlaceholderAPI integration. All aspects configurable through intuitive inventory menus without editing files.

Let me create this comprehensive dungeon plugin with GUI-based configuration.

Now let me create the inventory GUI framework and implementations:

Now let me create the GUI implementations:

Now let me create the command, listener, and placeholders:

Finally, let me create the default resource files:

Perfect! I’ve created a comprehensive dungeon plugin with full GUI-based configuration. Here’s what has been implemented:

Features:

✅ GUI-Based Configuration - Complete inventory menu system for all settings ✅ Dungeon Management - Create/edit/delete dungeons with custom arenas ✅ Custom Mobs - Configurable health, damage, speed, EXP, and effects ✅ Custom Items - Unique items with enchantments, rarity, and abilities ✅ Spawner System - Mob and item generators with configurable spawn rates ✅ Level System - Multi-tier dungeon levels with increasing difficulty ✅ Statistics Tracking - Complete player stats (dungeons completed, kills, deaths) ✅ PlaceholderAPI Integration - 15+ placeholders for all data ✅ Full GUI Navigation - Intuitive menu system with back buttons

GUI Menus:

  • Main Menu - Access all features

  • Dungeon List/Editor - Manage dungeons

  • Mob List/Editor - Configure custom mobs (health, damage, speed, EXP)

  • Item List/Editor - Create custom items (rarity, unbreakable, model data)

  • Spawner List/Editor - Configure spawn intervals and locations

  • Stats GUI - View player statistics

Commands:

  • /dungeon - Open main menu

  • /dungeon create <name> - Create new dungeon

  • /dungeon delete <name> - Delete dungeon

  • /dungeon tp <name> - Teleport to dungeon

  • /dungeon stats - View your statistics

  • /dungeon reload - Reload config

Placeholders:

  • %dungeonmaster_dungeons_completed%

  • %dungeonmaster_mobs_killed%

  • %dungeonmaster_items_collected%

  • %dungeonmaster_deaths%

  • %dungeonmaster_highest_level%

  • And many more!

All configuration is done through intuitive GUIs with click-based adjustments!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
39 2,664
src/main/java/com/example/dungeonmaster/DungeonMaster.java
package com.example.dungeonmaster;

import com.example.dungeonmaster.command.DungeonCommand;
import com.example.dungeonmaster.inventory.gui.GUIListener;
import com.example.dungeonmaster.inventory.gui.GUIManager;
import com.example.dungeonmaster.listener.DungeonListener;
import com.example.dungeonmaster.manager.*;
import com.example.dungeonmaster.placeholder.DungeonPlaceholders;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DungeonMaster extends JavaPlugin {
    
    private ConfigManager configManager;
    private DungeonManager dungeonManager;
    private MobManager mobManager;
    private ItemManager itemManager;
    private SpawnerManager spawnerManager;
    private StatsManager statsManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.dungeonManager = new DungeonManager(this);
        this.mobManager = new MobManager(this);
        this.itemManager = new ItemManager(this);
        this.spawnerManager = new SpawnerManager(this);
        this.statsManager = new StatsManager(this);
        this.guiManager = new GUIManager();
        
        this.dungeonManager.loadDungeons();
        this.mobManager.loadMobs();
        this.itemManager.loadItems();
        this.spawnerManager.loadSpawners();
        this.statsManager.loadStats();
        
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new DungeonListener(this), this);
        
        new DungeonCommand(this);
        
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            new DungeonPlaceholders(this).register();
        }
        
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            this.dungeonManager.saveDungeons();
            this.mobManager.saveMobs();
            this.itemManager.saveItems();
            this.spawnerManager.saveSpawners();
            this.statsManager.saveStats();
        }, 6000L, 6000L);
        
        getLogger().info("DungeonMaster enabled successfully!");
    }
    
    @Override
    public void onDisable() {
        if (spawnerManager != null) {
            spawnerManager.stopAllSpawners();
        }
        if (dungeonManager != null) {
            dungeonManager.saveDungeons();
        }
        if (mobManager != null) {
            mobManager.saveMobs();
        }
        if (itemManager != null) {
            itemManager.saveItems();
        }
        if (spawnerManager != null) {
            spawnerManager.saveSpawners();
        }
        if (statsManager != null) {
            statsManager.saveStats();
        }
        
        getLogger().info("DungeonMaster disabled!");
    }
}