menu
#3978102 Call to a member function getPlayers() on null

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-03-25 10:17:10 +0000 UTC

System Information

PHP version: 7.3.5
Operating system: win
System banner: Windows NT WHATUPTIME-COM 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: the BossPlugin plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getPlayers() on null
File: plugins/BossPlugin.phar/src/hmmhmmmm/boss/scheduler/BossTask
Line: #42
Error level: Error
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
         BossData::setRespawnTime($name, $respawn);
if(BossData::getRespawnTime($name) <= 0){
$levelFolderName = BossData::getLevelFolderName($name);
if(!file_exists($this->plugin->getServer()->getDataPath()."worlds/".$levelFolderName)){
$plugin->getLogger()->error("§cBoss ".$name ." will not respawn because not found world ".$levelFolderName);
BossData::setRespawnTime($name, BossData::getIsRespawnTime($name));
}
$pos = BossData::getSpawn($name);
$level = $pos->getLevel();
if(count($level->getPlayers()) == 0){
BossData::setRespawnTime($name, 30);
}else{
BossManager::respawn($name);
BossData::setRespawnTime($name, BossData::getIsRespawnTime($name));
}
}
}
}

}
#0 plugins/BossPlugin.phar/src/hmmhmmmm/boss/scheduler/BossTask(23): hmmhmmmm\boss\scheduler\BossTask->respawn()
#1 src/pocketmine/scheduler/TaskHandler(159): hmmhmmmm\boss\scheduler\BossTask->onRun(integer 61)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 61)
#3 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 61)
#4 src/pocketmine/Server(2567): pocketmine\plugin\PluginManager->tickSchedulers(integer 61)
#5 src/pocketmine/Server(2343): pocketmine\Server->tick()
#6 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1785): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] C:\Users\Administrator\Desktop\Server Skyblock\, string[55] C:\Users\Administrator\Desktop\Server Skyblock\plugins\)
#9 src/pocketmine/PocketMine(295): pocketmine\server()
#10 (1): require(string[102] phar://C:/Users/Administrator/Desktop/Server Skyblock/PocketMine-MP.phar/src/poc)

Loaded Plugins

  • Show

Server Settings

  • Show