Mod

Add a dialog feature for this plugin it's not a complicated one it's very simple for all the guis make dialog like and there are only 2 gui first let's me say how it works it dosnt affeft old gui nothing just add a new commands like dialogrtpq dialogrtpqueue dialogqueue when typing normal /queue /rtpq and /rtpqueue open the old gui don't make any changes in that but when I use commands like the dialog ones just open the gui format in dialog format like the dialogrtpq ones from this screenshot and make it respect the features like if I type /dialogrtpq join like how it bypasses the gui when typing rtpq join this also bypasses the dialog gui and instantly joins rtpqueue same goes for dialog rtpq leave /dialogrtpqueue u understand right and next is rtpgui same things even if typed /dialogrtp world or nether it rtps without opening dialog menu like how normal /rtp world works but if typed /dialogrtp it opens dialog and make a dialog with title the Random Teleport as in the normal gui with two big buttons Overworld Nether and when hover mouse to them says click to random teleport and in bottom line on hover text players and input players in that world and and and make a seprate folder named dialog and add both in then and make then editable every thing from title to hover to text and in future if I wanna add end I could just normally add without recording the whole plugin and above the buttons say line for eg select a destination world for random teleport

1 image attached
Kodari AI
KodariSep 25 at 6:52 am 1
  1. Trace the existing queue and random-teleport commands/menus so the new routes reuse their existing actions.

  2. Add editable dialog configuration and dialog-backed versions of both menus, leaving current GUI commands unchanged.

  3. Register the new commands and preserve direct join/leave/world arguments without opening a dialog.

  • Keep /rtp, /rtpqueue, and their existing aliases on the inventory GUIs; add separate dialog command routes.

  • Reuse the same RTP and queue actions, so explicit world/join/leave arguments still execute directly.

  • Put both dialog layouts in a new editable dialog/ resource folder, including configurable button text, tooltips, prompt, and world entries.

Added /dialogrtp and /dialogrtpqueue with aliases /dialogrtpq and /dialogqueue. No-argument dialog commands open the new dialogs; world arguments and queue join/leave still run directly. Existing /rtp, /rtpqueue, /rtpq, and /queue continue to use the inventory GUIs.

Dialog layouts are editable in dialog/rtp.yml and dialog/rtp-queue.yml. RTP buttons show configured worlds, tooltips, and live player counts; add another world by adding a config entry and enabling it in the RTP world settings.

Mod

Also add icons too and also they are editble via dialog menu ymal files in overworld add grass block and in nether add netherack

Kodari AI
KodariSep 25 at 6:53 am 1
  • Add a configurable item icon entry for each RTP world.

  • Render each configured item and world label in the dialog content; the Paper dialog API does not provide item icons directly on action buttons.

  • Set the defaults to GRASS_BLOCK for Overworld and NETHERRACK for Nether.

Added editable icon entries to dialog/rtp.yml: Overworld uses GRASS_BLOCK, Nether uses NETHERRACK. The icons appear in the dialog content beside their world labels; Paper’s dialog API doesn’t support item icons directly on action buttons.

Mod

Also are the dialog menu closable with esc key

Kodari AI
KodariSep 25 at 6:54 am 1

Yes. Both dialog menus explicitly allow closing with Esc (canCloseWithEscape(true)).

Mod

Does this also respect the normal rules like rtp cooldown

Kodari AI
KodariSep 25 at 6:56 am 1

Yes. Selecting Overworld or Nether in the dialog uses the same RtpManager.start(...) path as the normal GUI and /rtp, so the usual cooldown check applies, including the configured OP bypass.

Mod

There are many glithes in gui first is the rtpqueue dialog why is there a log gap between text and buttons and the no and yes button are at opposite location make it look this the older screenshot I sended of other server the button and text should be closer and the first button is no and second is yes and now the second gui the rtp gui remove those two unnecessary a overwoeld text with emoji and nether text with emoji and make all the texts white not green and alap the title should be white too and should use normal text not small caps and also I said to add icon in the text thet says overwolrd which we click and rtp and make them color white too also why is the gui not central fix that too now third things the hex codes of normal rtpq gui broke fix them too

