Teleportation of a player is not possible if a passenger is set. #352
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#352
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected behavior
if I use the normal /teleport command, and the player has a passenger set on which he is sitting, he cannot be teleported. Teleportation with coordinates, in my test with relative coordinates (/teleport ~ ~10 ~) is possible again.
Observed/Actual behavior
The player will not be teleported, if an passenger is set.
Steps/models to reproduce
I have the following code as an example for reconstruction:
Plugin and Datapack List
[18:50:59 INFO]: Server Plugins (15):
[18:50:59 INFO]: Paper Plugins:
[18:50:59 INFO]: - LimitAttack, LimitCore, LimitSMP, ServerSystem
[18:50:59 INFO]: Bukkit Plugins:
[18:50:59 INFO]: - CoreProtect, floodgate, FoliaFlow, GrimAC, LuckPerms, Plan, ProtocolLib, SayanVanish, spark, voicechat
[18:50:59 INFO]: WorldEdit
The datapack function is not implemented yet.
Folia version
[18:51:46 INFO]: This server is running Folia version 1.21.4-1-master@8af1aef (2024-12-15T21:04:38Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-DEV-8af1aef (MC: 1.21.4)
Other
No response
you have to set teleport flags https://jd.papermc.io/paper/1.21.5/org/bukkit/entity/Entity.html#teleportAsync(org.bukkit.Location,org.bukkit.event.player.PlayerTeleportEvent.TeleportCause,io.papermc.paper.entity.TeleportFlag...)