menu
#5037867 Argument 1 passed to VitalHCF\Factions::getPoints() must be of the type string, null given

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-21 23:12:16 +0000 UTC
Server uptime: 0 days 0 hours 21 minutes 8 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux ce97a4dd-070d-402c-b64b-3b8a97373293 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the ClassyHCF plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to VitalHCF\Factions::getPoints() must be of the type string, null given
File: plugins/ClassyHCF_v2.0.3 (1).phar/src/VitalHCF/Factions
Line: #374
Error level: TypeError
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
        $data->bindValue(":factionName", $factionName);
$data->bindValue(":money", $balance);
$data->execute();
}

/**
* @param String $factionName
* @return int|mixed
*/
public static function getPoints(String $factionName){
$data = new Config(Loader::getInstance()->getDataFolder()."points.yml", Config::YAML);
return $data->get($factionName);
}

public static function getTopFactions(): Array {
$all = (new Config(Loader::getInstance()->getDataFolder() . "points.yml", Config::YAML))->getAll();
arsort($all);
$ret = [];
$n = 1;
$max = ceil(count($all) / 10);
#0 plugins/ClassyHCF_v2.0.3 (1).phar/src/VitalHCF/Task/event/KothTask(73): VitalHCF\Factions::getPoints(NULL )
#1 pmsrc/src/pocketmine/scheduler/TaskHandler(137): VitalHCF\Task\event\KothTask->onRun(integer 25308)
#2 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 25308)
#3 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 25308)
#4 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 25308)
#5 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#6 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#7 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#10 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show