Hello I just wanted you to help me ( if you could ) with the code im trying to make ... Im trying to make plugin where when player step on emerald block and then they will get Effect automatically.. I dont know how to use Vector3 heres code... PHP: public function onMove(PlayerMoveEvent $ev) { $player = strtolower($ev->getPlayer()->getName()); ???????????????????????????????????????????????????? $player->addEffect(Effect::getEffect(1)->setDuration(20*10)->setVisible(false)); $player->addEffect(Effect::getEffect(8)->setDuration(20*10)->setVisible(fals[/PHP]
PHP: $to = $ev->getTo();$id = $to->getLevel()->getBlockIdAt($to->getX(),$to->getY()-1,$to->getZ()); Then you check if $id == the block you want...