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

How can I use $player here ?

Discussion in 'Plugin Help' started by TheWalkingDrift, Jul 4, 2019.

  1. TheWalkingDrift

    TheWalkingDrift Silverfish

    Messages:
    23
    I want to send a Message to the moved Player

    public function onMove(playerMoveEvent $event) {
    $player->sendMessage("You Moved");

    I tryed it so, but it don't worked
     
  2. Clik

    Clik Spider Jockey

    Messages:
    25
    GitHub:
    KadTheHunter
    Try
    PHP:
    public function onMove(PlayerMoveEvent $event) {
    $player $event->getPlayer();
    $player->sendMessage("You Moved");
     
  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.