package Ġio . ely tra . sdk . network . protocol . handlers . play Ċ Ċ import Ġio . ely tra . sdk . network . Network Session Ċ import Ġio . ely tra . sdk . network . protocol . handlers . E ly tra MessageHandler Ċ import Ġio . ely tra . sdk . network . protocol . message . play . inbound . Player Abilities Message Ċ import Ġio . ely tra . sdk . server . E ly tra Ċ Ċ class ĠPlayer Abilities Handler Ġ: ĠE ly tra MessageHandler < Player Abilities Message >() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġhandle ( session : ĠNetwork Session , Ġmessage : ĠPlayer Abilities Message ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġplayer Ġ= ĠE ly tra . server . player Registry . get ( session ) !! ĊĠĠĠĠĠĠĠ Ġval Ġf lying Flag Ġ= Ġmessage . flags Ġand Ġ 0 x 0 2 Ġ!= Ġ 0 ĊĊĠĠĠĠĠĠĠ Ġval Ġcan Fly : ĠBoolean Ġ= Ġplayer . f lying ĊĊĠĠĠĠĠĠĠ Ġif Ġ(! f lying Flag Ġ|| Ġcan Fly ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer . f lying Ġ= Ġf lying Flag ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