Jake florence Vesca

Create a Minecraft Paper 26.3 plugin called VEYLITH OWNER PANEL.

The plugin must provide a fully working Owner Administration GUI.

/Vop command

  • Typing "/Vop" opens the VEYLITH Owner Panel GUI.
  • Only OP players can access it.
  • Non-OP players receive: "You don't have permission to use this command!"
  • The GUI must never open for unauthorized players.

Main GUI

Create a clean, professional Minecraft inventory GUI titled:

"VEYLITH OWNER PANEL"

Inside the GUI, add these clickable options:

  1. BAN
  2. KICK
  3. TIMEOUT
  4. TELEPORT
  5. CHANGE GAMEMODE
  1. BAN
  • Clicking BAN opens a player selection GUI.
  • Display player heads and usernames.
  • Select a player to ban them.
  • Allow entering a ban reason.
  • Save bans permanently.
  • Show the banned player a ban message.
  1. KICK
  • Clicking KICK opens a player selection GUI.
  • Select a player to kick them.
  • Allow entering a kick reason.
  • Send the player a kick message.
  1. TIMEOUT
  • Clicking TIMEOUT opens a player selection GUI.
  • Select the player to timeout.
  • Allow the OP to enter a custom duration in minutes or hours.
  • Examples: 10 minutes, 30 minutes, 2 hours, 24 hours.
  • Kick the selected player immediately.
  • Show this message to the kicked player:

"You have been timed out for (TIME DURATION)"

  • Prevent the timed-out player from joining until their timeout expires.
  • Automatically remove the timeout when the duration ends.
  • Save timeout data even after server restarts.
  1. TELEPORT
  • Clicking TELEPORT opens a player selection GUI.
  • Select a player to instantly teleport to them.
  • Support online players only.
  1. CHANGE GAMEMODE
  • Clicking CHANGE GAMEMODE opens another GUI with:

- SURVIVAL - CREATIVE - ADVENTURE - SPECTATOR

  • Select a gamemode and then select the player.
  • Apply the selected gamemode immediately.

GUI requirements

  • Every option must work.
  • Add back buttons and close buttons.
  • Use player heads for player selection.
  • Prevent taking items from the GUI.
  • Use a professional VEYLITH-themed GUI design.
  • Show confirmation messages after successful actions.

Technical requirements

  • Minecraft Paper 26.3.
  • Java plugin.
  • Generate a complete working ".jar" file.
  • Include plugin.yml and all required source files.
  • Save necessary data permanently.
  • No fake buttons or unfinished features.
  • Ensure the plugin compiles and loads correctly.
Kodari AI
KodariMon at 6:54 am 2
VeylithOwnerPanel
A comprehensive Paper 26.3 admin GUI plugin providing a professional owner panel with ban, kick, timeout, teleport, and gamemode management. Features player head selection GUIs, persistent ban/timeout storage via YAML, custom reason inputs, and themed VEYLITH interface with back/close buttons. Only OP players can access via /Vop command.
  • Build the owner-only panel with player selection, navigation, and chat prompts.

  • Persist bans and timeouts, and enforce timeouts on login.

  • Register /vop and the Paper plugin metadata.

Created the VEYLITH Owner Panel with OP-only access, moderation menus, and persistent timeouts.

To generate the JAR, click Compile in Kodari’s top bar, then Compile in the window. Once it succeeds, click Download.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
4 377
src/main/java/com/veylith/ownerpanel/OwnerPanelPlugin.java
package com.veylith.ownerpanel;

