Mod

Make a seprate dialog folder snd list all the dialogs there so I can custumize there name button name size and prompt size and everything and make the default prompt size 500 and button size 200 and default tooltip for cancel button click to cancel in white and send tpa click to send tpa and send tpahere click to send tpahere and accept for the tpahere button tooltip click to accept tpahere and accept for tha tpa for click to accept tpa dont change button text only change the tooltip and the button and prompt size and also move then into a dialog folder so they're editable

Kodari AI
KodariSep 25 at 9:07 am 1
  1. Find the existing dialog definitions/config flow and identify where customization belongs.

  2. Move dialog settings into a dedicated editable folder, preserving button text while adding the requested defaults/tooltips.

Moved the four Paper dialog definitions into editable YAML files under plugins/SoulTPA/dialogs/, created from bundled defaults and reloaded by /soultpa reload.

Each file now controls its title, prompt, button labels and tooltips, escape behavior, prompt width (500) and button width (200). Existing button text is unchanged; the requested white tooltips are set for cancel and each TPA action.

Mod

Button width set to 220 and prompt width they looks good according to you

Kodari AI
KodariSep 25 at 9:09 am 1

Set all four dialogs to a 220 px button width and kept the 500 px prompt width—that gives the prompt room to read comfortably while keeping buttons balanced.

Mod

What is prompt width btw

Kodari AI
KodariSep 25 at 9:09 am 1

Prompt width is the horizontal width, in pixels, of the dialog’s prompt/content area. At 500 px, the text has more room before wrapping onto another line. It doesn’t change the text size or button width; the buttons are set separately to 220 px.

Mod

Now some changes in the vault feature very little feature not much on the twb completion of /pv add the number of vaults avalable and make default vsult to 2 like if a person has 2 vaults if he types /pv and space show in tab completion 1 and 1 and for operator only show up to 20

Kodari AI
KodariSep 25 at 9:22 am 1

Plan:

  1. Find /pv command handling, vault limits, and tab completer.

  2. Update the default to 2 vaults and make completions reflect the player’s available vaults, capped at 20 for operators.This project has no /pv command or vault feature to update. Adding the requested completion and default of 2 would require adding a player-vault system first. Do you want me to build that, or is the vault feature in a different plugin/project?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
21 1,453
src/main/java/com/soulshardmc/soultpa/SoulTPA.java
package com.soulshardmc.soultpa;

import com.soulshardmc.soultpa.command.TpaCommand;
import com.soulshardmc.soultpa.config.MessageManager;
import com.soulshardmc.soultpa.data.PlayerDataManager;
import com.soulshardmc.soultpa.dialog.TpaDialogManager;
import com.soulshardmc.soultpa.gui.TpaGuiManager;
import com.soulshardmc.soultpa.listener.TpaListener;
import com.soulshardmc.soultpa.placeholder.TpaPlaceholderExpansion;
import com.soulshardmc.soultpa.request.RequestManager;
import com.soulshardmc.soultpa.teleport.TeleportManager;
import lombok.Getter;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class SoulTPA extends JavaPlugin {
    @Getter private MessageManager messageManager;
    @Getter private PlayerDataManager playerDataManager;
    @Getter private RequestManager requestManager;
    @Getter private TeleportManager teleportManager;
    @Getter private TpaCommand tpaCommand;
    @Getter private TpaDialogManager dialogManager;
    private TpaPlaceholderExpansion expansion;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        messageManager = new MessageManager(this);
        playerDataManager = new PlayerDataManager(this);
        requestManager = new RequestManager(this, messageManager);
        teleportManager = new TeleportManager(this, messageManager);
        TpaGuiManager guiManager = new TpaGuiManager(this, messageManager);
        dialogManager = new TpaDialogManager(this, messageManager);
        dialogManager.reload();
        tpaCommand = new TpaCommand(this, messageManager, playerDataManager, requestManager, teleportManager, guiManager, dialogManager);

        String[] commands = {"tpa", "tpahere", "tpaccept", "dialog", "dialogtpa", "dialogtpahere", "dialogtpaccept",
                "tpdeny", "tpacancel", "tpauto", "tpaguitoggle", "tpatoggle", "tpaheretoggle", "tp", "soultpa"};
        for (String name : commands) {
            PluginCommand command = getCommand(name);
            if (command != null) {
                command.setExecutor(tpaCommand);
                command.setTabCompleter(tpaCommand);
            }
        }
        getServer().getPluginManager().registerEvents(new TpaListener(this), this);
        if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            expansion = new TpaPlaceholderExpansion(this);
            expansion.register();
        }
    }

    @Override
    public void onDisable() {
        if (teleportManager != null) teleportManager.shutdown();
        if (tpaCommand != null) tpaCommand.stopAllAutoReminders();
        if (playerDataManager != null) playerDataManager.saveAll();
        if (expansion != null) expansion.unregister();
    }

    public void reloadPluginConfiguration() {
        reloadConfig();
        messageManager.reload();
        if (dialogManager != null) dialogManager.reload();
    }
}