RedCraftGH / RedSkyBlock

Red's (amazing) SkyBlock plugin :) Seriously, it's awesome and easy to use!
GNU General Public License v2.0
46 stars 33 forks source link

Help please #97

Open xodamcm opened 2 years ago

xodamcm commented 2 years ago

Dont understand xonfiguratiion; on start server, i have thid crash

PocketMine-MP Crash Dump Fri Apr 8 21:36:53 UTC 2022

PocketMine-MP version: 4.2.6 [Protocol 486] Git commit: 26aee7ff73a982dd45abf8184c715f290ce23fdb PHP version: 8.0.17 OS: Linux, linux

A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: RedSkyBlock

Error: pocketmine\world\WorldManager::loadWorld(): Argument #1 ($name) must be of type string, bool given, called in phar:///home/container/plugins/RedSkyBlock-PM4_dev-15.phar/src/RedCraftPE/RedSkyBlock/SkyBlock.php on line 70 File: pmsrc/src/world/WorldManager Line: 187 Type: TypeError Backtrace:

0 plugins/RedSkyBlock-PM4_dev-15.phar/src/RedCraftPE/RedSkyBlock/SkyBlock(70): pocketmine\world\WorldManager->loadWorld(true)

1 pmsrc/src/plugin/PluginBase(137): RedCraftPE\RedSkyBlock\SkyBlock->onEnable()

2 pmsrc/src/plugin/PluginManager(437): pocketmine\plugin\PluginBase->onEnableStateChange(true)

3 pmsrc/src/Server(1385): pocketmine\plugin\PluginManager->enablePlugin(object RedCraftPE\RedSkyBlock\SkyBlock#4402)

4 pmsrc/src/Server(1011): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#24915)

5 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)

6 pmsrc/src/PocketMine(327): pocketmine\server()

7 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Code: [178] } [179] [180] /* [181] Loads a world from the data directory [182] [183] @param bool $autoUpgrade Converts worlds to the default format if the world's format is not writable / deprecated [184] [185] @throws WorldException [186] */ [187] public function loadWorld(string $name, bool $autoUpgrade = false) : bool{ [188] if(trim($name) === ""){ [189] throw new \InvalidArgumentException("Invalid empty world name"); [190] } [191] if($this->isWorldLoaded($name)){ [192] return true; [193] }elseif(!$this->isWorldGenerated($name)){ [194] return false; [195] } [196] [197] $path = $this->getWorldPath($name);

JoshuaPHYT commented 2 years ago

Use latest Dev please