setAllowFlight

public abstract void setAllowFlight(boolean flight)

Sets if the Player is allowed to fly via jump key double-tap like in creative mode.

Parameters

flight

If flight should be allowed.