-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Undefined index: creativeWorlds" #5
Comments
Also, typo here ('Cloud' should be 'Could' I think): |
Also: Line 59 of MultiWorld.php: Line 3 of config.yml: The version check fails and prevents the plugin from loading. I added 'array_key_exists() around the gamemodeWorlds access, changed the version in config.yml, and now the plugin loads. |
If you want to use MultiWorld plugin, download phar from releases (https://github.com/CzechPMDevs/MultiWorld/releases/tag/1.3.1). |
I couldn't use the .phar which is why edited and built the phar by hand. |
If plugin don't work for your, check pocketmine version or there can be problem while compiling |
fixed (874d89b) |
perhaps checks for each of these indexes are in order:
$config = $this->plugin->getConfig();
$gmWorlds = $config->get("gamemodeWorlds");
if(is_array($gmWorlds)) {
$this->configData["creativeWorlds"] = $gmWorlds["creativeWorlds"];
$this->configData["survivalWorlds"] = $gmWorlds["survivalWorlds"];
$this->configData["adventureWorlds"] = $gmWorlds["adventureWorlds"];
$this->configData["spectatorWorlds"] = $gmWorlds["spectatorWorlds"];
}
line38
(that's not a typo, somehow the timestamp is being cut off)
[02:49:35] [Server thread/INFO]: Enabling MultiWorld v1.3.2 [BETA]
[02:49:35] [Server thread/CRITICAL]: ErrorException: "Undefined index: creativeWorlds" (EXCEPTION) in "MultiWorld.phar/src/MultiWorld/Util/ConfigManager" at line 38
[02:49:35] [Server thread/DEBUG]: #0 MultiWorld.phar/src/MultiWorld/Util/ConfigManager(38): pocketmine{closure}(integer 8, string Undefined index: creativeWorlds, string phar:///u/mcsrv/pe/pmmp/plugins/MultiWorld.phar/src/MultiWorld/Util/ConfigManager.php, integer 38, array Array())
[02:49:35] [Server thread/DEBUG]: #1 MultiWorld.phar/src/MultiWorld/Util/ConfigManager(30): MultiWorld\Util\ConfigManager->loadData()
[02:49:35] [Server thread/DEBUG]: #2 MultiWorld.phar/src/MultiWorld/MultiWorld(48): MultiWorld\Util\ConfigManager->__construct(MultiWorld\MultiWorld object)
[02:49:35] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginBase(90): MultiWorld\MultiWorld->onEnable()
[02:49:35] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PharPluginLoader(122): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[02:49:35] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginManager(603): pocketmine\plugin\PharPluginLoader->enablePlugin(MultiWorld\MultiWorld object)
[02:49:35] [Server thread/DEBUG]: #6 src/pocketmine/Server(1926): pocketmine\plugin\PluginManager->enablePlugin(MultiWorld\MultiWorld object)
[02:49:35] [Server thread/DEBUG]: #7 src/pocketmine/Server(1912): pocketmine\Server->enablePlugin(MultiWorld\MultiWorld object)
[02:49:35] [Server thread/DEBUG]: #8 src/pocketmine/Server(1698): pocketmine\Server->enablePlugins(integer 1)
[02:49:35] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(541): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///u/mcsrv/pe/pmmp/PocketMine-MP.phar/, string /u/mcsrv/pe/pmmp/, string /u/mcsrv/pe/pmmp/plugins/)
[02:49:35] [Server thread/DEBUG]: #10 /u/mcsrv/pe/pmmp/PocketMine-MP.phar(1): require(string phar:///u/mcsrv/pe/pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[02:49:35] [Server thread/INFO]: Disabling MultiWorld v1.3.2 [BETA]
[02:49:35] [Server thread/INFO]: [MultiWorld] MultiWorld is disabled!
The text was updated successfully, but these errors were encountered: