C

make a plugin 26.2 java that adds the command tpa that allows you to ask someone to tpa to him/her add /tphere which works the same like the tpa command but you ask someone to teleport to you for example /tphere notch and he accepts by /tpaccept and he teleports to you add a command tpa autotp <name_of_the_person_you_want_auto_tp> for example if you do tpa autotp notch he will be able to teleport to me without me accepting the teleport request add /tpadeny that denys the teleport request. both the tpaaccept and tpadeny work with tpa here and tpa commands. make it visible on the chat that someone requested you a teleport request and make it able so if you click at the part when it says accept tpa then it automatically accepts without typing the command also add the tpa deny button

Kodari AI
KodariSep 5 at 9:26 am 1
TeleportRequestSystem
A Minecraft 1.26.2 plugin implementing a comprehensive teleport request system. Players can request teleportation to another player using /tpa, or request another player to come to them using /tphere. Recipients receive a chat message with clickable accept and deny buttons, or can respond via /tpaccept and /tpadeny commands. The /tpa autotp command bypasses acceptance, allowing instant teleportation to a specified player. All requests are tracked per-player, with clear chat notifications, timeout handling, and proper error messages for invalid targets or pending requests.
  1. Create the Gradle/Paper plugin project for Java 21 and Minecraft 1.21+.

  2. Add /tpa, /tphere, persistent /tpa autotp, accept/deny commands, request expiry, and clickable chat actions.

  3. Register all commands and provide concise usage messages.

Created the KodariTPA Paper plugin with:

  • /tpa <player> — request to teleport to a player.

  • /tphere <player> — request a player to teleport to you.

  • /tpa autotp <player> — allow that player to teleport to you without approval.

  • /tpaccept and /tpaaccept — accept requests.

  • /tpadeny, /tpdeny, and /tpa-deny — deny requests.

  • Clickable [Accept] and [Deny] chat buttons.

  • Request expiration configurable in config.yml.

  • Online-player tab completion.

  • Persistent auto-teleport permissions in the plugin configuration.

  • Paper API setup with Java 21.

C

add an option to untpauto someone

Kodari AI
KodariSep 6 at 4:32 pm 1
  1. Add /tpa untpauto <player> to remove an existing auto-teleport permission.

  2. Update command handling, tab completion, and usage/command metadata.

Added /tpa untpauto <player>.

It now:

  • Removes the player’s auto-teleport permission.

  • Saves the change persistently.

  • Shows confirmation or a message if no permission existed.

  • Supports tab completion.

  • Updates the /tpa usage text.

C

add an anti logout when you get hit you get 20 seconds of anty logout and when you leave the server while you are in combat you get automatically killed. on the action bar above the hotbar make the cooldown visible like it counts down. make it to when you are in combat you cannot type any commands. make it when you die the cooldown resets. make it so when a player is in combat you cannot teleport to them by tpa or tpa autotp.

Kodari AI
KodariSep 8 at 5:00 pm 2
  1. Add combat tagging with a 20-second countdown and action-bar display.

  2. Block commands and TPA targeting while tagged, kill players who disconnect in combat, and clear combat on death.

  3. Preserve the existing TPA/auto-TP behavior while integrating combat checks.

  1. Added 20-second anti-logout combat tagging.

  2. Added an action-bar countdown showing remaining combat time.

  3. Players who disconnect during combat are automatically killed.

  4. All commands are blocked while combat-tagged.

  5. Combat cooldown resets when a player dies.

  6. /tpa and auto-teleport requests cannot target players in combat.

  7. Combat is triggered by melee and projectile damage.

  8. Added configurable combat-tag-seconds: 20 to config.yml.

C

add a tpacancel command that cancels pending request from you (for example if you tpa to a wrong person)

Kodari AI
KodariSep 8 at 5:35 pm 1
  1. Add /tpacancel command registration and usage metadata.

  2. Add outgoing-request cancellation in TeleportManager.

  3. Handle cancellation feedback and notify the request recipient.

Added /tpacancel.

  • Cancels your pending outgoing teleport request.

  • Notifies you that it was cancelled.

  • Notifies the recipient that the request was cancelled.

  • Handles expired or missing requests.

  • Registered the command in plugin.yml.

C

make it so mobs and non player entities do not enable the anti logout cooldown

Kodari AI
KodariSep 8 at 5:57 pm 1

Updated combat tagging so mobs and non-player entities do not start anti-logout combat.

Combat is now enabled only when:

  • A player damages another player.

  • A player attacks another player with a projectile.

  • Both the victim and player attacker receive the combat cooldown.

C

still it makes me in combat when a mob atacks me

Kodari AI
KodariSep 8 at 6:02 pm 1

Fixed the combat listener so mobs and other non-player entities cannot trigger anti-logout.

Combat now starts only when:

  • A player damages another player.

  • A player’s projectile damages another player.

Self-damage is also ignored.

C

i noticed an error if you have more than one pending teleport request when you accept the tpa to the first person the other teleport request cancels automatically and it says that there isnt any pending requests

Kodari AI
KodariSep 11 at 3:55 pm 1

Fixed the pending-request bug.

  • Players can now have multiple incoming teleport requests at once.

  • Accepting or denying one request only removes that specific request.

  • The other pending requests remain available.

  • Clickable Accept and Deny buttons now target the exact request.

  • /tpaccept and /tpadeny without an ID still handle the oldest active request.

  • Multiple outgoing requests are also tracked independently.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 791
src/main/java/com/kodari/tpa/TpaPlugin.java
package com.kodari.tpa;

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

public final class TpaPlugin extends JavaPlugin {
    private TeleportManager teleportManager;
    private CombatManager combatManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        combatManager = new CombatManager(this);
        teleportManager = new TeleportManager(this, combatManager);
        TpaCommand command = new TpaCommand(teleportManager, combatManager);

        getServer().getPluginManager().registerEvents(new CombatListener(combatManager), this);

        registerCommand("tpa", command);
        registerCommand("tphere", command);
        registerCommand("tpaccept", command);
        registerCommand("tpadeny", command);
        registerCommand("tpacancel", command);
    }

    @Override
    public void onDisable() {
        if (combatManager != null) {
            combatManager.clear();
        }
        if (teleportManager != null) {
            teleportManager.clear();
        }
    }

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