5 images attached
Kodari AI
KodariSep 25 at 7:22 am 1
  1. Tighten the queue dialog layout and order its buttons No, then Yes.

  2. Clean up the RTP dialog labels, colors, title, and centering while keeping editable icons.

  3. Fix hex-color rendering in the normal RTP queue GUI.

Updated the dialogs and RTP queue GUI:

  • The RTP queue dialog now uses a compact two-button layout, ordered No then Yes.

  • The RTP dialog defaults now use a white, normally capitalized title and white world labels/tooltips. The duplicate world names beside the item icons are removed, and the button width is reduced to keep the choices more centered.

  • The normal RTP queue GUI now correctly renders its existing <#RRGGBB> hex colors.

Paper’s dialog API doesn’t support item icons inside clickable action buttons, so the block icons remain as separate item displays, matched to the world buttons by order.

Existing server configs aren’t overwritten on update. To see the new RTP title, colors, and width, update plugins/SoulRTP/dialog/rtp.yml to match the revised resource defaults while keeping any custom world entries.

Mod

Noo I did not said keep the icons st the place they are right now I said add emoji in the button that says overworld in bottom which by clicking we teleport do not add seprate butons for icons

Kodari AI
KodariSep 25 at 7:23 am 1

Removed the separate item displays. The emoji now appears directly in each clickable world button and is editable with the emoji setting in dialog/rtp.yml. The defaults are 🌿 for Overworld and 🔥 for Nether; these are text emojis, not the actual block textures.

Mod

No not emoji I said icons of grass block and netherrack and if paper dosnt support iconn in clickable thing so remove icon feature entirely

Kodari AI
KodariSep 25 at 7:24 am 1
  • Remove the unsupported icon/emoji setting from the RTP dialog.

  • Keep the clickable Overworld and Nether buttons as plain text, without separate icon displays.

Removed the emoji/icon feature entirely. RTP dialog buttons now display only their configured text; there are no separate icon displays.

Mod

Do 1 thing make the overworld and nether text like big as the rtpqueue and make them colored again the tooltip and text of overwolrs and nether ans if I will add end rtp later I will add it in just bottom on both in middle for now no end and also change the dislog rtpqueue as like the normal rtpq replace no button to cancel and yes button to queue and it should work as how the normal /rtpa queue button works like it's like a tiggle clicking it joins queue snd if clicked again it removes from queue

2 images attached
Kodari AI
KodariSep 25 at 7:45 am 1
  1. Update the RTP dialog’s button size, text, tooltip colors, and centered layout, with room for adding End below later.

  2. Change the queue dialog to a single Queue toggle that joins or leaves the queue like /rtpa queue.

Updated the RTP dialog buttons to width 220, matching the queue dialog, and colored the Overworld text and tooltip green and Nether red.

The queue dialog now has one Queue button that toggles joining and leaving; it stays open so the button can be clicked again. The updated defaults are in src/main/resources/dialog/rtp.yml and dialog/rtp-queue.yml. Existing installed config files aren’t overwritten, so copy the updated settings into your plugin’s dialog/ folder for the changes to appear in-game.

Mod

Why did u removed the no button I said before that rename the no button to cancel like how it was in rtpqueue menu and no I don't want to update I'll just complie it again and delete old plugin and replace it

Kodari AI
KodariSep 25 at 7:48 am 1

Restored the Cancel button first; it closes the dialog. Queue is second and still toggles joining/leaving the queue without closing the dialog. Rebuild and replace the plugin jar—no manual YAML edit is needed; the code defaults to “Cancel” if that setting is absent.

Mod

Who said you that clicking on buttons of /dialogrtpq dosnt close the menu clicking on buttons closes the menu cancel button closes and thr queue button also the I said to use the color of overworld text and nether text and toolpick text colour how u did at first like the green one like this

1 image attached
Kodari AI
KodariSep 25 at 7:59 am 1

You’re right—I misunderstood. Both Cancel and Queue now close /dialogrtpq when clicked; Queue still toggles joining or leaving the RTP queue. Overworld, Nether, and their tooltips are green like in your screenshot. Rebuild the plugin and replace the jar; the updated defaults are included.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
24 1,721
src/main/java/com/soulrtp/SoulRTP.java
package com.soulrtp;

