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

Entity Move

Discussion in 'Plugin Help' started by ByAlperenS, Jun 21, 2020.

  1. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    Code;


    Code:
    public function ileri(PlayerMoveEvent $e){
            $p = $e->getPlayer();
            foreach(Server::getInstance()->getLevels() as $level){
                foreach($level->getEntities() as $entity){
                    if($entity instanceof TsEntity){
                        $entity->move($p->getMotion()->getX(), $p->getMotion()->getY(), $p->getMotion()->getZ());
                    }
                }
            }
        }
    Entity don't move
     
  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.