menu
#2906934 Argument 1 passed to EssentialsPE\BaseFiles\BaseAPI::getSession() must be an instance of pocketmine\Player, null given

Submitted by PocketMine-MP 3.9.0

General information

Version: 3.9.0
Git commit: bd69c66d
Plugin involvement: Direct
Report date: 2019-10-09 18:25:16 +0000 UTC

System Information

PHP version: 7.2.5
Operating system: linux
System banner: Linux primegames 4.15.0-64-generic #73-Ubuntu SMP Thu Sep 12 13:16:13 UTC 2019 x86_64

Error information

Warning: the EssentialsPE plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to EssentialsPE\BaseFiles\BaseAPI::getSession() must be an instance of pocketmine\Player, null given
File: plugins/EssentialsPE_v2.2.0.phar/src/EssentialsPE/BaseFiles/BaseAPI
Line: #1825
Error level: TypeError
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
            }
}
}

/**
* @param Player $player
*
* @return BaseSession
*/
private function getSession(Player $player): BaseSession{
if(!$this->sessionExists($player)){
$this->createSession($player);
}
return $this->sessions[spl_object_hash($player)];
}

/** _______ _
* |__ __(_)
* | | _ _ __ ___ ___
* | | | | '_ ` _ \ / _ \
#0 plugins/EssentialsPE_v2.2.0.phar/src/EssentialsPE/BaseFiles/BaseAPI(2029): EssentialsPE\BaseFiles\BaseAPI->getSession(NULL )
#1 plugins/EssentialsPE_v2.2.0.phar/src/EssentialsPE/Tasks/TPRequestTask(31): EssentialsPE\BaseFiles\BaseAPI->removeTPRequest(object pocketmine\Player)
#2 src/pocketmine/scheduler/TaskHandler(159): EssentialsPE\Tasks\TPRequestTask->onRun(integer 46757)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 46757)
#4 src/pocketmine/plugin/PluginManager(689): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 46757)
#5 src/pocketmine/Server(2569): pocketmine\plugin\PluginManager->tickSchedulers(integer 46757)
#6 src/pocketmine/Server(2345): pocketmine\Server->tick()
#7 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1784): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[19] /home/bedrock/sky1/, string[27] /home/bedrock/sky1/plugins/)
#10 (1): require(string[74] phar:///home/bedrock/sky1/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show