what i need to change to make this plugin work again PHP: public function onPacketReceived(DataPacketReceiveEvent $event){ $pk = $event->getPacket(); $player = $event->getPlayer(); if($pk instanceof UseItemPacket and $pk->face === 0xff) { $item = $player->getInventory()->getItemInHand(); if($item->getId() == 290){ foreach($player->getInventory()->getContents() as $item){ if ($item->getID() == 351 && $item->getDamage() == 8 && $item->getCount() > 0){ $nbt = new CompoundTag ( "", [ "Pos" => new ListTag ( "Pos", [ new DoubleTag ( "", $player->x ), new DoubleTag ( "", $player->y + $player->getEyeHeight () ), new DoubleTag ( "", $player->z ) ] ), "Motion" => new ListTag ( "Motion", [ new DoubleTag ( "", - \sin ( $player->yaw / 180 * M_PI ) *\cos ( $player->pitch / 180 * M_PI ) ), new DoubleTag ( "", - \sin ( $player->pitch / 180 * M_PI ) ), new DoubleTag ( "",\cos ( $player->yaw / 180 * M_PI ) *\cos ( $player->pitch / 180 * M_PI ) ) ] ), "Rotation" => new ListTag ( "Rotation", [ new FloatTag ( "", $player->yaw ), new FloatTag ( "", $player->pitch ) ] ) ] );