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

Discussion Opinion about new API

Comments in 'General Discussion' started by Lambo, Jun 5, 2014.

  1. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
    I was wondering what you guys are thinking about the new API, compared to the old API.

    I actually find it really cool, and of course there is a whole documentation now that explains allot and that is helping me too, and I am hoping that it will be faster too. Oh, and it's also fully object orientated!

    Of course, to big servers like LifeBoat, this new API is a pain, as they have to update there really big plugins. But I think it will be worth it :)

    So what do you guys think?
    iksaku, 64FF00 and Darunia18 like this.
  2. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    386
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    Although its kind of annoying that it seemsed that right after I started making PocketMine plugins and got used to its API everything was going to change (just my luck :p) I think its a good thing since it will allow us to make better plugins and PocketMine-MP will be virtually bug free (after its official release anyway) ;)
    64FF00 and Lambo like this.
  3. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    754
    Plugins:
    2
    Minecraft User:
    Darunia18
    I love it! After only working with it a few days, I understand it completely. It just took awhile to understand what everything meant without any real tutorial :p But I just asked @shoghicp lots of questions (sorry for bugging you so much dude :p) and looked at plugin code (as well as the docs and the Core-Rewrite code a bit as well), and it made more sense. I'm really excited to work with it more now! :D
    PEMapModder, iksaku, Tuff and 3 others like this.
  4. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
    Same!
    PEMapModder, iksaku and 64FF00 like this.
  5. mightysun99
    Offline

    mightysun99 Redditor

    Joined:
    Jun 7, 2014
    Posts:
    25
    Minecraft User:
    mightysun99
    The new api is only gonna allow us to do more so I'm all for it :)
    Lambo and Darunia18 like this.
  6. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    With this API... The creativity of plugin dvelopers will increase a lot! This is API let you to make anything you want! This API is making PocketMine to reach a true limitless level :D
    (Sorry, bad grammar)
    Darunia18 and Comedyman937 like this.
  7. LDX
    Offline

    LDX Notable Member Plugin Developer

    Joined:
    Oct 2, 2013
    Posts:
    1,397
    Plugins:
    14
    Creativity: Check. Major setback after just learning OO PHP: Check. Super depressed: Check.
    iJoshuaHD, iksaku and Darunia18 like this.
  8. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    754
    Plugins:
    2
    Minecraft User:
    Darunia18
    After seeing what I can do, I've gotten lots more ideas, as well as an understanding of how to improve past plugins (or at least half-made plugins :p).
    Killman2, iksaku, Lambo and 1 other person like this.
  9. Killman2
    Offline

    Killman2 Active Member Plugin Developer

    Joined:
    May 5, 2014
    Posts:
    81
    Plugins:
    1
    Minecraft User:
    Killman2
    I just looked at the documentation and I love it! The only thing is that I am the owner of a big server with mini-games and now I have to rewrite all the plugins :( But generally, the API is amazing! Well done shoghicp! Felicidades :D
    LDX and Darunia18 like this.
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I still don't understand what was impossible before but possible now. By impossible, I mean it is unable to be done unless you hack into your client.
    Maybe mob arenas are now possible, but it is just another relocation of code.
    Killman2, Darunia18 and LDX like this.
  11. jerlegoman
    Offline

    jerlegoman Active Member

    Joined:
    Dec 10, 2013
    Posts:
    120
    Minecraft User:
    jeremy647
    once the new API is not in testing mode anymore it will be amazing but currently I rather OLD API. One reason is because NEW API is in testing so it might be laggy another reason is that there is still many amazing plugins out there that I love that arent for NEW API
    Killman2 likes this.
  12. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    I just learned API 12 :(
    Killman2 likes this.
  13. Killman2
    Offline

    Killman2 Active Member Plugin Developer

    Joined:
    May 5, 2014
    Posts:
    81
    Plugins:
    1
    Minecraft User:
    Killman2
    Same )
    Renzo likes this.
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This is a chance for you to improve :)
  15. onebone
    Offline

    onebone Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    330
    Plugins:
    7
    Minecraft User:
    onebone
    I like the thing that it uses namespaces.
    I think that it will make server and plugins faster
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Namespace related to performance? It only slows down the serverby a few microseconds in compile time I think. Namespaces are just longer class names and nothing else.
  17. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    In compile... and from then, all is compiled.

    1.4 starts a lot faster than 1.3 (both from scratch and an existing server)
  18. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I know but it is related to namespaces?
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I think the best part in object-oriented update is that you no longer need to worry about typos. In the old API, you'll wonder to death why it isn't working when you typed "player.quit" as "player.qujt", but in the new API, registering to PlayerQujtEvent will create an exception of class not found immediately. This is what they call "undefined behavior".
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Life goes on :)
    LDX likes this.

Share This Page

Advertisement