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

Can anyone help me update a plugin to the new API

Comments in 'Plugin Development' started by merge, Sep 11, 2014.

  1. merge
    Offline

    merge New Member

    Joined:
    Jun 11, 2014
    Posts:
    5
    Minecraft User:
    lukealec0518
    I need to update this hg plugin
    it is not mine it is sekjun9878's and i made a few small edits to make it easier to use
    pastebin of code
    http://pastebin.com/kU587KaU

    Attached Files:

  2. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    You have to rewrite all your code.
    1) The new API has new libraries and functions. (It's totally rewritten)
    2) Now plugins are .phar archives and not single .php or .pmf files
    This is a small tutorial (you should learn the new api first):
    Follow the screenshots
    1) Plugin structure
    1.PNG
    2) plugin.yml file
    2.png
    3) Your php class
    3.png
    4) Create .phar file
    - Install DevTools in your PocketMine server
    - Copy your plugin directory in Pocketmine\plugins directory.
    - Start your server
    - Run makeplugin <plugin> command in PocketMine (replace <plugin> with your plugin folder name. Be careful: it's case sensitive)
    5) You're almost done! :)
    - Move your plugin directory outside PocketMine\plugins
    - Go to DevTools directory and copy (or move) the generated .phar file on PocketMine\plugins.
    END :)
    Please Like if I helped you :)




    Adaasi, LDX, merge and 1 other person like this.
  3. merge
    Offline

    merge New Member

    Joined:
    Jun 11, 2014
    Posts:
    5
    Minecraft User:
    lukealec0518
    makeplugin HG1
    22:02:17 [INFO] Invalid plugin name, check the name case.
  4. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    The plugin must have a plugin.yml and in folder form with the plugin.yml with the other stuff
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Search on the forums for phar compiling help.
    64FF00 and MCPEPIG like this.
  6. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    :)
    64FF00 likes this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    64FF00 likes this.
  8. merge
    Offline

    merge New Member

    Joined:
    Jun 11, 2014
    Posts:
    5
    Minecraft User:
    lukealec0518
  9. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh

Share This Page

Advertisement