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

How to register an API

Discussion in 'Development' started by andrew_dev, May 13, 2021.

  1. andrew_dev

    andrew_dev Creeper

    Messages:
    3
    GitHub:
    andrewkydev1
    Hi, I have a question where can I write api in the pmmp core?
    Ie I need to use api 1.12.0 and 3.0.0 at the same time
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
  3. Primus

    Primus Zombie Pigman

    Messages:
    749
    because I don't understand what both of those things mean. But If I can get this to work, then I can use old API plugins.
     
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Thanks Primus, now I'm even more confused...

    So he wants to use old API version plugins...support both versions...but on what PM API..? what.??????
     
  5. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Why don't you just update the outdated plugin to PM3?
     
  6. Axon

    Axon Zombie

    Messages:
    276
    Behold! Primus the confuser and helper! (I know confuser isn't a word)
    I'm not sure if this link will help but you could try injecting it to the newest verison.
    Link https://pmt.nathfreder.dev/inject
     
    Agent likes this.
  7. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Don’t give dangerous methods. Not only “injecting” API won’t do anything, it will also not work either. What the website does is just write extra api versions in the plugin.yml, which actually doesnt do anything.
     
    Primus likes this.
  8. Axon

    Axon Zombie

    Messages:
    276
    I've never tried it, I didn't know xd. That's why I mentioned. I'm not sure xd
     
    Agent likes this.
  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.