packetevents icon indicating copy to clipboard operation
packetevents copied to clipboard

Map Player object via Bukkit.getPlayer with uuid to map player object early than PlayerJoinEvent?

Open MWHunter opened this issue 3 years ago • 5 comments

Latest 2.0 commit 0fd0c62. Unsure what commit introduced this bug.

nullplayer

MWHunter avatar Jan 29 '22 23:01 MWHunter

nullthree

Forgot to show event.getPlayer(), but it returns null when the bukkit player object should exist. I'm listening to the PLAYER_POSITION_AND_ROTATION clientbound packet to teleport the player on join.

MWHunter avatar Jan 29 '22 23:01 MWHunter

I could inject with PlayerLoginEvent, ill see

retrooper avatar Jan 30 '22 22:01 retrooper

We do inject there.

retrooper avatar Feb 05 '22 22:02 retrooper

We can't do this in LOGIN_SUCCESS packet, as thats too early. We process packets before the vanilla server. So that won't be possible.

retrooper avatar Mar 06 '22 13:03 retrooper

Still considering.

retrooper avatar Apr 18 '22 19:04 retrooper

Bump, would be nice to see this added

classtoinstancemap avatar Feb 03 '24 12:02 classtoinstancemap