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

A W.I.P. plugin API: LazyPaml

Comments in 'Plugin Development' started by PEMapModder, Oct 28, 2014.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    https://github.com/PEMapModder/FlowingPlugin

    I'm working on this project with the worst name in the world recently. It is based on the idea of @DinnerBone. The aim of the API is to let people with less PHP knowledge make command handlers, event handlers and scheduled events add/modify server features more easily.

    Examples can be found at the examples/ directory. Although to PHP nature it looks ugly, in human language, this looks exactly like point form (except the parentheses). The center of the API is to return $this, and I'm working on making it more extensible and human-readable.
    If you have any suggestions or want to make a pull request, you are always welcome. :)
    Falk, iJoshuaHD and Dinokiller like this.
  2. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    This sounds like a pretty nice idea. :D
  3. ServerKart_Rod
    Offline

    ServerKart_Rod Active Member Plugin Developer

    Joined:
    Jul 7, 2014
    Posts:
    110
    Plugins:
    1
    Minecraft User:
    Advocaite
    cool idea but plugins should not be like this, I feel it takes away the nature of learning how it is done right
  4. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    372
    Plugins:
    3
    Minecraft User:
    Dutok
    PEMapModder, iJoshuaHD and Jon like this.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Then don't think it is PHP. You learn JSON without thinking it is JavaScript. And you just need to make proper string syntax here, no else PHP knowledge required.
    Dutok likes this.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Oh yeah, and I request a better name :D
  7. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    372
    Plugins:
    3
    Minecraft User:
    Dutok
    Now that I've had a chance to see it, I'm very impressed. Great job, @PEMapModder.
    iJoshuaHD likes this.
  8. ServerKart_Rod
    Offline

    ServerKart_Rod Active Member Plugin Developer

    Joined:
    Jul 7, 2014
    Posts:
    110
    Plugins:
    1
    Minecraft User:
    Advocaite
    its still a good idea just it hink people need to learn how to make these them self lets say things change yo no longer update it what are they gonna do that is only reason i say they should learn to do it properly first then use something to make life easier, you know what I mean?

    other wise great concept
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    And one day they no longer update PocketMine and what are we gonna do?
    FlowingPlugin is just an easy API, just like the old AmaiBeetroot API is just a temporary API in development versions of PocketMine-MP. Yet people still used it.

    I'm just making this API to help some servers make their own private plugins. I doubt @shoghicp would appreciate people releasing this kind of plugins anyway.

    Moreover, the project is open-source. If I suddenly died (joke; I mean disappeared) some guys would just fork my repo and make a pull request, and if nobody (me) merges the pull request, they can just tell people to use the version in their forks. According to the GNU Public License I use for the server software, forking and asking people to download from the fork is perfectly allowed.
  10. ServerKart_Rod
    Offline

    ServerKart_Rod Active Member Plugin Developer

    Joined:
    Jul 7, 2014
    Posts:
    110
    Plugins:
    1
    Minecraft User:
    Advocaite
    if @shoghicp decided that well im sure there be many of us who would try continue it, I know I would try but hey lets not curse pocketmine

    and don't think I'm having a go at you for making life easy or making plugin development noob friendly, Im really not, its all just opinions and I think the world is getting to lazy lol

    As for new name maybe we could call it just that Lazyplug
    PEMapModder likes this.
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Well, for some degrees you can assume that this is not a plugin API, but just a plugin that parses config files in a special manner such that the strings are in PHP syntax and the other things are just a variant of YAML (call it PHP-Aint-Markup-Language PAML :D)

    Oh yeah, let's call it LazyPaml! Others like this?
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I just did it. https://github.com/PEMapModder/LazyPaml/commit/15c5d882f273b365c78cc40a9a729cddac6c8252
    ServerKart_Rod likes this.

Share This Page

Advertisement