Open janiiik opened 3 years ago
any info
this is a simple error, it can easy get fixed, but if no one else but me want to make a pr, i am very sure this issue will only get solved in after 6 months
?? what is the issue with pr? cant make pull request yourself?
is some of the level "mines" or "world" in the config missing
No it is there, but unloaded probably. Cos yhis happened afyer server restart.
This problem is also Comming in my server when I restart it it crashes
I got this error on server start, recently added new area and this is happening:
PocketMine-MP Crash Dump Fri Sep 25 11:51:17 UTC 2020
Error: Call to a member function getPlayers() on null File: plugins/FootJob.phar/src/Tungsten/FootJob/RepeatingTask Line: 32 Type: Error
THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: FootJob v20.5.30
Code: [23] } [24] [25] [26] public function onRun($tick) [27] { [28] $internalConfig = $this->config->getAll(); [29] if (!is_array($internalConfig) or count($internalConfig) <= 0) return; [30] foreach ($internalConfig as $value) { [31] if(!is_array($value)) continue; [32] $players = $this->fj->getServer()->getLevelByName($value["level"])->getPlayers(); [33] if ($players == []) continue; [34] $x1 = $value["x"][0][0]; [35] $x2 = $value["x"][0][1]; [36] $y1 = $value["y"][0][0]; [37] $y2 = $value["y"][0][1]; [38] $z1 = $value["z"][0][0]; [39] $z2 = $value["z"][0][1]; [40] foreach ($players as $player) { [41] if ($this->isInside($x1, $x2, $y1, $y2, $z1, $z2, $player)) { [42] if (isset($value["consolecmds"])) {
Backtrace:
0 src/pocketmine/scheduler/TaskHandler(137): Tungsten\FootJob\RepeatingTask->onRun(integer 1)
1 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1)
2 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
3 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
4 src/pocketmine/Server(2154): pocketmine\Server->tick()
5 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
6 src/pocketmine/Server(1588): pocketmine\Server->start()
7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
8 src/pocketmine/PocketMine(304): pocketmine\server()
9 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 3.15.1 [Protocol 408]
config.yml
enableUpdateChecker: true mines-a: x: