menu
#9249385 Call to undefined method pocketmine\utils\Config::getCommand()

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:32 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux 0d7ca77b-ef98-4779-9c38-301b4b3a8225 5.15.0-83-generic #92-Ubuntu SMP Mon Aug 14 09:30:42 UTC 2023 x86_64

Error information

Warning: the ClearLag plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method pocketmine\utils\Config::getCommand()
File: plugins/ClearLag/src/ClearLag
Line: #68
Type: Error
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
        ClearTask::run($this->clearDelay, $this->entityExceptions);
$this->getServer()->getCommandMap()->register('ClearLag', new ClearLagCommand($this, $this->entityExceptions));
}

private function initialize(): void
{
$config = $this->getConfig();

/** @var string $prefix */
$prefix = $config->getCommand('message-prefix', '&7[&cClearLag&7]');
$this->prefix = TextFormat::colorize($prefix) . TextFormat::RESET;

/** @var string $clearDelay */
$clearDelay = $config->get('clear-delay', '15m');
try {
$this->clearDelay = $this->parseTimeString($clearDelay);
} catch(ParseTimeException $e) {
$this->getLogger()->critical($e->getMessage());
$this->getLogger()->critical('Using default value...');
$this->clearDelay = 900;
#0 plugins/ClearLag/src/ClearLag(58): tobias14\clearlag\ClearLag->initialize()
#1 pmsrc/src/plugin/PluginBase(119): tobias14\clearlag\ClearLag->onEnable()
#2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1389): pocketmine\plugin\PluginManager->enablePlugin(object tobias14\clearlag\ClearLag#41827)
#4 pmsrc/src/Server(1033): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#41596)
#5 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/)
#6 pmsrc/src/PocketMine(357): pocketmine\server()
#7 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