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

Solved Help in entity event

Discussion in 'Plugin Help' started by Kurth, Dec 24, 2021.

  1. Kurth

    Kurth Creeper

    Messages:
    3
    GitHub:
    iKurth
    When trying to see the distance of the player with $player->distance() etc It doesn't work for me, does anyone know if I change? PM4
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    It's $player->getPosition()->distance()!
     
    Kurth likes this.
  3. Kurth

    Kurth Creeper

    Messages:
    3
    GitHub:
    iKurth
    I want to know the distance a player hits but he sends me an error, do you know why? before it was only distance and voila
     

    Attached Files:

  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Send me the error.
     
  5. Kurth

    Kurth Creeper

    Messages:
    3
    GitHub:
    iKurth
    I could solve it, anyway, thank you very much, you were fine, I just need other things
     
    minijaham likes this.
  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.