Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG:] Crash when players die (internal server error) #28

Closed
gamerxwii opened this issue Nov 30, 2021 · 1 comment
Closed

[BUG:] Crash when players die (internal server error) #28

gamerxwii opened this issue Nov 30, 2021 · 1 comment
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@gamerxwii
Copy link

Bug: [Bug Name]

Informations

theSpawn Version: [1.5.0]
Server-OS: [Linux Ubuntu 20.04]
PHP Version: [8.0.12]
PocketMine-MP Version: [4.0.0]

Error

[Console Error:][13:18:06] [Server thread/CRITICAL]: TypeError: "supercrafter333\theSpawn\theSpawn::getSpawn(): Argument #1 ($level) must be of type pocketmine\level\Level, null given, called in phar:///home/container/plugins/theSpawn (1).phar/src/supercrafter333/theSpawn/theSpawn.php on line 402" (EXCEPTION) in "plugins/theSpawn (1).phar/src/supercrafter333/theSpawn/theSpawn" at line 561
[13:18:06] [Server thread/CRITICAL]: #0 plugins/theSpawn (1).phar/src/supercrafter333/theSpawn/theSpawn(402): supercrafter333\theSpawn\theSpawn->getSpawn(NULL )
[13:18:06] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): supercrafter333\theSpawn\theSpawn->onPlayerRespawn(object pocketmine\event\player\PlayerRespawnEvent)
[13:18:06] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object supercrafter333\theSpawn\theSpawn, object pocketmine\event\player\PlayerRespawnEvent)
[13:18:06] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerRespawnEvent)
[13:18:06] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(3911): pocketmine\event\Event->call()
[13:18:06] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Player(3906): pocketmine\Player->actuallyRespawn()
[13:18:06] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Player(2986): pocketmine\Player->respawn()
[13:18:06] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(173): pocketmine\Player->handlePlayerAction(object pocketmine\network\mcpe\protocol\PlayerActionPacket)
[13:18:06] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/PlayerActionPacket(90): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handlePlayerAction(object pocketmine\network\mcpe\protocol\PlayerActionPacket)
[13:18:06] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\PlayerActionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[13:18:06] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\PlayerActionPacket)
[13:18:06] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[13:18:06] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/Player(3335): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[13:18:06] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[13:18:06] [Server thread/CRITICAL]: #14 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 93.13.250.183 49480, object raklib\protocol\EncapsulatedPacket, integer 0)
[13:18:06] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[13:18:06] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[13:18:06] [Server thread/CRITICAL]: #17 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[13:18:06] [Server thread/CRITICAL]: #18 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[13:18:06] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1638278286.8372)
[13:18:06] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[13:18:06] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[13:18:06] [Server thread/CRITICAL]: #22 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[13:18:06] [Server thread/CRITICAL]: #23 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server()
[13:18:06] [Server thread/CRITICAL]: #24 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

readjustment instructions

I have set a spawn in a world and when i kill a player he die

fix suggestions [optional]

[Your suggestion]

@gamerxwii gamerxwii added the bug Something isn't working label Nov 30, 2021
@supercrafter333 supercrafter333 added the invalid This doesn't seem right label Nov 30, 2021
@supercrafter333
Copy link
Owner

pocketmine\level\Level does not exists in PM4. You don't use V1.5.0 of theSpawn.

Also, theSpawn's PM3-Version is no longer supported. theSpawn is now PM4-only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants