menu
#3071976 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-06 21:32:19 +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: #117
Error level: Error
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127

/**
* @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(
0 => "Rank: ".Core::rankToString($this->getMainRank()),
6=> "PvP"
#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 78281)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 78281)
#3 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 78281)
#4 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 78281)
#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