GeorgH93 / MarriageMaster

Marriage Plugin for Bukkit/Spigot
https://www.spigotmc.org/resources/marriage-master.19273/
GNU General Public License v3.0
113 stars 90 forks source link

Use Paper's teleportAsync if available #342

Closed PureGero closed 1 month ago

PureGero commented 1 month ago

Player.teleportAsync should be used wherever possible to reduce synchronous chunk loads and support multithreaded server implementations.

This PR attempts to use teleportAsync if it's available like on Paper servers, but will otherwise fall back to teleport on servers such as Spigot.

GeorgH93 commented 1 month ago

Thanks for sharing