Closed HashimTheArab closed 3 years ago
Weird
try to set the gamemode in the PlayerJoinEvent
try to set the gamemode in the PlayerJoinEvent
I dont need a solution the issue is meant to point out the error.
ah sorry, I misunderstood.
GameMode::SURVIVAL()
?
pretty sure that's not how you call on a constant.
Tried it with PocketMine-MP version 3.22.1
and there was no issue with the api. I suggest this issue to be closed.*I am dumb
GameMode::SURVIVAL()
?pretty sure that's not how you call on a constant.
Tried it with
PocketMine-MP version 3.22.1
and there was no issue with the api. I suggest this issue to be closed.
It's not a constant and its PM4
It's not a constant and its PM4
I'm dumb.
Issue description
Setting the players gamemode to Survival in PlayerLoginEvent crashes the server if their previous gamemode was Spectator
TypeError: "pocketmine\network\mcpe\NetworkSession::syncAdventureSettings(): Argument #1 ($for) must be of type pocketmine\player\Player, null given,
Steps to reproduce the issue
OS and versions
Plugins
Plugins (1): Core
Crashdump, backtrace or other files