menu
#4774905 Call to undefined method clans\Main::tolower()

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-23 01:31:47 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 55 seconds

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux ip135-148-6-172 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method clans\Main::tolower()
File: /home/minecraft/multicraft/servers/server672/plugin_data/ScoreHud/addons/ClanAddon
Line: #35
Error level: Error
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
		 * @param Player $player
* @return array
*/
public function getProcessedTags(Player $player): array{
return [
"{clan}" => $this->getCla($player)
];
}
public function getCla(Player $player) {
if($this->clan->getClan($this->clan::tolower($player)) == null) {
return "Nenhum";
}else{
return "[{$this->clan->getClan($this->clan::tolower($player))->tag}] {$this->clan->getClan($this->clan::tolower($player))->getName()}";
return ;
}
}
}
}
#0 /home/minecraft/multicraft/servers/server672/plugin_data/ScoreHud/addons/ClanAddon(31): JackMD\ScoreHud\Addons\ClanAddon->getCla(object pocketmine\Player)
#1 plugins/ScoreHud_v5.1.1.phar/src/JackMD/ScoreHud/ScoreHud(229): JackMD\ScoreHud\Addons\ClanAddon->getProcessedTags(object pocketmine\Player)
#2 plugins/ScoreHud_v5.1.1.phar/src/JackMD/ScoreHud/ScoreHud(170): JackMD\ScoreHud\ScoreHud->process(object pocketmine\Player, string[12] ..l..4RANKUP)
#3 plugins/ScoreHud_v5.1.1.phar/src/JackMD/ScoreHud/task/ScoreUpdateTask(77): JackMD\ScoreHud\ScoreHud->addScore(object pocketmine\Player, string[12] ..l..4RANKUP)
#4 pmsrc/src/pocketmine/scheduler/TaskHandler(137): JackMD\ScoreHud\task\ScoreUpdateTask->onRun(integer 1081)
#5 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1081)
#6 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1081)
#7 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 1081)
#8 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#9 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#10 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#11 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[45] /home/minecraft/multicraft/servers/server672/, string[53] /home/minecraft/multicraft/servers/server672/plugins/)
#12 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#13 pmsrc(11): require(string[81] phar:///home/minecraft/multicraft/jar/1.16.100.phar/src/pocketmine/PocketMine.ph)

Loaded Plugins

  • Show

Server Settings

  • Show