menu
#2907099 Call to a member function getPlayerFaction() on null

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Indirect
Report date: 2019-10-09 20:06:51 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: linux
System banner: Linux fd2a4bf8f7d6 4.9.177-xxxx-std-ipv6-64 #721950 SMP Fri May 17 08:31:25 UTC 2019 x86_64

Error information

Warning: the ScoreHud plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Call to a member function getPlayerFaction() on null
File: /home/minecraft/multicraft/servers/server43802/plugin_data/ScoreHud/addons/FactionsProAddon
Line: #43
Error level: Error
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
			];
}

/**
* @param Player $player
* @return string
*/
public function getPlayerFaction(Player $player): string{
$factionsPro = $this->factionsPro;
$factionName = $factionsPro->getPlayerFaction($player->getName());

if($factionName === null){
return "No Faction";
}

return $factionName;
}

/**
* @param Player $player
#0 /home/minecraft/multicraft/servers/server43802/plugin_data/ScoreHud/addons/FactionsProAddon(32): JackMD\ScoreHud\Addons\FactionsProAddon->getPlayerFaction(object pocketmine\Player)
#1 plugins/ScoreHud.phar/src/JackMD/ScoreHud/ScoreHud(229): JackMD\ScoreHud\Addons\FactionsProAddon->getProcessedTags(object pocketmine\Player)
#2 plugins/ScoreHud.phar/src/JackMD/ScoreHud/ScoreHud(264): JackMD\ScoreHud\ScoreHud->process(object pocketmine\Player, string[22] ..cName..7: ..f{name})
#3 plugins/ScoreHud.phar/src/JackMD/ScoreHud/ScoreHud(208): JackMD\ScoreHud\ScoreHud->displayDefaultScoreboard(object pocketmine\Player)
#4 plugins/ScoreHud.phar/src/JackMD/ScoreHud/ScoreHud(171): JackMD\ScoreHud\ScoreHud->updateScore(object pocketmine\Player)
#5 plugins/ScoreHud.phar/src/JackMD/ScoreHud/task/ScoreUpdateTask(77): JackMD\ScoreHud\ScoreHud->addScore(object pocketmine\Player, string[28] ..l..cOriginalPvP..r )
#6 src/pocketmine/scheduler/TaskHandler(159): JackMD\ScoreHud\task\ScoreUpdateTask->onRun(integer 1261)
#7 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1261)
#8 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1261)
#9 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 1261)
#10 src/pocketmine/Server(2346): pocketmine\Server->tick()
#11 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1784): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] /home/minecraft/multicraft/servers/server43802/, string[55] /home/minecraft/multicraft/servers/server43802/plugins/)
#14 src/pocketmine/PocketMine(299): pocketmine\server()
#15 (1): require(string[107] phar:///home/minecraft/multicraft/servers/server43802/PMMP-Latest-Stable.phar/sr)

Loaded Plugins

  • Show

Server Settings

  • Show