menu
#2469077 syntax error, unexpected '$config' (T_VARIABLE), expecting function (T_FUNCTION) or const (T_CONST)

Submitted by Raymond goo

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-06-12 08:29:48 +0000 UTC

System Information

PHP version: 7.2.15
Operating system: linux
System banner: Linux fdbfe8db-b984-4d25-bc6e-10fb5337c153 4.15.0-1033-gcp #35~16.04.1-Ubuntu SMP Mon May 20 09:42:07 UTC 2019 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: syntax error, unexpected '$config' (T_VARIABLE), expecting function (T_FUNCTION) or const (T_CONST)
File: plugins/CustomQuery_dev-70.phar/src/CustomQuery/iZeaoGamer/Main
Line: #51
Error level: ParseError
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
            $this->saveDefaultConfig();
}

$config = new Config($this->getDataFolder() . "config.yml", Config::YAML, array());
$this->getServer()->getPluginManager()->registerEvents($this, $this);
if (!is_dir($this->getDataFolder())) {
@mkdir($this->getDataFolder());
}
}
$config = new Config($this->getDataFolder() . "config.yml", Config::YAML, array());
if($config->get("enable-commands") === true){
$this->getServer()->getCommandMap()->register("customquery", new CustomQueryCommand($this));
if($config->get("default-server-name" === false)){
if(count($player = $this->getServer()->getOnlinePlayers()) < 1){
$this->getScheduler()->scheduleRepeatingTask(new ServerNameTask($this, $player), 20);
}
}
}
}
/*
#0 (): BaseClassLoader->loadClass(string CustomQuery\iZeaoGamer\Main)
#1 (): spl_autoload_call(string CustomQuery\iZeaoGamer\Main)
#2 src/pocketmine/plugin/PluginManager(178): class_exists(string CustomQuery\iZeaoGamer\Main, boolean 1)
#3 src/pocketmine/plugin/PluginManager(343): pocketmine\plugin\PluginManager->loadPlugin(string /home/container/plugins/CustomQuery_dev-70.phar, array Array())
#4 src/pocketmine/Server(1714): pocketmine\plugin\PluginManager->loadPlugins(string /home/container/plugins/)
#5 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/container/, string /home/container/plugins/)
#6 (1): require(string phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show