I know I can use $player->knockBack($damager,$damage,$x,$z,$base); $damager can be $player $damage will be 0 $x and $z: are those variables yaw&pitch + If yes, will just setting 0,0 works (knockback to the direction you're looking) $base is number (I use 0)
Actually, the first two parameters are there as an accident. Due to backwards compatibility we don't remove it. They are actually unused.