menu
#3227899 Call to a member function spawnTo() on null

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: None
Report date: 2019-11-29 17:35:41 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: linux
System banner: Linux lunamc.net 5.0.0-29-generic #31-Ubuntu SMP Thu Sep 12 13:05:32 UTC 2019 x86_64

Error information

Message: Call to a member function spawnTo() on null
File: /home/pmmp/LUNA/git/luna-network/PVP/src/Luna/PVP/PVP_Player
Line: #140
Error level: Error
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150

/**
* @param Scoreboard $scoreboard
*/
public function setScoreboard(Scoreboard $scoreboard): void
{
$this->scoreboard = $scoreboard;
}
public function sendScoreboard(Scoreboard $scoreboard = null) : void{
if(is_null($scoreboard)) $this->scoreboard->spawnTo($this);
else{
$this->setScoreboard($scoreboard);
$this->scoreboard->spawnTo($this);
}
}

public function setInitialScoreboard(){
$containerArray = array(
6 => "Rank: ".Core::rankToString($this->getMainRank()),
5 => TextFormat::RED."FFA: ONLINE",
#0 /home/pmmp/LUNA/git/luna-network/PVP/src/Luna/PVP/Task/ScoreBoardTask(45): Luna\PVP\PVP_Player->sendScoreboard()
#1 src/pocketmine/scheduler/TaskHandler(159): Luna\PVP\Task\ScoreBoardTask->onRun(integer 10063361)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 10063361)
#3 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 10063361)
#4 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 10063361)
#5 src/pocketmine/Server(2346): pocketmine\Server->tick()
#6 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1784): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[20] /home/pmmp/LUNA/PVP/, string[28] /home/pmmp/LUNA/PVP/plugins/)
#9 src/pocketmine/PocketMine(300): pocketmine\server()
#10 (1): require(string[75] phar:///home/pmmp/LUNA/PVP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show