Package fr.fuzeblocks.homeplugin.tpa
Class TpaManager
java.lang.Object
fr.fuzeblocks.homeplugin.tpa.TpaManager
Manager for handling TPA (teleport request) system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcancelRequest(UUID senderId) Cancels an active TPA request.static TpaRequestgetRequest(UUID targetId) Gets an active TPA request for a target player.static booleanhasRequest(UUID targetId) Checks if a player has an active request.static booleansendTpaRequest(org.bukkit.entity.Player sender, org.bukkit.entity.Player target) Sends a TPA request from sender to target.
-
Constructor Details
-
TpaManager
public TpaManager()
-
-
Method Details
-
sendTpaRequest
public static boolean sendTpaRequest(org.bukkit.entity.Player sender, org.bukkit.entity.Player target) Sends a TPA request from sender to target.- Parameters:
sender- The player sending the requesttarget- The player receiving the request- Returns:
- true if request was sent successfully, false otherwise
-
cancelRequest
Cancels an active TPA request.- Parameters:
senderId- The UUID of the sender
-
getRequest
Gets an active TPA request for a target player.- Parameters:
targetId- The UUID of the target player- Returns:
- The TpaRequest if found, null otherwise
-
hasRequest
Checks if a player has an active request.- Parameters:
targetId- The UUID of the target player- Returns:
- true if there's an active request, false otherwise
-