nacho_ninja1

1.21.11 paper make me a tpa WAFFLESMP plugin that have a tpa and tpaaccept and tpacancel and a waffle smp style

Kodari AI
KodariOct 1 at 5:44 pm 1
WaffleTpa
A Paper 1.21.11 plugin delivering a WaffleSMP-styled teleport request system. Players issue /tpa to send a teleport request to another player, who accepts via /tpaaccept to teleport the requester to their location. /tpacancel allows the requester to withdraw a pending request. Requests expire after 60 seconds, and a cooldown prevents spam. Includes configurable messages, permission-based usage, and a clean, waffle-themed chat aesthetic with emoji accents for a fun SMP community feel.
  1. Add the Paper 1.21.11 Gradle project and WaffleSMP-themed plugin/config files.

  2. Implement /tpa, /tpaaccept (also /tpaccept), and /tpacancel, including expiring requests, movement-cancelled teleport countdowns, and disconnect cleanup.

Created the WaffleSMP TPA plugin for Paper 1.21.11.

  • /tpa <player> sends a teleport request.

  • /tpaaccept [player] accepts a request; /tpaccept is an alias.

  • /tpacancel cancels outgoing requests or a teleport countdown.

  • Requests expire after 60 seconds by default; the 5-second teleport countdown cancels if the requester moves.

  • WaffleSMP colors and messages, timings, and text are configurable in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 431
src/main/java/com/wafflesmp/tpa/WaffleTpaPlugin.java
package com.wafflesmp.tpa;

import org.bukkit.plugin.java.JavaPlugin;

public final class WaffleTpaPlugin extends JavaPlugin {
    private TpaManager tpaManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        tpaManager = new TpaManager(this);
        TpaCommand command = new TpaCommand(this, tpaManager);
        getCommand("tpa").setExecutor(command);
        getCommand("tpa").setTabCompleter(command);
        getCommand("tpaaccept").setExecutor(command);
        getCommand("tpacancel").setExecutor(command);
        getServer().getPluginManager().registerEvents(tpaManager, this);
    }

    @Override
    public void onDisable() {
        if (tpaManager != null) {
            tpaManager.shutdown();
        }
    }
}