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

Event when clicked

Comments in 'Plugin Development' started by abler98, Nov 15, 2014.

  1. abler98
    Offline

    abler98 New Member

    Joined:
    Nov 15, 2014
    Posts:
    26
    Minecraft User:
    abler98
    As a method works when using the object, for example, I clicked on the plate? I need something like onPlayerDropItem.

    Sorry for my English. All translated into Google translator
  2. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,132
    Plugins:
    4
    Minecraft User:
    iksaku
    For an event related to client Taps, use onPlayerInteractEvent that will return you block type and position that you tapped, also the player that do it and with what item
    abler98 likes this.
  3. abler98
    Offline

    abler98 New Member

    Joined:
    Nov 15, 2014
    Posts:
    26
    Minecraft User:
    abler98
    Thanks
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You shouldn't add the "on".
    iksaku and 64FF00 like this.
  5. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    298
    Plugins:
    2
    Minecraft User:
    64FF00
    pocketmine\event\player\PlayerInteractEvent
    iksaku likes this.

Share This Page

Advertisement