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

How do you get Incompatible API's to work?

Discussion in 'Help' started by Patapon266, May 14, 2017.

  1. Patapon266

    Patapon266 Creeper

    Messages:
    1
    GitHub:
    patapon266
    So I have been spending 2 hours trying to find out how to add these API but almost all of them say:


    [01:50:42] [Server thread/ERROR]: Could not load plugin 'MyAuth': Incompatible API version

    [01:50:42] [Server thread/ERROR]: Could not load plugin 'AlwaysSpawn': Incompatible API version

    [01:50:42] [Server thread/ERROR]: Could not load plugin 'RankPoints': Incompatible API version
    How do you make them compatible or unpackage the phar so you can change the API ALPHA version?

    Thanks if you can help!

     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    WTF
     
    Sandertv likes this.
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    Please do not advocate for bumping APIs without explaining the consequences and effects of doing that
    firstly if you are not the developer, you voided any guaranteed support by bumping the API
    and there's a reason why API is in place, to prevent plugins from running in incompatible versions
    there's also no guarantee that it will work as how it's supposed to or before the API at best things works, but they will broke most times
     
    jasonwynn10 and SOFe like this.
  4. moska

    moska Baby Zombie

    Messages:
    105
    GitHub:
    supermaxalex
    Wow
     
  5. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
  6. matija131

    matija131 Spider Jockey

    Messages:
    31
    Its actaully very simple!
    Download Notepad++ firstly so you can see the code better...
    When you got it installed go to this website: http://unphar.com/ then click on choose file and find the phar of the plugin that you want to bump... Then click on .zip and then convert... Next, download that zip file and extract it... When you extracted it open the plugin.yml with Notepad++ and find the row that says api...
    Its should look like this:
    api:
    - 2.0.0
    - 3.0.0-ALPHA1
    - 3.0.0-ALPHA2

    or like this

    api: [2.0.0, 3.0.0]

    Now just change (for example) - 3.0.0-ALPHA1 to - 3.0.0-ALPHA5 (or whatever api you want to bump it on)...
    Now save that and zip all folders and files back...
    Then go here: www.DevTools/pocketmine.php (it might not be working anymore so you will have to use DevTools plugin)
    If you have DevTools then put that zip into your plugin folder and run the server... Then in the console type /makeplugin (zip file name) and hat should be it!
     
  7. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    It's DevTools/
     
  8. matija131

    matija131 Spider Jockey

    Messages:
    31
  9. Ad5001

    Ad5001 Silverfish

    Messages:
    16
    GitHub:
    ad5001
    You can go to DevTools (working again) for a zip2phar.
     
  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.