Action FLY

This action is used when the player needs to turn off or turn on the flight.

FLY <[allow] [fly]> [player]

ElementPossible ValuesDescription
allowtrue/falseAllow or forbid the player to activate the flight mode by double-clicking the jump key
flytrue/falseSet player flight mode
playerThe name of the player to which this action will be applied

In this action, one of the allow orfly parameters must be specified.

Examples

  1. Forbid the flight in the spawn region.
REGION:
  rf:
    region: spawn
    flags:
    - STATE=FLY
    actions:
    - FLY=fly:false
    - MESSAGE=&cFlight is forbidden!