This script introduces a basic teleport request system for Minecraft servers using Spigot. Players can request to teleport to another player with the
/tpa player command. The target player can accept or deny the request through a custom inventory interface triggered by the /tpaccept command.
Key Features:
- Sends teleport requests to online players.
- Includes a cooldown of 60 seconds for teleport requests.
- Custom interface for accepting/denying requests.
- Teleportation gets canceled if the requesting player moves too far.
- Automatically clears pending requests if a player logs out or after a time limit.