_zeanith_

๐Ÿ”ฅ Prompt: Advanced DonutTPA-Style Minecraft Plugin

Create a high-performance Minecraft plugin (Spigot/Paper/Folia compatible) named DonutTPA with a modern INVENTORY GUI-based teleport request system inspired by DonutSMP.

Mainclass must : com.zeanith.donuttpa โœจ Core Features ๐Ÿ“Œ 1. Main /tpa INVENTORY GUI (Player Selector)

When player types /tpa:

Open a clean INVENTORY GUI menu

Show all online players

Each player displayed as:

๐Ÿง‘ Player Head (skin)

Player Name

Support pagination if many players

When clicking a player:

Open confirmation INVENTORY GUI

โœ… Confirm

โŒ Cancel

๐Ÿ“Œ 2. /tpa <player>

Instantly opens confirmation INVENTORY GUI

"Send teleport request to <player>?"

Buttons:

โœ… Confirm

โŒ Cancel

๐Ÿ“Œ 3. Request System (Chat + Clickable)

After sender clicks Confirm:

Target player receives message:

๐Ÿ“จ There is 1 request from TPA

Click to accept: [ACCEPT] [CANCEL]

Must support:

Clickable text (hover + click)

/tpaaccept and /tpadeny

๐Ÿ“Œ 4. Accept Flow (Double Confirmation INVENTORY GUI)

When player clicks ACCEPT:

Open INVENTORY GUI:

Title: "Accept Teleport?"

Buttons:

โœ… Confirm

โŒ Cancel

On confirm:

Start teleport countdown (configurable)

Example:

Teleporting in 3...

Teleporting in 2...

Teleporting in 1... โœ… Teleported successfully! ๐ŸŽจ INVENTORY GUI Design (IMPORTANT)

Use:

Stained glass panes (background)

Player heads

Custom items:

Green wool = Confirm

Red wool = Cancel

Fully configurable in config.yml

Support:

Titles

Size

Sounds

Items

๐Ÿ”Š Sound System

Play sounds when:

Opening INVENTORY GUI

Sending request

Accepting

Canceling

Example:

UI click sound (like "pok pok")

Fully configurable

โš™๏ธ Config Features

config.yml:

Messages (all customizable)

INVENTORY GUI layout

Cooldowns

Teleport delay

Sounds

Titles

๐Ÿง  Advanced Features โฑ Cooldown System

Prevent spam

Configurable per player

Permission bypass:

donuttpa.cooldown.bypass

๐Ÿšซ Toggle System

Commands:

/tpatoggle

/tpauto

/tpquitoggle

Features:

Disable incoming requests

Auto-accept mode

Quiet mode (no messages)

๐Ÿ“ Teleport Safety

Cancel teleport if:

Player moves

Player takes damage

Optional toggle in config

๐Ÿ” Permissions

donuttpa.admin

donuttpa.bypass

donuttpa.limit.bypass

๐ŸŒ Compatibility

Must support:

Paper

Spigot

Folia (thread-safe)

Async-safe code (NO lag)

๐Ÿ“ฆ Commands List /tpa /tpa <player> /tpaaccept /tpadeny /tpacancel /tpatoggle /tpauto /tpquitoggle ๐Ÿš€ Optimization

No memory leaks

Async tasks where possible

Handle large servers (100+ players)

Clean code structure (OOP)

๐Ÿ’Ž Extra (Optional but BEST)

ActionBar messages

BossBar countdown

Discord webhook (log requests)

PlaceholderAPI support

๐ŸŽฏ Goal

Create a premium-quality plugin with:

Smooth INVENTORY GUI

Clean UX

Fast performance

Fully customizable

Similar or better than DonutTPA

Kodari AI
KodariMar 19 at 5:04 pm 26,042 (v2)

Iโ€™ll create a premium DonutTPA plugin with a modern inventory GUI system, clickable chat messages, and all requested features.

DonutTPA
Advanced teleport request plugin featuring modern inventory GUI-based player selection, double confirmation system, clickable chat messages, teleport countdowns with safety checks, cooldown management, toggle systems (disable requests, auto-accept, quiet mode), sound effects, full configurability, and Folia compatibility. Provides smooth UX with player head displays, pagination support, and ActionBar/BossBar feedback.

Iโ€™ll build this premium TPA plugin with a clean GUI system, clickable messages, and all advanced features.

Premium DonutTPA plugin created with modern inventory GUI system, double confirmation flow, clickable chat messages, teleport countdowns with BossBar support, comprehensive safety checks, toggle systems, and full Paper/Spigot/Folia compatibility. All features are fully configurable with smooth UX and sound effects.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
28 1,892
src/main/java/com/zeanith/donuttpa/DonutTPA.java
package com.zeanith.donuttpa;

import com.zeanith.donuttpa.command.*;
import com.zeanith.donuttpa.inventory.gui.GUIListener;
import com.zeanith.donuttpa.inventory.gui.GUIManager;
import com.zeanith.donuttpa.listener.TeleportSafetyListener;
import com.zeanith.donuttpa.manager.ConfigManager;
import com.zeanith.donuttpa.manager.CooldownManager;
import com.zeanith.donuttpa.manager.TeleportManager;
import com.zeanith.donuttpa.manager.ToggleManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DonutTPA extends JavaPlugin {
    private ConfigManager configManager;
    private GUIManager guiManager;
    private TeleportManager teleportManager;
    private CooldownManager cooldownManager;
    private ToggleManager toggleManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.guiManager = new GUIManager();
        this.cooldownManager = new CooldownManager(this);
        this.toggleManager = new ToggleManager(this);
        this.teleportManager = new TeleportManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("DonutTPA has been enabled!");
    }

    @Override
    public void onDisable() {
        if (teleportManager != null) {
            teleportManager.cancelAll();
        }
        getLogger().info("DonutTPA has been disabled!");
    }

    private void registerCommands() {
        getCommand("tpa").setExecutor(new TPACommand(this));
        getCommand("tpaaccept").setExecutor(new TPAAcceptCommand(this));
        getCommand("tpadeny").setExecutor(new TPADenyCommand(this));
        getCommand("tpacancel").setExecutor(new TPACancelCommand(this));
        getCommand("tpatoggle").setExecutor(new TPAToggleCommand(this));
        getCommand("tpauto").setExecutor(new TPAAutoCommand(this));
        getCommand("tpquitoggle").setExecutor(new TPQuitToggleCommand(this));
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new TeleportSafetyListener(this), this);
    }
}