import com.cryptomorin.xseries.XMaterial;
import org.bukkit.BanList;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryDragEvent;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.SkullMeta;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public final class OwnerPanelPlugin extends JavaPlugin implements Listener {
    private static final String PREFIX = "§5§lVEYLITH §8» §r";
    private static final String DENIED = "You don't have permission to use this command!";
    private static final Pattern DURATION = Pattern.compile("(?i)^\\s*(\\d+)\\s*(m|min|mins|minute|minutes|h|hr|hrs|hour|hours)\\s*$");
    private final Map<UUID, Prompt> prompts = new ConcurrentHashMap<>();
    private final Map<UUID, Long> timeouts = new HashMap<>();
    private File timeoutFile;

    private enum Action { BAN, KICK, TIMEOUT, TELEPORT, GAMEMODE }
    private enum Screen { MAIN, MODES, PLAYERS }

    private static final class Prompt {
        final Action action;
        final UUID target;
        final String name;

        Prompt(Action action, UUID target, String name) {
            this.action = action;
            this.target = target;
            this.name = name;
        }
    }

    private static final class Menu implements InventoryHolder {
        final Screen screen;
        final Action action;
        final GameMode mode;
        final int page;
        final Map<Integer, UUID> players = new HashMap<>();
        Inventory inventory;

        Menu(Screen screen, Action action, GameMode mode, int page) {
            this.screen = screen;
            this.action = action;
            this.mode = mode;
            this.page = page;
        }

        @Override
        public Inventory getInventory() {
            return inventory;
        }
    }

    @Override
    public void onEnable() {
        if (!getDataFolder().exists() && !getDataFolder().mkdirs()) {
            getLogger().severe("Unable to create plugin data folder.");
        }
        timeoutFile = new File(getDataFolder(), "timeouts.yml");
        YamlConfiguration data = YamlConfiguration.loadConfiguration(timeoutFile);
        for (String key : data.getKeys(false)) {
            try {
                long expiry = data.getLong(key);
                if (expiry > System.currentTimeMillis()) timeouts.put(UUID.fromString(key), expiry);
            } catch (IllegalArgumentException ex) {
                getLogger().warning("Ignoring invalid timeout UUID: " + key);
            }
        }
        saveTimeouts();
        Bukkit.getPluginManager().registerEvents(this, this);
        Bukkit.getScheduler().runTaskTimer(this, this::expireTimeouts, 1200L, 1200L);
    }

    @Override
    public void onDisable() {
        saveTimeouts();
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!(sender instanceof Player)) {
            sender.sendMessage("This command can only be used by a player.");
            return true;
        }
        Player player = (Player) sender;
        if (!player.isOp()) {
            player.sendMessage(DENIED);
            return true;
        }
        prompts.remove(player.getUniqueId());
        openMain(player);
        return true;
    }

    private ItemStack item(String material, String name, String... lore) {
        ItemStack item = XMaterial.matchXMaterial(material).map(XMaterial::parseItem)
                .orElseThrow(() -> new IllegalStateException("Missing material: " + material));
        ItemMeta meta = item.getItemMeta();
        meta.setDisplayName(name);
        if (lore.length > 0) meta.setLore(Arrays.asList(lore));
        item.setItemMeta(meta);
        return item;
    }

    private Menu createMenu(Screen screen, Action action, GameMode mode, int page, String title) {
        Menu menu = new Menu(screen, action, mode, page);
        menu.inventory = Bukkit.createInventory(menu, 54, title);
        ItemStack border = item("PURPLE_STAINED_GLASS_PANE", "§5 ");
        for (int slot = 0; slot < 54; slot++) {
            if (slot < 9 || slot >= 45 || slot % 9 == 0 || slot % 9 == 8) menu.inventory.setItem(slot, border);
        }
        menu.inventory.setItem(49, item("BARRIER", "§c§lCLOSE"));
        return menu;
    }

    private void openMain(Player player) {
        Menu menu = createMenu(Screen.MAIN, null, null, 0, "VEYLITH OWNER PANEL");
        menu.inventory.setItem(20, item("IRON_SWORD", "§c§lBAN", "§7Permanently ban a player."));
        menu.inventory.setItem(22, item("IRON_BOOTS", "§6§lKICK", "§7Remove a player from the server."));
        menu.inventory.setItem(24, item("CLOCK", "§e§lTIMEOUT", "§7Temporarily prevent a player from joining."));
        menu.inventory.setItem(30, item("ENDER_PEARL", "§b§lTELEPORT", "§7Teleport to an online player."));
        menu.inventory.setItem(32, item("COMMAND_BLOCK", "§d§lCHANGE GAMEMODE", "§7Choose a gamemode and player."));
        player.openInventory(menu.inventory);
    }

    private void openModes(Player player) {
        Menu menu = createMenu(Screen.MODES, Action.GAMEMODE, null, 0, "VEYLITH | GAMEMODE");
        menu.inventory.setItem(20, item("IRON_SWORD", "§a§lSURVIVAL"));
        menu.inventory.setItem(22, item("GRASS_BLOCK", "§b§lCREATIVE"));
        menu.inventory.setItem(24, item("MAP", "§e§lADVENTURE"));
        menu.inventory.setItem(31, item("ENDER_EYE", "§d§lSPECTATOR"));
        menu.inventory.setItem(45, item("ARROW", "§e§lBACK"));
        player.openInventory(menu.inventory);
    }

    private void openPlayers(Player player, Action action, GameMode mode, int requestedPage) {
        List<Player> online = new ArrayList<>(Bukkit.getOnlinePlayers());
        online.sort(Comparator.comparing(Player::getName, String.CASE_INSENSITIVE_ORDER));
        int page = Math.max(0, Math.min(requestedPage, Math.max(0, (online.size() - 1) / 28)));
        Menu menu = createMenu(Screen.PLAYERS, action, mode, page, "VEYLITH | " + action.name());
        int start = page * 28;
        for (int i = start; i < Math.min(start + 28, online.size()); i++) {
            Player target = online.get(i);
            int index = i - start;
            int slot = 10 + (index / 7) * 9 + index % 7;
            ItemStack head = item("PLAYER_HEAD", "§d" + target.getName(), "§7Click to select this player.");
            SkullMeta meta = (SkullMeta) head.getItemMeta();
            meta.setOwningPlayer(target);
            head.setItemMeta(meta);
            menu.inventory.setItem(slot, head);
            menu.players.put(slot, target.getUniqueId());
        }
        menu.inventory.setItem(45, item("ARROW", "§e§lBACK"));
        if (page > 0) menu.inventory.setItem(47, item("ARROW", "§ePrevious page"));
        if (start + 28 < online.size()) menu.inventory.setItem(51, item("ARROW", "§eNext page"));
        player.openInventory(menu.inventory);
    }

    @EventHandler
    public void onClick(InventoryClickEvent event) {
        if (!(event.getView().getTopInventory().getHolder() instanceof Menu)) return;
        event.setCancelled(true);
        if (!(event.getWhoClicked() instanceof Player)) return;
        Player actor = (Player) event.getWhoClicked();
        if (!actor.isOp()) {
            actor.closeInventory();
            actor.sendMessage(DENIED);
            return;
        }
        if (event.getRawSlot() < 0 || event.getRawSlot() >= event.getView().getTopInventory().getSize()) return;