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

PocketMine 1.4 API

Comments in 'Plugin Development' started by TheSkyrexMC, Jun 15, 2014.

  1. TheSkyrexMC
    Offline

    TheSkyrexMC New Member

    Joined:
    Apr 14, 2014
    Posts:
    3
    Minecraft User:
    TheSkyrexMC
  2. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    TheSkyrexMC likes this.
  3. TheSkyrexMC
    Offline

    TheSkyrexMC New Member

    Joined:
    Apr 14, 2014
    Posts:
    3
    Minecraft User:
    TheSkyrexMC
    But, where? in classes or files or where!!!!!?
  4. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
  5. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    You will want to use pocketmine\event\player\PlayerInteractEvent. Health isn't yet implemented in 1.4 so you won't be able to anything with heal().
    Last edited: Jun 15, 2014
  6. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Here is a ported version for you.

    Attached Files:

    TheSkyrexMC likes this.
  7. TheSkyrexMC
    Offline

    TheSkyrexMC New Member

    Joined:
    Apr 14, 2014
    Posts:
    3
    Minecraft User:
    TheSkyrexMC
    i put this on plugin folder?
  8. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Yeah, but since health isn't fully working it won't do anything.
    TheSkyrexMC likes this.
  9. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    sorry if this is off topic but where do you find functions in the doc. and how do you do the healing function?
  10. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    On the documentation page click the "Classes" tab. It should come with a list of namespaces containing different files/classes. Btw, when functions are part of an object it's called methods (with Javascript as an exception).
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    But that event is for touching blocks...
    swagboy47 likes this.
  12. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    What? Read the plugin he wants. You tap and you get healed.
    PEMapModder likes this.

Share This Page

Advertisement