You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Player#setSpectatorTarget to target a player would attach the spectator's camera to the player in the same way that the spectator clicking on the player from their client would.
Observed/Actual behavior
Using Player#setSpectatorTarget to target a player teleports the spectator to the target player's location and then will teleport them again when the target player gets too far away. The spectator player isn't following the target's player camera and isn't "attached" to the player.
Steps/models to reproduce
I made a basic plugin that just runs the following code when the target player joins, which uses the Player#setSpectatorTarget method on the spectatorPlayer to target the targetPlayer.
Attached is a video of this code running with the spectatorPlayer starting in the exact same position that the targetPlayer joins into because of a previously failed spectate.
2024-02-13.19-11-21.mp4
Plugin and Datapack List
Only the above mentioned test plugin
Paper version
This server is running Paper version git-Paper-423 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 31699ae)
You are running the latest version
Expected behavior
Using
Player#setSpectatorTargetto target a player would attach the spectator's camera to the player in the same way that the spectator clicking on the player from their client would.Observed/Actual behavior
Using
Player#setSpectatorTargetto target a player teleports the spectator to the target player's location and then will teleport them again when the target player gets too far away. The spectator player isn't following the target's player camera and isn't "attached" to the player.Steps/models to reproduce
I made a basic plugin that just runs the following code when the target player joins, which uses the
Player#setSpectatorTargetmethod on thespectatorPlayerto target thetargetPlayer.Attached is a video of this code running with the
spectatorPlayerstarting in the exact same position that thetargetPlayerjoins into because of a previously failed spectate.2024-02-13.19-11-21.mp4
Plugin and Datapack List
Only the above mentioned test plugin
Paper version
This server is running Paper version git-Paper-423 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 31699ae)
You are running the latest version
Other
No response