GeorgH93 / MarriageMaster

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

Use Paper's teleportAsync if available #342

Closed PureGero closed 4 months ago

PureGero commented 4 months 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 4 months ago

Thanks for sharing