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

DevTools extract plugin

Discussion in 'Plugin Help' started by Amon28, May 20, 2017.

  1. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    Whenever I do extract plug in keeps saying on the console "Invalid plug in name"
    I thought I put the wrong name of the Phar plug in. I opened the phar to check the name and i copied it.
    When i do extract again it keeps saying invalid name
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    /extractplugin accepts the name of the plugin, not the name of the phar file.
    Also check if the plugin is loaded and enabled. If the server doesn't have the plugin loaded and enabled, /extractplugin won't work.
     
    jasonwynn10 and EdwardHamHam like this.
  3. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    I've tried extracting the plug in that is enabled in my server I copied the name when it says it on but it didn't work Ive opened the phar just to see the name of the plug in but no work too
     
  4. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    What are you using to "open" the phar?
     
  5. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    I just open the phar to see its name
    I use notepad++ to open it
    I use Devtools to extract
     
  6. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    I use the latest version of devtools
     
  7. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Do you extract the phar first, or do you just open the phar file as a text file in Notepad++?
     
  8. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    I open the phar file as text in notepad++ and copy it's name
     
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Show your full console from starting server to extracting plugin.
     
  10. Michael

    Michael Baby Zombie

    Messages:
    113
    GitHub:
    michaelm04
    It's quite simple to extract a plugin using DevTools, you just have to make sure you have the right name (plugin names are case sensitive) and the plugin is enabled. So run /plugins and check for the plugin your looking to extract make sure the plugin name is green and not red (red means an error occurred causing it to be disabled), then run /extractplugin <plugin_name> make sure the plugin name is spelt exactly as /plugins show it.
     
    jasonwynn10 likes this.
  11. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    i know now whats the problem the plugin that im trying to extract has Incompatible API
    other plugins works well but i just downloaded today the latest version of Always spawn but it keeps saying incompatible API ive opened the phar file i saw its API 1.0.0 but it says on poggit 3.0.0-ALPHA5
    this is my third time downloading the plugin at first i thought its just a bug or i got files mix up
     

    Attached Files:

  12. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    You're trying to open the phar as a text file, but it doesn't work that way.

    If the API is not compatible, than you may have to find an alternative plugin.
     
  13. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    i open the phar as a text file just to see the plugins name but what i didnt know the plugin has incompatible api
     
  14. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    :facepalm::facepalm: The plugin can't be used once it's opened as a text file
     
    EdwardHamHam likes this.
  15. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    The phar plug in is in phar format i didn't change the file format is just opened it using notepad++
    Edit: the phar plug in will still work as long as it's in phar format and as long as it's not edited
     
    jasonwynn10 likes this.
  16. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Not if it's been opened. Opening it corrupts it. Like @jasonwynn10 said it can't be used afterwords.
     
  17. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    You can't corrupt the file by opening it, since you haven't saved it and he even says that the phar works...
     
  18. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Oh, sorry.
     
  19. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    It's only viewing the phar file. Binary bytes are otherwise encoded by Nnotepad++, and since the plugin.yml doesn't get compressed, it can still be viewed correctly.
    Do not rely on this method though. Some phar files are compressed and you can't view them directly through Notepad++.
    Or just clone it to be safe :)
     
  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.