pepeno___

plugin urob prepracovane admin INVENTORY GUI s dobrymi prvkami admin INVENTORY GUI

Kodari AI
KodariJun 6 at 4:18 pm 1

I’ll build a comprehensive admin inventory GUI plugin with a polished interface and practical admin tools.

AdminInventoryGUI
A feature-rich admin inventory GUI system for server management. Includes an admin panel with player management (inventory/ender chest viewer-editor, heal, feed, gamemode, kick, teleport), server info display (TPS, memory, uptime), quick actions (time, weather, kill-all-mobs), and confirmation dialogs. Clean navigation with paginated player lists, back buttons, and role-based permission checks throughout the interface.

All 19 files created. Here’s the project structure:

Plain Text
src/
└── main/
    ├── java/com/admininv/
    │   ├── AdminInvPlugin.java              # Main class, registers GUI + command
    │   ├── commands/
    │   │   └── AdminInvCommand.java          # /admininv with subcommands
    │   ├── gui/
    │   │   ├── AdminPanelGUI.java            # Main hub (6 rows, 6 feature buttons)
    │   │   ├── PlayerListGUI.java            # Paginated online player browser
    │   │   ├── PlayerActionsGUI.java         # 10 action buttons per player
    │   │   ├── PlayerInventoryGUI.java       # Full inv editor (armor + offhand)
    │   │   ├── PlayerEnderChestGUI.java      # Ender chest viewer/editor
    │   │   ├── ServerInfoGUI.java            # Server stats (players, mem, uptime)
    │   │   ├── ConfirmGUI.java               # Confirm/cancel prompt
    │   │   └── GamemodeGUI.java              # 4 gamemode selector
    │   ├── inventory/
    │   │   ├── InventoryHandler.java         # Event interface
    │   │   ├── InventoryButton.java          # Builder for clickable buttons
    │   │   ├── InventoryGUI.java             # Abstract base (lazy init, auto-decorate)
    │   │   └── gui/
    │   │       ├── GUIManager.java           # Tracks active inventories
    │   │       └── GUIListener.java          # Listens to inventory events
    │   └── utils/
    │       ├── ChatUtil.java                 # & color translation
    │       └── ItemBuilder.java              # Item creation with player head support
    ├── resources/
    │   └── plugin.yml
    └── build.gradle

Key features:

  • Admin Panel — 6 navigation buttons (Player Manager, Inventory Viewer, Ender Chest, Quick Actions, Server Info, Teleport Manager) with a decorative border

  • Player List — Paginated (36/page) with player heads, ping, gamemode, world display. Multiple modes for different workflows

  • Player Actions — Per-player menu with Heal, Feed, Gamemode, Teleport To/Here, View Inventory, View Ender Chest, Clear Inventory (with confirmation), Kick (with confirmation)

  • Inventory Viewer — Full inventory editor with armor and offhand slots. Admins can freely take/place items. Auto-syncs changes on close

  • Ender Chest Viewer — Same interaction model, auto-syncs on close

  • Server Info — Online/total players, server/API version, memory usage with percentage, uptime with days/hours/minutes

  • Confirmation GUI — Two-button confirm/reject for destructive actions, supports dual-confirm for teleport options

  • Gamemode GUI — Shows currently active gamemode with glow indicator for each option

  • Permissions — 12 granular permissions (admininv.*, admininv.inventory, admininv.kick, etc.)

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 1,674
src/main/java/com/admininv/AdminInvPlugin.java
package com.admininv;

import com.admininv.commands.AdminInvCommand;
import com.admininv.inventory.gui.GUIListener;
import com.admininv.inventory.gui.GUIManager;
import org.bukkit.plugin.java.JavaPlugin;

public class AdminInvPlugin extends JavaPlugin {
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        guiManager = new GUIManager();
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getCommand("admininv").setExecutor(new AdminInvCommand(guiManager));
        getLogger().info("AdminInventoryGUI has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("AdminInventoryGUI has been disabled.");
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }
}