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

Hit sheep

Comments in 'Plugin Development' started by JackboyPlay, Jul 9, 2016.

  1. Syntaxious
    Offline

    Syntaxious New Member

    Joined:
    Sep 15, 2015
    Posts:
    19
    Minecraft User:
    Syntaxious
    PHP:
    $damager->SendMessage("You hit a player");
  2. Syntaxious
    Offline

    Syntaxious New Member

    Joined:
    Sep 15, 2015
    Posts:
    19
    Minecraft User:
    Syntaxious
    Why
    PHP:
    $event->getEntity()->sendMessage("You got hit"); //Use $damager->sendMessage("message"); // ?
  3. Syntaxious
    Offline

    Syntaxious New Member

    Joined:
    Sep 15, 2015
    Posts:
    19
    Minecraft User:
    Syntaxious
    Why
    PHP:
    $event->getEntity()->sendMessage("You got hit"); //Use $damager->sendMessage("message"); // ?
  4. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    Wait... We are talking about hitting a sheep right? Why are we sending a message to the sheep?
  5. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    It's already implemented into event.
    PHP:
    PlayerInteractEvent::getAction() === PlayerInteractEvent::LEFT_CLICK_BLOCK
  6. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    PlayerInteractEvent is about clicking the block, not clicking an entity.... InteractPacket is about clicking an entity, not a block...

    Ignored by the whole world
    jojoe77777 likes this.
  7. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    You could mention that in the first post.
  8. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    Wait, when did we start talking about PlayerInteractEvent...
  9. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    I assumed InteractPacket is the same.
  10. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    Who knows what you would have assumed...

    Mat likes this.
  11. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    You truly hate human factor don't you? :D
    Survingo and Mat like this.
  12. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    But you can't expect me to know that you would get too clever and think that others are wrong because of your own wrong assumption ;) We only talked about InteractPacket, and why would I in the first place expect that people who love challenging me would try to relate it to PlayerInteractEvent?
    Primus likes this.

Share This Page

Advertisement