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

How to change the API on a plugin

Discussion in 'Development' started by Theo gillespie, Jul 3, 2018.

  1. Theo gillespie

    Theo gillespie Spider

    Messages:
    13
    I'm new to pmmp and when I try to add a plugin ( from poggit ) it says that the api is not combattible with the server, and I'm wondering how I can change the api version on the plugin to match the server.
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You can change the API number in plugin.yml, HOWEVER: It is highly discouraged. The API version is incompatible because large changes have been made since that plugin was updated, some of which may break the plugin. You can change the number, but that won't automatically make the plugin itself compatible.
     
    jasonwynn10 likes this.
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    TL;DR: If it is outdated, don't use it and find another plugin.
     
    jasonwynn10 likes this.
  4. Theo gillespie

    Theo gillespie Spider

    Messages:
    13
    Thank you,
    But to reach the .yml file, how do I decompress the phar file?
     
  5. Darku

    Darku Spider Jockey

    Messages:
    49
    GitHub:
    DarkWav
    <pluginname> extends the name of your plugin.
    You can download DevTools and run
    Code:
    /extractplugin <pluginname>
    
    to decompress the phar file to plugin_data/DevTools/<pluginname>
    Once you changed everything, drag the <pluginname> folder
    to you main plugins folder, restart the server and run
    Code:
    /makeplugin <pluginname>
    
    to get the new phar file created at plugin_data/DevTools/.
    However, keep in mind, its very unlikely a pre-3.0.0 plugin will
    actually work with 3.0.0 without updateing the entire source code...
     
    Last edited: Jul 4, 2018
  6. Theo gillespie

    Theo gillespie Spider

    Messages:
    13
  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.