menu
#7305522 Call to a member function getFolderName() on null

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-06 04:18:27 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 27 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux c44992bd-f78b-439e-89da-e6ab802650e3 5.10.0-0.bpo.9-amd64 #1 SMP Debian 5.10.70-1~bpo10+1 (2021-10-10) x86_64

Error information

Warning: the theSpawn plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getFolderName() on null
File: plugins/theSpawn.phar/src/supercrafter333/theSpawn/Aliases
Line: #57
Error level: Error
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
                    }
if (Server::getInstance()->getWorldManager()->isWorldLoaded($lvl) == true) {
$level = Server::getInstance()->getWorldManager()->getWorldByName($lvl);
$s->teleport($pl->getSpawn($level));
return;
} else {
Server::getInstance()->getWorldManager()->loadWorld($lvl);
$level = Server::getInstance()->getWorldManager()->getWorldByName($lvl);
$s->teleport($pl->getSpawn($level));
$s->sendMessage(theSpawn::$prefix . str_replace(["{alias}"], [$this->cmdName], str_replace(["{world}"], [$level->getFolderName()], MsgMgr::getMsg("alias-teleport"))));
$s->getWorld()->addSound($s->getPosition(), new PopSound());
return;
}
} else {
$s->sendMessage($prefix . MsgMgr::getMsg("something-went-wrong"));
}
} else {
$s->sendMessage($prefix . MsgMgr::getMsg("aliases-deactivated"));
return;
}
#0 pmsrc/src/command/SimpleCommandMap(205): supercrafter333\theSpawn\Aliases->execute(object pocketmine\player\Player#50894, string[6] minage, array[0])
#1 pmsrc/src/Server(1446): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#50894, string[6] minage)
#2 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#50894, string[6] minage)
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(736): pocketmine\player\Player->chat(string[7] /minage)
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#164581)
#5 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#148392)
#6 pmsrc/src/network/mcpe/NetworkSession(357): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#164581, string[28] M./minage.nCF....P#..:gF....)
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[31] ..e....KLOe.svk...*@..\.t.M....)
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[40] .........s..)...p.......*.Q6....q...u..[)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#48225)
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659759507.4936)
#13 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#14 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#15 pmsrc/src/PocketMine(327): pocketmine\server()
#16 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show