ilikeracing8-ops

make me a donutsmp's new dialog ui home system (all of current donutsmp's home system)

Kodari AI
KodariSep 3 at 5:43 pm 2
DonutHomeUI
A comprehensive home management system for DonutSMP featuring an interactive dialog-based UI. Players can set, delete, and teleport to multiple homes through a modern GUI interface. The system includes configurable home limits per player, permission-based access, and persistent storage of home locations. Features a main menu with paginated home listings, rename functionality, and visual feedback through item icons. Supports both command and GUI interactions, with automatic world and location validation. Includes admin commands for managing other players' homes and a complete configuration system for customizing messages, limits, and GUI aesthetics.

I’ll build the home system as a standalone Paper plugin with:

  1. Dialog-based home UI and /home command flow.

  2. Persistent home storage with named homes, limits, cooldowns, and teleport safety.

  3. Home management actions: create, teleport, rename, delete, set icon, and set primary.

  4. DonutSMP-style convenience features: GUI refresh, click actions, admin home controls, permissions, and configurable messages.

Created DonutHomes, a Paper 1.21.7+ plugin featuring:

  • Dialog-based /home interface

  • Create, teleport, rename, delete, refresh, and primary-home actions

  • Named homes with configurable limits

  • Persistent YAML storage

  • Safe-location teleport validation

  • Custom home icons using the item in the player’s main hand

  • /sethome, /delhome, /renamehome, and /homeadmin

  • Permission-based home limits and administration

  • Configurable messages and teleport behavior

ilikeracing8-ops

is this plugin have dialogs like this image?

1 image attached
Kodari AI
KodariSep 3 at 5:44 pm 1

No—not exactly like the screenshot.

The plugin currently uses Paper’s native Dialog API, but its home screen is:

  • A vertical list of home buttons

  • + Create home and Refresh buttons

  • Separate home-management dialogs for teleport, rename, delete, icon, and primary home

  • No 4-column home-slot grid

  • No visible Locked slots

  • No Show More button

  • No Back button in the main home screen

  • No team-home slot

The screenshot is a DonutSMP-style custom home-slot layout with roughly 4 columns and multiple rows. The current HomeDialog uses:

Java
DialogType.multiAction(buttons, closeButton(), 1)

The final 1 creates a single-column action layout, so it will not look like the image. It would need to be redesigned with a multi-column slot grid, locked slots based on permissions, pagination, and custom button labels such as New Home, Team Home, and Locked.

ilikeracing8-ops

make it with dialogs

Kodari AI
KodariSep 3 at 5:49 pm 2
  1. Redesign the main home dialog into a DonutSMP-style slot grid.

  2. Add locked slots, pagination, New Home, Team Home, and back/refresh controls.

  3. Keep existing home actions wired to the new dialog and preserve persistence/configuration.

Updated the home system to use a DonutSMP-style dialog layout:

  • 4-column home-slot grid

  • Configurable slots per page

  • + New Home buttons for available slots

  • 🔒 Locked buttons for unavailable slots

  • Primary homes marked with ★

  • Pagination with ‹ Previous and Next ›

  • Refresh button

  • Home count and page indicator

  • Existing teleport, rename, delete, icon, and primary-home dialogs preserved

  • Added configuration:

YAML
ui:
  slots-per-page: 12
  columns: 4

The main menu now opens as a multi-column Paper Dialog instead of a single vertical list.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 919
src/main/java/com/kodari/donuthomes/DonutHomesPlugin.java
package com.kodari.donuthomes;

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class DonutHomesPlugin extends JavaPlugin {

    private HomeManager homeManager;
    private HomeDialog homeDialog;

    @Override
    public void onEnable() {
        homeManager = new HomeManager(this);
        homeManager.load();
        homeDialog = new HomeDialog(this, homeManager);

        HomeCommand command = new HomeCommand(this, homeManager, homeDialog);
        registerCommand("home", command);
        registerCommand("sethome", command);
        registerCommand("delhome", command);
        registerCommand("renamehome", command);
        registerCommand("homeadmin", command);
    }

    @Override
    public void onDisable() {
        if (homeManager != null) {
            homeManager.save();
        }
    }

    private void registerCommand(String name, HomeCommand command) {
        PluginCommand pluginCommand = getCommand(name);
        if (pluginCommand == null) {
            throw new IllegalStateException("Command is missing from plugin.yml: " + name);
        }
        pluginCommand.setExecutor(command);
        pluginCommand.setTabCompleter(command);
    }

    public Component message(String key) {
        String prefix = getConfig().getString("messages.prefix", "");
        String value = getConfig().getString("messages." + key, key);
        return LegacyComponentSerializer.legacyAmpersand().deserialize(prefix + value);
    }

    public Component message(String key, String... replacements) {
        String prefix = getConfig().getString("messages.prefix", "");
        String value = getConfig().getString("messages." + key, key);
        for (int i = 0; i + 1 < replacements.length; i += 2) {
            value = value.replace("{" + replacements[i] + "}", replacements[i + 1]);
        }
        return LegacyComponentSerializer.legacyAmpersand().deserialize(prefix + value);
    }
}