menu
#4873993 Call to undefined method VitalHCF\Loader::getKOTHManager()

Submitted by PocketMine-MP 3.18.0

General information

Version: 3.18.0
Git commit: 3f649062
Plugin involvement: Direct
Report date: 2021-04-08 04:50:07 +0000 UTC
Server uptime: 0 days 0 hours 19 minutes 11 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 1ce5cfa5-e0aa-40cb-893e-0c0a15499da1 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 x86_64

Error information

Warning: the Unknown plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method VitalHCF\Loader::getKOTHManager()
File: plugins/Diver.phar/src/VitalHCF/Task/Scoreboard
Line: #102
Error level: Error
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
        if (KEYALL::isEnable()) {
$scoreboard[] = str_replace(["&", "{time}"], ["§", Loader::getTimeToFullString(KEYALL::getTime())], $config->get("KEYALL"));
}
if (SALE::isEnable()) {
$scoreboard[] = str_replace(["&", "{time}"], ["§", Loader::getTimeToFullString(SALE::getTime())], $config->get("SALE"));
}
if (PP::isEnable()) {
$scoreboard[] = str_replace(["&", "{time}"], ["§", Loader::getTimeToFullString(PP::getTime())], $config->get("PP"));
}
if(($game = $this->plugin->getKOTHManager()->getGame()) !== null) {
$time = $game->getObjectiveTime();
if($game->getCapturer() !== null) {
$time = $time - $game->getCaptureProgress();
}
$scoreboard[] = str_replace(["&", "{time}", "{kothName}"], ["§", Loader::getTimeToString($time), $game->getName()], $config->get("KOTH"));
}
if ($player->isBardClass()) {
$scoreboard[] = str_replace(["&", "{bardEnergy}"], ["§", $player->getBardEnergy()], $config->get("BardEnergy"));
}
if ($player->isArcherClass()) {
#0 pmsrc/src/pocketmine/scheduler/TaskHandler(137): VitalHCF\Task\Scoreboard->onRun(integer 23025)
#1 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 23025)
#2 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 23025)
#3 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 23025)
#4 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#5 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#6 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#7 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#8 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#9 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show