_e3rq

i want you to make me an admin plugin that make a room for admins with a bouton if i press it all of my stuff put in chest and im in creative with op and i want /admin room and password is adminsmp it will be like /adminroom [password] i want it fancy and 6000 above spawn and with everything admins need

Kodari AI
KodariNov 1 at 11:55 am 1
AdminSanctum
Creates a secure admin-only room 6000 blocks above spawn, accessible via /adminroom [password] with the password "adminsmp". Upon entry, the player's inventory is automatically stored in a chest, they are switched to creative mode with OP permissions, and they receive a fancy GUI panel containing all essential admin tools including teleportation, player management, world editing shortcuts, and server controls. The room features custom decorative blocks, lighting, and a stylish entrance portal. Exiting restores the player's original inventory and game mode.

Created the AdminRoom plugin with a private inventory vault, Creative-mode toggle, flight and heal controls, and a decorated room above the world spawn.

Use /adminroom adminsmp to unlock the room, then /admin room to reopen its menu. Change the password in plugins/AdminRoom/config.yml. Access also requires adminroom.use (default: operators).

The plugin does not grant OP; it preserves the player’s existing operator status. A room 6,000 blocks above spawn exceeds Minecraft’s normal build height, so the room is placed just below the world’s maximum build height instead.

_e3rq

i want you to make the gui more stuff like player teleportation and stuff like this fill it so it will be the best

Kodari AI
KodariNov 1 at 12:00 pm 1
  1. Inspect the existing admin GUI, session handling, and command permissions.

  2. Add practical admin actions, including player teleportation, while keeping the menu permission-gated.

  3. Wire the new controls into the existing plugin flow.

Expanded the admin menu into a 54-slot control panel with player teleportation (click to visit, shift-click to bring them to you), world-spawn teleport, flight, healing, invisibility, night vision, and potion-effect clearing. Admin actions require an authenticated admin session.

_e3rq

i want it to be not on top of spawn i want it 100 5000 100

Kodari AI
KodariNov 1 at 12:08 pm 1
  • Move the room’s center to X=100, Z=100, away from spawn.

  • Set its floor target to Y=5000, clamped below the world’s build-height limit so the room can actually be built.

The room is now centered at X=100, Z=100. Y=5000 is above Minecraft’s normal build height, so the room is built as high as the world allows instead; Minecraft won’t allow a functional room at Y=5000.

_e3rq

Expanded the admin menu into a 54-slot control panel with player teleportation (click to visit, shift-click to bring them to you), world-spawn teleport, flight, healing, invisibility, night vision, and potion-effect clearing.

Kodari AI
KodariNov 1 at 12:09 pm 1

The current menu already uses an event-driven inventory GUI, and it has player teleport/bring controls, flight, healing, spawn teleport, invisibility, night vision, and potion-effect clearing. A separate reusable GUI framework isn’t needed for this single admin panel.

I can add more controls next—such as vanish, gamemode switching, time/weather, freeze, or inventory inspection. Which ones do you want?

_e3rq

i want more controls

Kodari AI
KodariNov 1 at 12:13 pm 1
  • Add quick Survival, Adventure, and Spectator controls.

  • Add world time and weather controls.

  • Gate each action behind the existing authenticated admin session.

Added five admin controls to the GUI: set Survival, Adventure, or Spectator mode; toggle the current world between day and night; and cycle its weather through clear, rain, and thunder. These controls require an authenticated admin session.

_e3rq

how to do an authenaticated admin session

Kodari AI
KodariNov 1 at 12:14 pm 1

Run /adminroom adminsmp to authenticate and open the admin room. Once authenticated, use /admin room to reopen the control panel. The session is also permission-gated by adminroom.use (operators have it by default).

You can change the password in plugins/AdminRoom/config.yml. The plugin doesn’t grant OP.

_e3rq

i want 20 plus controls

Kodari AI
KodariNov 1 at 12:20 pm 1
  • Expand the panel with over 20 additional admin controls.

  • Add safe controls for inventory utilities, player state, world rules, time, difficulty, and dimension travel.

  • Keep actions inside the existing authenticated admin session and refresh the GUI after use.

Expanded the GUI with 39 additional controls, bringing the panel to over 50 actions. It now includes world gamerules and difficulty, time presets, weather and PvP controls, Nether/End travel, personal/world spawn setting, inventory utilities, item repair/refill, ender chest and crafting access, and seven extra potion toggles.

All controls require an authenticated admin session. Invulnerability is saved and restored when admin mode ends; clearing items only clears the temporary admin inventory, not your vaulted inventory.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 1,169
src/main/java/com/kodari/adminroom/AdminRoomPlugin.java
package com.kodari.adminroom;

import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class AdminRoomPlugin extends JavaPlugin {
    private AdminSessionManager sessionManager;
    private AdminRoomBuilder roomBuilder;
    private AdminMenu adminMenu;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        sessionManager = new AdminSessionManager(this);
        roomBuilder = new AdminRoomBuilder();
        adminMenu = new AdminMenu(sessionManager);

        Bukkit.getPluginManager().registerEvents(sessionManager, this);
        Bukkit.getPluginManager().registerEvents(adminMenu, this);

        AdminCommands commands = new AdminCommands(this);
        PluginCommand adminRoomCommand = getCommand("adminroom");
        PluginCommand adminCommand = getCommand("admin");
        if (adminRoomCommand != null) {
            adminRoomCommand.setExecutor(commands);
        }
        if (adminCommand != null) {
            adminCommand.setExecutor(commands);
        }
    }

    @Override
    public void onDisable() {
        if (sessionManager != null) {
            sessionManager.restoreAllOnlinePlayers();
        }
    }

    AdminSessionManager getSessionManager() {
        return sessionManager;
    }

    AdminRoomBuilder getRoomBuilder() {
        return roomBuilder;
    }

    AdminMenu getAdminMenu() {
        return adminMenu;
    }
}