Disclaimer: I do NOT own this plugin and I did NOT help in creating it Original plugin here: http://github.com/thebigsmileXD/SkyBlockPE Hello, I wanted to add a skyblock plugin to my server and I found plugin called SkyBlockPE on an old pocketmine forum When you download it its in a zip folder and not in a phar and when I unzipped it and placed it in a plugin folder it didnt work... So I updated the api and made a phar of it, when I start the server up it says: Code: Enabling SkyBlock v1.0.2 [Server thread/CRITICAL]: ReflectionException: "Class pocketmine\event\block\ItemFrameDropItemEvent does not exist" (EXCEPTION) in "/src/pocketmine/plugin/PluginManager" at line 723 Disabling SkyBlock v1.0.2 [Server thread/CRITICAL]: Error: "Call to a member function close() on null" (EXCEPTION) in "/SkyBlockPE.phar/src/SkyBlock/SkyBlock" at line 461 Is there a way to fix it or that (ItemFrameDropItemEvent) was removed with the updates that came out? Thanks
In EventListener change the use pocketmine\event\block\ItemFrameDropItemEvent; to Code: use pocketmine\network\mcpe\protocol\ItemFrameDropItemPacket; The function close is on Skyblock.php at the bottom I changed that to Code: $this->getConfig()->save(); Remember enter your MySql details for the plugin to run that should work.
This is the bottom code of skyBlock.php Code: public function onDisable() { $this->dataProvider->close(); $this->getLogger()->info(TextFormat::GREEN."Saving plots"); $this->getLogger()->info(TextFormat::BLUE."Disabled the plot framework!"); $this->getLogger()->critical(TextFormat::RED."Shutting down to protect plots"); $this->getServer()->shutdown(); } } Where do I put Code: $this->getConfig()->save(); ?
Code: use pocketmine\network\mcpe\protocol\ItemFrameDropItemPacket; Didnt work, its still saying the same thing
remove the dataprovider close For now just comment out the $this->dataProvider->close(); Tell me if you have any progress.
Ok I have some progress... Its no longer critical but is the plot framework supposed to be disabled? Plugin still doesnt want to enable cuz of this: Code: ReflectionException: "Class SkyBlock\ItemFrameDropItemEvent does not exist" (EXCEPTION) in "/src/pocketmine/plugin/PluginManager" at line 723
In EventListener on line 218 look for public function itemframe and change what's in the curly braces to ( ItemFrameDropItemPacket $event )
pls help me 2017-06-04 [12:12:23] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerMoveEvent' to 'SkyBlock v1.0.2': Call to a member function bind_param() on null on SkyBlock\EventListener 2017-06-04 [12:12:23] [Server thread/CRITICAL]: Error: "Call to a member function bind_param() on null" (EXCEPTION) in "/SkyBlockPE-master/src/SkyBlock/provider/MYSQLDataProvider" at line 329