1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

PlayerFishEvent?

Discussion in 'Plugin Help' started by Pqoster, May 18, 2021.

  1. Pqoster

    Pqoster Spider Jockey

    Messages:
    25
    hello guys,

    I would like to make the player I fished to be teleported to me. Is there any way to do this? I thought there was an event for that.

    ~ Forgiveness for weak English. ~
     
  2. WEATHERCRAFTYT1

    WEATHERCRAFTYT1 Baby Zombie

    Messages:
    121
    So when a fishing rod hits a player they teleport to you?
     
    Pqoster likes this.
  3. Pqoster

    Pqoster Spider Jockey

    Messages:
    25
    yes, exactly that
     
  4. WEATHERCRAFTYT1

    WEATHERCRAFTYT1 Baby Zombie

    Messages:
    121
    You can use the EntityDamageByEntity event and get the damager's item in hand which in this case is the fishing rod and then if the item is an fishing rod then you can teleport the player.
     
  5. Pqoster

    Pqoster Spider Jockey

    Messages:
    25
    Perfect. I'll try to do.
     
  6. Primus

    Primus Zombie Pigman

    Messages:
    749
    I didn't even know that fishing was implemented in pocketmine
     
  7. WEATHERCRAFTYT1

    WEATHERCRAFTYT1 Baby Zombie

    Messages:
    121
    Fishing rods are a thing but they don’t work. You need a plugin to get them to throw
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.