menu
#4550130 Return value of core\player\NexusPlayer::getDataSession() must be an instance of core\player\DataSession, null returned

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-26 16:02:59 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux ns556347 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the NexusPPvP plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of core\player\NexusPlayer::getDataSession() must be an instance of core\player\DataSession, null returned
File: plugins/NexusPPvP.phar/src/core/player/NexusPlayer
Line: #118
Error level: TypeError
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
     */
public function isLoaded(): bool {
return $this->dataSession !== null and $this->dataSession->isLoaded();
}

/**
* @return DataSession
*/
public function getDataSession(): DataSession {
return $this->dataSession;
}

/**
* @return int
*/
public function getLastDuelRequest(): int {
return $this->lastDuelRequest;
}

public function setLastDuelRequest(): void {
#0 plugins/NexusPPvP.phar/src/core/player/task/SavePlayersTask(31): core\player\NexusPlayer->getDataSession()
#1 src/pocketmine/scheduler/TaskHandler(137): core\player\task\SavePlayersTask->onRun(integer 6001)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 6001)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 6001)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 6001)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[23] /home/servers/practice/, string[31] /home/servers/practice/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[78] phar:///home/servers/practice/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies