Create a **fully working, premium-quality Minecraft TPA plugin for SEASMP**, compatible with **Paper 1.21.11 and Java 21**. Use Maven and modern, non-deprecated Paper APIs. Build a complete, compile-ready Maven project that produces a `.jar` ready to upload into the server's `plugins` folder.
### 💎 1. TPA Commands
- `/tpa ` — request to teleport to a player.
- `/tpahere ` — request a player to teleport to you.
- `/tpaccept` — accept a request.
- `/tpdeny` — deny a request.
- `/tpcancel` — cancel your outgoing request.
- `/tptoggle` — enable or disable incoming requests.
- `/tpa` with no arguments should show a clean help message.
### 🖱️ 2. ACTUALLY CLICKABLE ACCEPT / DENY
When a player receives a request, show a chat message with **real clickable buttons**, not fake text:
`💎 [SEA] Alex wants to teleport to you. [✔ ACCEPT] [✘ DENY]`
- Clicking **✔ ACCEPT** must immediately accept the correct request.
- Clicking **✘ DENY** must deny the correct request.
- Use Paper's Adventure `Component` API and `ClickEvent.runCommand()` or a secure equivalent.
- Hovering over either button should show a helpful tooltip.
- Make the buttons aqua/ice-white for accept and red for deny.
- The buttons must work even if the player has multiple requests.
- Validate the requester, receiver, and pending request server-side. Never trust a player name or request ID supplied by a client without checking it.
### ⏳ 3. ON-SCREEN TELEPORT COUNTDOWN
When a request is accepted, start a configurable **5-second teleport countdown**.
During the countdown:
- Show a large, centered title such as `§b§lTELEPORTING` with a subtitle counting down: `§fTeleporting in 5...`, `4...`, `3...`, `2...`, `1...`.
- Update the action bar with a clean progress indicator, such as `§b■■■■■ §f5s`.
- Optionally show a boss bar with an aqua progress animation.
- Play a soft countdown sound each second.
- On completion, teleport the player safely to the correct target.
- Cancel if the player moves beyond a configurable threshold, takes damage, changes world, disconnects, or the target becomes invalid.
- Display a clear cancellation title/message and play a cancellation sound.
### 🌊 4. SEASMP DESIGN
Use a premium ocean-diamond theme:
- Main gradient: `#00BFFF → #55FFFF → #E0FFFF`.
- Prefix: `💎 SEA TPA »`
- Accept button: aqua/ice-white gradient.
- Deny button: soft red gradient.
- Success: aqua and white.
- Errors: readable soft red.
- Keep all messages compact, polished, and consistent. No rainbow colors, excessive emojis, huge chat spam, or ugly default messages.
### ⚙️ 5. CONFIGURATION
Generate a complete, well-commented `config.yml` with settings for:
- Request expiration, maximum pending requests, and cooldowns.
- Teleport countdown duration and movement threshold.
- Cancellation on movement, damage, world change, or disconnect.
- Safe teleport checks and configurable search radius.
- Sound effects, titles, action bar, and optional boss bar.
- Disabled worlds and per-command permissions.
- Configurable messages and button text.
- Permission-based cooldown bypasses.
- `/tptoggle` preferences and request handling.
Use sensible defaults and validate configuration values so invalid settings cannot crash the plugin.
### 🔒 6. QUALITY & SECURITY
- Prevent self-requests, duplicate requests, expired requests, and requests to offline players.
- Prevent accepting or denying a request that is no longer pending.
- Ensure cooldowns and permissions work correctly.
- Prevent unsafe teleports into lava, fire, the void, or solid blocks.
- Clean up all pending requests, countdown tasks, boss bars, and player data when no longer needed.
- Avoid memory leaks, console spam, deprecated APIs, and unnecessary dependencies.
- Make the plugin compatible with common Paper plugins and LuckPerms.
### 📦 7. DELIVERABLES
Provide:
1. The complete Maven project structure.
2. Every required Java source file.
3. A complete `plugin.yml`.
4. A complete default `config.yml`.
5. Any other required resource files.
6. Exact Maven build instructions.
7. The final compiled `.jar` if your environment supports compilation.
8. Installation, permissions, and testing instructions.
Do not provide pseudocode, incomplete snippets, or placeholder methods. Ensure every command, clickable button, countdown, cancellation condition, and teleport mechanic is implemented and tested. If a requested feature is unsupported, explain the limitation rather than pretending it works.