menu
#4550425 Call to a member function getPlayerGroup() on bool

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Indirect
Report date: 2020-09-26 19:38:43 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux b10adbec2236 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 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 getPlayerGroup() on bool
File: /home/gs-40585/plugin_data/ScoreHud/addons/RankUpAddon
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
				"{prison_next_rank_price}" => $this->getRankUpRankPrice($player)
];
}

/**
* @param Player $player
* @return bool|int|string
*/
public function getRankUpRank(Player $player){
$group = $this->rankUp->getRankUpDoesGroups()->getPlayerGroup($player);

if($group !== false){
return $group;
}else{
return "No Rank";
}
}

/**
* @param Player $player
#0 /home/gs-40585/plugin_data/ScoreHud/addons/RankUpAddon(33): JackMD\ScoreHud\Addons\RankUpAddon->getRankUpRank(object pocketmine\Player)
#1 plugins/ScoreHud-1.phar/src/JackMD/ScoreHud/ScoreHud(229): JackMD\ScoreHud\Addons\RankUpAddon->getProcessedTags(object pocketmine\Player)
#2 plugins/ScoreHud-1.phar/src/JackMD/ScoreHud/ScoreHud(264): JackMD\ScoreHud\ScoreHud->process(object pocketmine\Player, string[26] >..b..lNAME: ..6..l{name})
#3 plugins/ScoreHud-1.phar/src/JackMD/ScoreHud/ScoreHud(208): JackMD\ScoreHud\ScoreHud->displayDefaultScoreboard(object pocketmine\Player)
#4 plugins/ScoreHud-1.phar/src/JackMD/ScoreHud/ScoreHud(171): JackMD\ScoreHud\ScoreHud->updateScore(object pocketmine\Player)
#5 plugins/ScoreHud-1.phar/src/JackMD/ScoreHud/task/ScoreUpdateTask(77): JackMD\ScoreHud\ScoreHud->addScore(object pocketmine\Player, string[21] ..l..bRANKUP ..cOZARK)
#6 src/pocketmine/scheduler/TaskHandler(137): JackMD\ScoreHud\task\ScoreUpdateTask->onRun(integer 179780)
#7 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 179780)
#8 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 179780)
#9 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 179780)
#10 src/pocketmine/Server(2154): pocketmine\Server->tick()
#11 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1588): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-40585/, string[23] /home/gs-40585/plugins/)
#14 src/pocketmine/PocketMine(304): pocketmine\server()
#15 (11): require(string[95] phar:///pro/bin/mcpe/pocketmine-stable-1.16.20/PocketMine-MP.phar/src/pocketmine)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies