aztec0.0

make me a minecraft plugin that when someone does the command /panel it pops up a menu

Kodari AI
KodariMay 21 at 10:40 pm 5,790 (v2)

I’ll create a simple Minecraft plugin with a GUI panel that opens when players use the /panel command.

PanelGUI
A clean and simple GUI panel system that opens an interactive chest menu when players execute the /panel command. Features a button-based inventory interface with example buttons for info, settings, and navigation. Built on an event-driven architecture with centralized GUI management for easy extensibility.

Done! Created PanelGUI — a GUI panel plugin with the /panel command.

What it does:

  • /panel opens a 27-slot chest GUI with three buttons:

    • Info (slot 11) - Sends information messages

    • Settings (slot 13) - Preview for settings functionality

    • Close (slot 15) - Closes the menu

The plugin uses an event-driven GUI framework with button handlers, making it easy to add more buttons or create additional menus. Just extend InventoryGUI and add buttons in the decorate() method.

aztec0.0

remove everything but make it a menu for Screenshare button and when clicked it exits the menu then makes you type the members name in chat it doesnt show publicly but it makes it go to that player to have another menu for freeze, or ss which the ss menu would teloport them to the coordnites -102 93 -117

Kodari AI
KodariMay 21 at 10:46 pm 23,764 (v2)

I’ll transform this into a screenshare management plugin with a player selection system and action menu.

Done! Transformed the plugin into a screenshare management system:

Flow:

  1. /panel opens menu with Screenshare button

  2. Click Screenshare → menu closes, prompts for player name in chat (hidden from others)

  3. Type player name → opens action menu with Freeze and SS buttons

  4. Freeze - Sets walk/fly speed to 0

  5. SS - Teleports to -102, 93, -117 and freezes them

aztec0.0

make it so you need the luckperms permission Screenshare.permission to be able to use all the commands inside of it

Kodari AI
KodariMay 21 at 10:50 pm 17,235 (v2)

I’ll add the LuckPerms permission check Screenshare.permission to restrict access to all commands and GUI interactions.

Done! Added the permission check Screenshare.permission throughout the plugin:

Protected locations:

  • /panel command - checks permission before opening menu

  • Screenshare button - validates permission before allowing player name input

  • Freeze button - checks permission before freezing target

  • SS button - checks permission before teleporting target

Players without the permission will receive: §c§lError §8» §7You don't have permission to use this!

aztec0.0

I cant move at all and im not frozen

Kodari AI
KodariMay 21 at 10:51 pm 16,162 (v2)

I need to check the freeze logic to see what’s causing the movement issue.

I see the issue - there’s no way to unfreeze players! Once frozen, their speeds stay at 0. Let me add an Unfreeze button to restore movement.

Done! I’ve added an Unfreeze button to the action menu. Now you have three options:

Buttons in the action menu:

  • Freeze (slot 11) - Sets speed to 0

  • Unfreeze (slot 13) - Restores normal speed (0.2 walk, 0.1 fly)

  • SS (slot 15) - Teleports and freezes

Click the Unfreeze button to restore movement. This will fix the issue where players couldn’t move after being frozen.

aztec0.0

now make me a /shardshop, which is built into one of my pugins for sdhards and you can buy spawners from the smartspawner plugin Only iron golems which are 1000 per and skelletons which are 500 per

Kodari AI
KodariMay 21 at 10:57 pm 13,540 (v2)

I’ll create a /shardshop command with a GUI to buy Iron Golem and Skeleton spawners using shards currency.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
16 707
src/main/java/com/example/panelgui/PanelGUI.java
package com.example.panelgui;

import com.example.panelgui.commands.PanelCommand;
import com.example.panelgui.commands.ShardShopCommand;
import com.example.panelgui.economy.ShardsEconomy;
import com.example.panelgui.economy.ShardsEconomyImpl;
import com.example.panelgui.inventory.gui.GUIListener;
import com.example.panelgui.inventory.gui.GUIManager;
import com.example.panelgui.listeners.ChatInputListener;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class PanelGUI extends JavaPlugin {
    @Getter
    private GUIManager guiManager;
    @Getter
    private ChatInputListener chatInputListener;
    @Getter
    private ShardsEconomy shardsEconomy;
    
    @Override
    public void onEnable() {
        this.guiManager = new GUIManager();
        this.chatInputListener = new ChatInputListener(this);
        this.shardsEconomy = new ShardsEconomyImpl(this);
        
        GUIListener guiListener = new GUIListener(this.guiManager);
        Bukkit.getPluginManager().registerEvents(guiListener, this);
        Bukkit.getPluginManager().registerEvents(this.chatInputListener, this);
        
        this.getCommand("panel").setExecutor(new PanelCommand(this));
        this.getCommand("shardshop").setExecutor(new ShardShopCommand(this));
        
        this.getLogger().info("PanelGUI has been enabled!");
    }
    
    @Override
    public void onDisable() {
        this.getLogger().info("PanelGUI has been disabled!");
    }
}