menu
#4583149 Array to string conversion

Submitted by PocketMine-MP 3.15.2

General information

Version: 3.15.2
Git commit: d7a66ad7
Plugin involvement: Indirect
Report date: 2020-10-17 20:04:23 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux Shosting 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 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: Array to string conversion
File: /root/faction/plugin_data/ScoreHud/addons/PiggyFactionsAddon
Line: #64
Error level: ErrorException
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
		    return $name;
}

public function getOnline(Player $player){
if($this->pf->getPlayerManager()->getPlayerFaction($player->getUniqueId()) === null){
$ol = "§cNo Factions";
}else{
$onmbr = $this->pf->getPlayerManager()->getPlayerFaction($player->getUniqueId())->getOnlineMembers();
$on = $this->pf->getPlayerManager()->getPlayerFaction($player->getUniqueId())->getMembers();
$ol = "§a".$onmbr."§b/§a".$on."§f";
}
return $ol;
}

public function getRole(Player $player){
$target = $this->pf->getPlayerManager()->getPlayerByName($player->getName());
if($this->pf->getPlayerManager()->getPlayerFaction($player->getUniqueId()) === null){
$role = "§cNo Factions";
}else{
$role = "§a".$target->getRole();
#0 /root/faction/plugin_data/ScoreHud/addons/PiggyFactionsAddon(64): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Array to string conversion, string[64] /root/faction/plugin_data/ScoreHud/addons/PiggyFactionsAddon.php, integer 64, array[3])
#1 /root/faction/plugin_data/ScoreHud/addons/PiggyFactionsAddon(34): JackMD\ScoreHud\Addons\PiggyFactionsAddon->getOnline(object pocketmine\Player)
#2 plugins/ScoreHud_v5.0.0.phar/src/JackMD/ScoreHud/ScoreHud(247): JackMD\ScoreHud\Addons\PiggyFactionsAddon->getProcessedTags(object pocketmine\Player)
#3 plugins/ScoreHud_v5.0.0.phar/src/JackMD/ScoreHud/ScoreHud(233): JackMD\ScoreHud\ScoreHud->process(object pocketmine\Player, string[8] ..a ..b)
#4 plugins/ScoreHud_v5.0.0.phar/src/JackMD/ScoreHud/ScoreHud(208): JackMD\ScoreHud\ScoreHud->displayDefaultScoreboard(object pocketmine\Player)
#5 plugins/ScoreHud_v5.0.0.phar/src/JackMD/ScoreHud/ScoreHud(171): JackMD\ScoreHud\ScoreHud->updateScore(object pocketmine\Player)
#6 plugins/ScoreHud_v5.0.0.phar/src/JackMD/ScoreHud/task/ScoreUpdateTask(77): JackMD\ScoreHud\ScoreHud->addScore(object pocketmine\Player, string[26] ..cIndo..fCraft ..6Faction)
#7 src/pocketmine/scheduler/TaskHandler(137): JackMD\ScoreHud\task\ScoreUpdateTask->onRun(integer 1501)
#8 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1501)
#9 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1501)
#10 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 1501)
#11 src/pocketmine/Server(2154): pocketmine\Server->tick()
#12 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1588): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[14] /root/faction/, string[22] /root/faction/plugins/)
#15 src/pocketmine/PocketMine(304): pocketmine\server()
#16 (11): require(string[69] phar:///root/faction/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies