menu
#4583517 Return value of room17\SkyBlock\SkyBlockListener::getSession() must be an instance of room17\SkyBlock\session\Session, null returned

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-10-18 03:18:38 +0000 UTC

System Information

PHP version: 7.3.16
Operating system: linux
System banner: Linux 4cd467e61b51 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64

Error information

Warning: the SkyBlock plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of room17\SkyBlock\SkyBlockListener::getSession() must be an instance of room17\SkyBlock\session\Session, null returned
File: plugins/SkyBlock (1).phar/src/room17/SkyBlock/SkyBlockListener
Line: #65
Error level: TypeError
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
        $this->isleManager = $plugin->getIsleManager();
$plugin->getServer()->getPluginManager()->registerEvents($this, $plugin);
}

/**
* @param Player $player
* @return Session
*/
public function getSession(Player $player): Session {
return $this->plugin->getSessionManager()->getSession($player);
}

/**
* @param ChunkLoadEvent $event
*/
public function onChunkLoad(ChunkLoadEvent $event): void {
$level = $event->getLevel();
$isle = $this->plugin->getIsleManager()->getIsle($level->getName());
if($isle == null) {
return;
#0 plugins/SkyBlock (1).phar/src/room17/SkyBlock/SkyBlockListener(184): room17\SkyBlock\SkyBlockListener->getSession(object pocketmine\Player)
#1 src/pocketmine/plugin/MethodEventExecutor(42): room17\SkyBlock\SkyBlockListener->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#2 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object room17\SkyBlock\SkyBlockListener, object pocketmine\event\player\PlayerQuitEvent)
#3 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#4 src/pocketmine/Player(3643): pocketmine\event\Event->call()
#5 src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error)
#6 vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[20] 98.228.184.144 53100, object raklib\protocol\EncapsulatedPacket, integer 0)
#7 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#8 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#9 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#10 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#11 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1602991118.2357)
#12 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1588): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[13] /opt/service/, string[21] /opt/service/plugins/)
#15 src/pocketmine/PocketMine(304): pocketmine\server()
#16 (11): require(string[68] phar:///opt/service/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies