Описание
# ClickAccept
**An add-on plugin for TPA plugins like EssentialsX — accept or deny teleport requests by clicking in chat, a Java GUI, or a Bedrock form.**
ClickAccept listens for the `/tpa`, `/tpahere` (and any other commands you list). Perfect for newcomers, mobile and console players, and anyone who dislikes typing.
> **Note:** The future development and maintenance of this plugin depend on its popularity and usefulness, as there may be other alternative plugins available.
---
## Features
- **Click-to-accept / click-to-cancel**
- **Inventory GUI overlay**
- **Floodgate / Bedrock form support**
- **Sound & particle cues**
- **Fully configurable message templates**
- **Configurable trigger list**
- **Per-trigger overrides**
- **`/clickaccept reload`**
- **Tiered permissions**
- **Per-player opt-out**
- **Prompt delay**
- **Paper 1.20+ / Java 17 modern API**
---
## Requirements
| Requirement | Notes |
|--------------------------|---------------------------------------------------------------|
| Server software | PaperMC 1.20+ (or a fork like Folia/Purpur) |
| Java | Java 17+ |
| TPA plugin | EssentialsX (or any plugin that exposes `/tpaccept`/`/tpacancel`) |
| Floodgate (optional) | Enables native Bedrock forms. Without it, Bedrock players just get chat buttons. |
---
## Installation
1. Download the plugin `.jar`.
2. Drop it into the `plugins/` folder of your Minecraft server.
3. Restart the server — ClickAccept will generate `plugins/ClickAccept/config.yml` and `player-prefs.yml`.
4. (Optional) Start Floodgate if you want Bedrock form support.
5. Grant the desired permissions (see below).
---
## Commands
| Command | Permission | Description |
|-------------------------------------------------|-----------------------|-----------------------------------------------------------------------------|
| `/clickaccept reload` (aliases: `/ca`, `/cacc`) | `clickaccept.admin` | Hot-reload `config.yml` + `player-prefs.yml` without restarting. |
| `/clickaccept help` | `clickaccept.use` | Show the in-game help. |
| `/clickaccept toggle gui` | `clickaccept.toggle` | Turn the inventory GUI overlay on or off for **you** (chat buttons stay). |
| `/clickaccept toggle forms` | `clickaccept.toggle` | Turn the Bedrock form on or off for **you**. |
| `/clickaccept toggle all` | `clickaccept.toggle` | Turn both overlays on or off for **you** in one command. |
> The toggle command stores your preference in `plugins/ClickAccept/player-prefs.yml` keyed by UUID — it survives renames, server restarts, and `/clickaccept reload`.
---
## Permissions
| Permission | Default | Description |
|-------------------------|---------|------------------------------------------------------------------------------------------|
| `clickaccept.use` | `true` | Allows running `/clickaccept` at all (subcommands are gated by their own permissions). |
| `clickaccept.sender` | `op` | Allows a player to issue a trigger command that emits accept/cancel prompts. |
| `clickaccept.receiver` | `op` | Allows a player to receive the prompt for an incoming request. |
| `clickaccept.gui` | `false`| Additionally opens the inventory GUI / Bedrock form for the receiver (opt-in). |
| `clickaccept.toggle` | `true` | Allows a player to opt out of the interactive overlay via `/clickaccept toggle ...`. |
| `clickaccept.admin` | `op` | Allows `/clickaccept reload` and related admin actions. |
---
## Bedrock (Floodgate) note
Floodgate forms are loaded via reflection only when a Bedrock player actually needs one — Java players never touch the Cumulus classes, and the plugin fully works on a server with no Floodgate installed. Bedrock clients must not be on the pause menu when the form arrives, or they'll see the form as closed without picking a button (this is a Bedrock client limitation — the chat buttons still work as a fallback).
---
## Donators
- **MCbasement** — $50
Thank you for supporting development!
---
## Disclaimer
Your feedback and suggestions for improvements are always welcome.
If you encounter any issues, please use the discussion section of the plugin or contact us via Discord.
### Donation
If you'd like to support the continued development of this plugin, you can donate via [PayPal](https://paypal.me/portal2001).