Player.PlayerFlying
Index
Methods
Methods
get
Returns boolean
trueif player is flying,falseotherwise.
getEnabled
Returns boolean
trueif player is allowed to fly,falseotherwise.
set
Changes player's current flying state, call Player.PlayerFlying.setEnabled to be able to set this property to
true.Parameters
enabled: boolean
whether the player should fly or not
Returns void
setEnabled
Enables or disables player's ability to fly.
Parameters
enabled: boolean
whether the player can fly or not
Returns void
Interface used to manipulate player's flying ability and state.
Consider using Player.getFlyingEnabled, Player.setFlyingEnabled, Player.getFlying and Player.setFlying.