How do u make an API?

Discussion in 'Plugin Development' started by AKS JEFFREY, Jun 14, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    AKS JEFFREY

    so i want to make an API but i don't know/understand how to. My idea is making my own events and if someone else put my plugin in their external library, they will be able to caste/use the event.

    --this will confuse you-----

    My events is going to use bukkit's normal event. For example onplayerdamage if its a creepers or human i would use that and make an easier events like oncreeperdamage.
     
  2. Offline

    Smerfa

    Only one thing about API that you must now:
    - You shouldn't delete any methods, if you want something change - old method still must work great but @Depracate it - even if you find typo, like in WorldEdit - there is deprecated method because it has typo in method name, but after so long time it still work like normal method.

    But you can write it like you want :)
    You can, but you don't must use interfaces like in bukkit.
    You can, but you don't must create special API classes with API methods.


    PS: making this events... no :D just no, that will only force server to handle more events without any reason.
     
    Garris0n likes this.
  3. Offline

    AKS JEFFREY

    Smerfa it was an example something i thought in like 4 sec
     
  4. Offline

    RawCode

    put my plugin in their external library

    this is not how api for plugins works
     
  5. Offline

    tbrooks23

Thread Status:
Not open for further replies.

Share This Page