zcqed
📎 1 file 2,220 chars
📄
pasted-code-1777193727077.txt
txt 71 lines
▶
Create a Minecraft Spawner Plugin that replicates a modern DonutSMP-style spawner system with a fully INVENTORY GUI-based interface identical in style and functionality to premium BuiltByBit plugins.

The plugin must include:

INVENTORY GUI Design (VERY IMPORTANT):

Clean, modern inventory-based INVENTORY GUI (like the images provided)
Dark-themed aesthetic with simple layouts
Multiple menus:
Main Spawner INVENTORY GUI (shows all spawners in grid layout)
Sell INVENTORY GUI (confirm sell menu with green/red buttons)
Spawner Panel INVENTORY GUI (management interface)
Spawner List INVENTORY GUI (category-based or all spawners view)
Confirmation INVENTORY GUI (for removing/selling spawners)
Use glass panes for decoration
Clear item icons for each spawner type
Hover tooltips with detailed info (spawner type, amount, location, actions)

Spawner Features:

Support ALL vanilla spawner types (Zombie, Skeleton, Creeper, Iron Golem, Blaze, Enderman, etc.)
Each spawner should store:
Mob type
Amount/count
World + coordinates
Left-click = remove spawner
Right-click = teleport to spawner
Shift-click = additional actions (optional)

Spawner Management Panel:

Shows total spawners owned
Button to view all spawners
Button to sell spawners
Button to manage or remove spawners

Sell System:

INVENTORY GUI-based selling system
Confirm sell menu (green = confirm, red = cancel)
Custom prices per spawner type
Economy support (Vault)

Extra Features:

Stackable spawners
Drag & drop support
Fully configurable menus (config.yml)
Permission-based access
Smooth performance (no lag)

Commands:

/spawner (open main INVENTORY GUI)
/spawner give   
/spawner reload

Goal:
The plugin should visually and functionally match a premium-quality DonutSMP spawner system with the same INVENTORY GUI flow and user experience as shown in the images.

Ако искаш да стане още по-точно като на снимките, можеш да добавиш това отдолу:

“Make the INVENTORY GUI layouts match exactly:

Grid-based spawner storage (like a chest full of same items)
Minimal text, focus on visuals
Use colored glass panes for confirm/cancel
Use lore text like:
‘Right-click to teleport’
‘Left-click to remove’
‘Click to view all spawners’”
Kodari AI
KodariApr 26 at 9:17 am 38,810 (v2)

I’ll create a premium DonutSMP-style spawner management plugin with modern inventory GUIs.

SpawnerSystem
A premium DonutSMP-style spawner management plugin with modern GUI-based interfaces. Track, manage, and sell spawners through multiple interactive menus. Features include stackable spawners, teleportation to spawner locations, economy integration via Vault, and a sleek dark-themed aesthetic. Supports all vanilla mob types with customizable prices and permissions.

Now I’ll create the remaining core files:

Now creating the GUI implementations:


Complete! Premium DonutSMP-style spawner system with modern GUI-based interfaces created. Features include:

✅ 5 Interactive GUIs: Main menu, spawner list, sell menu, confirmation dialogs, and management panel
✅ Full spawner tracking: Location, type, amount stored per player
✅ Economy integration: Vault support with configurable prices
✅ Teleportation: Right-click spawners to teleport
✅ Removal system: Left-click with confirmation dialogs
✅ Dark-themed aesthetic: Glass pane decorations, clean layouts
✅ Stackable spawners: Configurable stacking system
✅ Commands: /spawner, /spawner give, /spawner reload
✅ Permissions: Full permission system included

[Generation stopped]

zcqed

The compilation failed with this error:

code
Compilation failed with 8 error(s):

ERROR in src/main/java/com/example/spawnersystem/util/ItemBuilder.java at line 41: cannot find symbol
            spawner = new ItemStack(Material.MOB_SPAWNER);
                                            ^
  symbol: variable MOB_SPAWNER
  location: class Material

ERROR in src/main/java/com/example/spawnersystem/util/ItemBuilder.java at line 60: cannot find symbol
        Material glassMaterial = Material.STAINED_GLASS_PANE;
                                         ^
  symbol: variable STAINED_GLASS_PANE
  location: class Material

ERROR in src/main/java/com/example/spawnersystem/listener/SpawnerPlaceListener.java at line 26: cannot find symbol
        if (block.getType() != Material.MOB_SPAWNER) {
                                       ^
  symbol: variable MOB_SPAWNER
  location: class Material

ERROR in src/main/java/com/example/spawnersystem/listener/SpawnerPlaceListener.java at line 60: cannot find symbol
        if (block.getType() != Material.MOB_SPAWNER) {
                                       ^
  symbol: variable MOB_SPAWNER
  location: class Material

ERROR in src/main/java/com/example/spawnersystem/inventory/impl/SellMenuGUI.java at line 72: cannot find symbol
                            Material.MOB_SPAWNER,
                                    ^
  symbol: variable MOB_SPAWNER
  location: class Material

ERROR in src/main/java/com/example/spawnersystem/inventory/impl/SellConfirmGUI.java at line 50: cannot find symbol
                        Material.MOB_SPAWNER,
                                ^
  symbol: variable MOB_SPAWNER
  location: class Material

ERROR in src/main/java/com/example/spawnersystem/inventory/impl/SpawnerListGUI.java at line 69: cannot find symbol
                            Material.MOB_SPAWNER,
                                    ^
  symbol: variable MOB_SPAWNER
  location: class Material

ERROR in src/main/java/com/example/spawnersystem/inventory/impl/ConfirmRemoveGUI.java at line 41: cannot find symbol
                        Material.MOB_SPAWNER,
                                ^
  symbol: variable MOB_SPAWNER
  location: class Material


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/example/spawnersystem/util/ItemBuilder.java
  - src/main/java/com/example/spawnersystem/listener/SpawnerPlaceListener.java
  - src/main/java/com/example/spawnersystem/inventory/impl/SellMenuGUI.java
  - src/main/java/com/example/spawnersystem/inventory/impl/SellConfirmGUI.java
  - src/main/java/com/example/spawnersystem/inventory/impl/SpawnerListGUI.java
  - src/main/java/com/example/spawnersystem/inventory/impl/ConfirmRemoveGUI.java

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

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
22 1,419
src/main/java/com/example/spawnersystem/SpawnerSystem.java
package com.example.spawnersystem;

import com.example.spawnersystem.command.SpawnerCommand;
import com.example.spawnersystem.inventory.gui.GUIListener;
import com.example.spawnersystem.inventory.gui.GUIManager;
import com.example.spawnersystem.listener.SpawnerPlaceListener;
import com.example.spawnersystem.manager.EconomyManager;
import com.example.spawnersystem.manager.SpawnerManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SpawnerSystem extends JavaPlugin {
    private SpawnerManager spawnerManager;
    private EconomyManager economyManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("spawners.yml", false);
        
        this.economyManager = new EconomyManager(this);
        this.spawnerManager = new SpawnerManager(this);
        this.guiManager = new GUIManager();
        
        getCommand("spawner").setExecutor(new SpawnerCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new SpawnerPlaceListener(this), this);
        
        getLogger().info("SpawnerSystem has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (spawnerManager != null) {
            spawnerManager.saveSpawners();
        }
        getLogger().info("SpawnerSystem has been disabled!");
    }
    
    public void reload() {
        reloadConfig();
        spawnerManager.loadSpawners();
    }
}