menu
#9249382 Call to undefined function Outpost\Config()

Submitted by PocketMine-MP 5.5.0

General information

Version: 5.5.0
Git commit: c8d357f4
Plugin involvement: Direct
Report date: 2023-09-19 16:10:21 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux 7daa4b49-81b5-46e4-9e2d-a5b29a171059 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64

Error information

Warning: the mOutpost plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined function Outpost\Config()
File: plugins/Event OutPost/src/OutpostTask
Line: #33
Type: Error
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
        self::$currentOutpost = $config->get("capture_time");
}

public function onRun(): void
{
self::$nextReward--;

$file = Base::getInstance()->getOutpostData();
$config = Base::getInstance()->getConfig();
$faction = Config(VotrePlugin::getInstance()->getDataFolder() . "factions.yml", Config::YAML);

$players = Base::getInstance()->getServer()->getOnlinePlayers();
$actual = $file->get("actual", null);

if (1 > count($facMgr->getFactions())) {
return;
}

if (!is_null($actual)) {
if (self::$currentOutpost > 60) {
#0 pmsrc/src/scheduler/TaskHandler(113): Outpost\OutpostTask->onRun()
#1 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()
#2 pmsrc/src/plugin/PluginManager(530): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 1)
#3 pmsrc/src/Server(1789): pocketmine\plugin\PluginManager->tickSchedulers(int 1)
#4 pmsrc/src/Server(1678): pocketmine\Server->tick()
#5 pmsrc/src/Server(1064): pocketmine\Server->tickProcessor()
#6 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#7 pmsrc/src/PocketMine(357): pocketmine\server()
#8 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show