Exactly as the title states, I am looking for a way to tell if the player is flying an elytra such as a flag or property? When a player is flying it shows them to others as walking. This is using @Ad5001 s Elytra plugin. I was going to attempt a modification.
After some time, I discovered something: The player action 15 (or 14, I don't exactly remember) is used to start gliding and 16 (or 15 for the same reason) for the stop gliding. If you feel so, you could save using a catching datapacket PlayerActionPacket.
PHP: public function onWings(Player $player){if($player->getInventory()->getChestplate()->getId() === 443){\\ do stuff\\ elytra goes into the chestplate slot thats why i used getChestplate(){{