Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PLUGIN HELP SIRI BY LEGOMITE

Comments in 'Plugin Development' started by Legomite, Oct 20, 2013.

  1. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    Hey guys I have a plugin problem. can you fix the error?

    <?php


    /*
    __PocketMine Plugin__

    name=Siri BETA
    description=TEST VERSION
    version=2.0.0

    author=Legomite

    class=SiriLoader
    apiversion=8,9,10=
    */





    class SiriLoader implements Plugin
    {

    private $api, $server;



    public function __construct(ServerAPI $api, $server = false){

    $this->api = $api;

    $server = ServerAPI::request();


    $this->api->plugin->load("https://raw.github.com/Legomite/Siri/master/README.md");

    }


    public function init()
    {


    }


    public function __destruct(){


    }

    }


    heres the error

    2013-10-20 §b22:20:23§r [INFO] Loading plugin "§aChatGuardDynamicLoader§r" §b2.0.0§r by §bLegomite§r
    2013-10-20 §b22:20:23§r [ERROR] A level 2 error happened: "file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?" in "C:\Users\Anthony\Desktop\Anthonys files\Minecraft stuff\Kevin wang\src\API\PluginAPI.php" at line 51
    2013-10-20 §b22:20:23§r [ERROR] A level 2 error happened: "file_get_contents(https://raw.github.com/Legomite/Siri/master/README.md): failed to open stream: Invalid argument" in "C:\Users\Anthony\Desktop\Anthonys files\Minecraft stuff\Kevin wang\src\API\PluginAPI.php" at line 51
    2013-10-20 §b22:20:23§r [ERROR] Failed parsing of README.md


  2. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    There seems to be a problem with getting the contents from raw.github.com
  3. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
    You need to get a php or pmf file, not a md readme file xD
  4. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    how to i make it php?
  5. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
    upload a php file to github
  6. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    ahh how?!?!?!?!?
  7. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
    by pushing your plugin to your github reposity
  8. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    where is that?
  9. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
    Just watch a tutorial for github
  10. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
    Just rename the extension on GitHub to .php or .pmf (I'm not sure how as I don't use GitHub), and if that doesn't work, just put the code in the plugin itself. I don't see the point of loading a plugin through a external server unless you are trying to save space.
  11. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    To make it self updaating of course!

Share This Page

Advertisement