Ramhet Meena

Fix 2 things first the send tpa gyi menus arnt there like accept tps gyi menus are there and in dislog both send and accept are there so kindly sdd send tpa and send tphere , tpahere guis second change thr color of the dialog menus prompt only and change title and the prompt text to white all don't change color of buttons keep them as it is and also look at the username box its so big so reduce the box size a little so the player head looks close to the playername and add normal sending tpa and tpahere, tphere guis and also check if there are to loop exploits or any glitch or bugs if there are fix them and also change thr message when to request is received from [Click to Accept] to [Click to accept or type /tpaccept %sendername% and alo this text is also in blue color as the click to accept and this is also minimessage means clicking this also accepts request and also change the default placeholder to %playercombatstatus_status% and values for if in cinbat Yes or yes ignore capitalisation and if not it says No next thing add command allias like /tpadeny of tpdeny tpacancel of tpcancel and tphere of tpahere and tpaaccept of tpaccept and like /dialogtphere and /dialogtpahere of dialog version of all supported should also work

3 images attached
Kodari AI
KodariOct 1 at 4:24 am 2
  1. Add the missing normal send-request GUIs for TPA and TPHERE/TPAHERE.

  2. Update dialog title/prompt styling and tighten the player-name input layout.

  3. Update the received-request message, interactive accept text, and combat-status placeholder behavior.

  4. Add the requested command aliases and dialog command variants.

  5. Inspect request handling for loop exploits or bugs and fix confirmed issues.

  1. Added normal /tpa and /tpahere send-confirmation GUIs with cancel and send buttons. /tphere opens the TPAHERE menu too.

  2. Changed dialog titles and prompts to white without altering button colors; narrowed the player-name display to 150px.

  3. Updated received-request text to blue, clickable “Click to accept or type /tpaccept <sender>”. The default combat placeholder is now %playercombatstatus_status%; Yes/yes is treated as in combat, while No is not.

  4. Added /tpadeny, /tpcancel, /tphere, /tpaaccept, /dialogtphere, and /dialogtpaaccept aliases.

  5. Fixed three verified issues: duplicate requests could become orphaned when duplicate blocking was disabled; changing worlds did not cancel a teleport countdown; and GUI/dialog acceptance could replace an active countdown.

Ramhet Meena

Why didn't u added thr information icon in send tpa and send tpahere menu like there is in accept menus guis

Kodari AI
KodariOct 1 at 4:45 am 1

I missed the information icon in the send menus. Added the matching feather icon to both /tpa and /tpahere send GUIs, with the target’s world and ping shown in its lore.

Ramhet Meena

One more thing when the opponene sended me tpa bug he got tagged in combat after so I tried accepting his req and yes the check worked but when I clicked the accept button in gui both error sound and accept sound played so do 1 thing nstead of sending that sound on click make sure the sound sends when successful tp is sent and check if there are same more bugs two sound

Kodari AI
KodariOct 1 at 4:58 am 1
  1. Trace GUI acceptance and teleport-success sounds; move accept feedback to the successful teleport path.

  2. Check the related request/deny/cancel sound paths for other duplicate or premature sounds and fix any confirmed cases.

Fixed the duplicate sounds. Accept/deny GUIs no longer play a sound before the request is checked: failed acceptance now plays only the error sound, while successful acceptance uses the existing success sound. The send-confirm sound now plays only after the request is successfully created. I also checked the other GUI action paths and removed the same premature/duplicate sound behavior from deny and send-confirm clicks.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
25 1,750
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.gui.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;
    @Getter private TpaGuiManager guiManager;
    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);
        guiManager = new TpaGuiManager(this, messageManager);
        guiManager.reload();
        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 (guiManager != null) guiManager.reload();
        if (dialogManager != null) dialogManager.reload();
    }
}