import com.soulrtp.command.QueueCommand;
import com.soulrtp.command.QueueSoundCommand;
import com.soulrtp.command.RtpCommand;
import com.soulrtp.command.ZoneCommand;
import com.soulrtp.dialog.DialogManager;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

public final class SoulRTP extends JavaPlugin {
    private MessageManager messages;
    private PlayerDataManager playerData;
    private RtpEngine engine;
    private RtpManager rtp;
    private RtpQueueManager queue;
    private RtpZoneManager zone;
    private GuiManager guis;
    private DialogManager dialogs;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        initializeGuiFiles();
        detectLoadedWorlds();
        messages = new MessageManager(this);
        playerData = new PlayerDataManager(this);
        engine = new RtpEngine(this);
        engine.startCache();
        rtp = new RtpManager(this);
        queue = new RtpQueueManager(this);
        zone = new RtpZoneManager(this);
        guis = new GuiManager(this);
        dialogs = new DialogManager(this);
        registerCommands();
        Bukkit.getPluginManager().registerEvents(new SoulRtpListener(this), this);
        for (org.bukkit.entity.Player player : Bukkit.getOnlinePlayers()) playerData.load(player);
        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) new SoulRtpPlaceholderExpansion(this).register();
    }

    @Override
    public void onDisable() {
        if (queue != null) queue.stop();
        if (zone != null) zone.shutdown();
        if (playerData != null) playerData.saveAll();
    }

    public void reloadSoulRtp(CommandSender sender) {
        reloadConfig();
        detectLoadedWorlds();
        queue.reloadSettings();
        messages.sendConsole(sender, "reloaded");
    }

    public MessageManager messages() { return messages; }
    public PlayerDataManager playerData() { return playerData; }
    public RtpEngine engine() { return engine; }
    public RtpManager rtp() { return rtp; }
    public RtpQueueManager queue() { return queue; }
    public RtpZoneManager zone() { return zone; }
    public GuiManager guis() { return guis; }
    public DialogManager dialogs() { return dialogs; }

    private void initializeGuiFiles() {
        File folder = new File(getDataFolder(), "gui");
        if (!folder.exists()) folder.mkdirs();
        for (String resource : new String[]{"gui/rtp-menu.yml", "gui/rtp-queue-menu.yml"}) {
            if (!new File(getDataFolder(), resource).exists()) saveResource(resource, false);
        }
        File dialogFolder = new File(getDataFolder(), "dialog");
        if (!dialogFolder.exists()) dialogFolder.mkdirs();
        for (String resource : new String[]{"dialog/rtp.yml", "dialog/rtp-queue.yml"}) {
            if (!new File(getDataFolder(), resource).exists()) saveResource(resource, false);
        }
    }

    private void detectLoadedWorlds() {
        for (World world : Bukkit.getWorlds()) {
            String path = "rtp.worlds." + world.getName() + ".enabled";
            if (!getConfig().contains(path)) getConfig().set(path, true);
        }
        saveConfig();
    }

    private void registerCommands() {
        getCommand("rtp").setExecutor(new RtpCommand(this));
        getCommand("rtp").setTabCompleter(new RtpCommand(this));
        getCommand("dialogrtp").setExecutor(new RtpCommand(this, true));
        getCommand("dialogrtp").setTabCompleter(new RtpCommand(this, true));
        getCommand("rtpqueue").setExecutor(new QueueCommand(this));
        getCommand("rtpqueue").setTabCompleter(new QueueCommand(this));
        getCommand("dialogrtpqueue").setExecutor(new QueueCommand(this, true));
        getCommand("dialogrtpqueue").setTabCompleter(new QueueCommand(this, true));
        getCommand("rtpqueuesound").setExecutor(new QueueSoundCommand(this));
        getCommand("rtpzone").setExecutor(new ZoneCommand(this));
        getCommand("rtpzone").setTabCompleter(new ZoneCommand(this));
        getCommand("soulrtp").setExecutor((sender, command, label, args) -> {
            if (!sender.hasPermission("soulrtp.reload")) { messages.sendConsole(sender, "no-permission"); return true; }
            if (args.length == 1 && args[0].equalsIgnoreCase("reload")) reloadSoulRtp(sender);
            else sender.sendMessage("Usage: /soulrtp reload");
            return true;
        });
    }
}