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

Getting Used to the New Stuff

Comments in 'Plugin Development' started by Glitchmaster_PE, Jan 31, 2015.

  1. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    So, I am trying to get back into plugin development and what better place to start than the example plugin. So I am trying to get it to work. I used the guide here: http://pocketmine-mp.readthedocs.org/en/latest/plugins.html I did everything just it said, but it doesn't load. Not just that, I don't get a pop-up that says, loading failed or something like that, it simply doesn't even try. If anyone has any suggestions, I would love to here them, thanks!

    Glitch
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    In order for a plugin to load you must have a loader to load the plugin. PocketMine can by default only load packaged plugins (.phar), if you want to load a plugin in it's source format, you will need DevTools. DevTools registers a loader for folders.
    Andrey Nazarchuk and iJoshuaHD like this.
  3. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Oh, Thanks!
  4. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    If you want to package you plugin just use DevTools and run makeplugin <name>
  5. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Nice! That worked perfectly! Thanks!
  6. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
    Updated the docs!
  7. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,132
    Plugins:
    4
    Minecraft User:
    iksaku
    Also, it's very common the usage of static instances by devs in the New API, but is considered a bad practise! XD you can use alternative methods, like SimpleAuth, DevTools and EssentialsPE use to access its own API/Core
    PEMapModder and Glitchmaster_PE like this.
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    If you need help, feel free to find me anytime with pm or IRC :) I'd be grateful to help someone who was once one of the greatest developers.

Share This Page

Advertisement