1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Problem with starting up SkyBlockPE plugin

Discussion in 'Plugin Help' started by wizard223, May 1, 2017.

  1. wizard223

    wizard223 Silverfish

    Messages:
    19
    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 :)
     
  2. gsdgamer

    gsdgamer Spider Jockey

    Messages:
    28
    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.
     
  3. wizard223

    wizard223 Silverfish

    Messages:
    19
    Where do I find the EventListener?
     
  4. wizard223

    wizard223 Silverfish

    Messages:
    19
    Nvm I found it XD
     
  5. gsdgamer

    gsdgamer Spider Jockey

    Messages:
    28
    Ok let me know if that helped.
     
  6. wizard223

    wizard223 Silverfish

    Messages:
    19
    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();
    
    ?
     
  7. wizard223

    wizard223 Silverfish

    Messages:
    19
    Code:
    use pocketmine\network\mcpe\protocol\ItemFrameDropItemPacket;
    
    Didnt work, its still saying the same thing
     
  8. gsdgamer

    gsdgamer Spider Jockey

    Messages:
    28
    remove the dataprovider close
    For now just comment out the $this->dataProvider->close(); Tell me if you have any progress.
     
  9. wizard223

    wizard223 Silverfish

    Messages:
    19
    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
    
     
  10. gsdgamer

    gsdgamer Spider Jockey

    Messages:
    28
    In EventListener on line 218 look for public function itemframe and change what's in the curly braces to ( ItemFrameDropItemPacket $event )
     
  11. wizard223

    wizard223 Silverfish

    Messages:
    19
    Ill do that and let you know when I did it
     
  12. gsdgamer

    gsdgamer Spider Jockey

    Messages:
    28
    Ok thanks. Hopefully it will work, just let me know.
     
  13. kiencool

    kiencool Spider Jockey

    Messages:
    36
    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
     
  14. Ekko

    Ekko Silverfish

    Messages:
    21
    GitHub:
    TaiXeko
    Help me fix auto Tele to island
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.