Hi guys! I'm experienced php-developer but newbie in plugins writing. Trying to build my pvp-plugin I ran into a problem that I do not know how to solve. Sometimes when user teleported to the fixed coordinates, he immedialy dies after teleportation. And worst of all, that in this case "respawn" button disabled and imposible to respwan or even go to "main menu" At the same time other players sees that "dead" player and can attack him. Sorry if that was already discussed, but I couldn't find any solution I'm using PocketMine-MP_1.6dev-23_6ba0abf5_API-2.0.0
Defenetely not hardcore. And at that moment others players can attack this "dead" one (for them he appears as alive). When other player kills this "dead" one - then respawn button becomes enabled.
The player not supposed to die! But he somehow does after $player->teleport( $x, $y,$z , $yawn); Looks like only the game client thinks that player is dead. There are no any messages in the server logs and the other players sees that player still alive
I think you are seeing the teleport() bug that's in all current versions of pocketmine, I posted here https://github.com/PocketMine/PocketMine-MP/issues/4089 but no luck yet...