on damage of player: if attacker is flying: execute console command "/fly %attacker% off" execute console command "/pex user %attacker% add anty.flycommand" send "&cBicie na fly jest zablokowane!" to attacker cancel event wait 30 second execute console command "/pex user %attacker% remove anty.flycommand" on command "/fly": if player has permission "anty.flycommand": cancel event send "&cBicie na fly jest zablokowane!" to attacker