mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
bukkit: Player#eject passengers before teleporting
This commit is contained in:
1 file changed
+1
@@ -132,6 +132,7 @@ public class BukkitUser extends OnlineUser {
|
||||
plugin.getScheduler().entitySpecificScheduler(player).run(
|
||||
() -> {
|
||||
player.leaveVehicle();
|
||||
player.eject();
|
||||
if (async || plugin.getScheduler().isUsingFolia()) {
|
||||
PaperLib.teleportAsync(player, bukkitLocation, PlayerTeleportEvent.TeleportCause.PLUGIN);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user