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

Solved Is there any way to set compass target?

Discussion in 'Plugin Help' started by MinekCz, Oct 13, 2020.

  1. MinekCz

    MinekCz Spider Jockey

    Messages:
    29
    Hi, I'm doing the Murder minigame. My question is whether it is possible to set a compass target in Pocketmine. Maybe point to a player...
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    AFAIK compass points to player's respawn point. Change it accordingly.
     
  3. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Use PlayerInteractEvent and whenever someone(supposedly murder?) interacts with the compass, it gets the nearest player and their coordinates and sets the murder's respawn point to the player ;p

    Lazy solution ._.
     
    Primus likes this.
  4. MinekCz

    MinekCz Spider Jockey

    Messages:
    29
    Thank you for your response! It helped me a lot. I just thought there was a better option ... Otherwise, thank you
     
    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.