Skip to content
MaxDikiy edited this page May 7, 2017 · 3 revisions

This activator works when the player changes the flight mode.

To create this activator, use the command:

/React add FLIGHT <AgentName> [flight]

Element Possible Values ​​ Description
[Flight] TRUE/FALSE/ANY The flight mode, which will track the activator.
The default is flight: ANY. This means that the activator will work at any switch of the flight mode.

Temporary placeholders operating in this activator:

Placeholder Description
% Flight% Shows the flight mode of the player (TRUE / FALSE). Useful when you need to constantly monitor the flight mode (you can write to a variable).

Examples

  1. Prohibit flight to the player:
    /React add FLIGHT fl flight: true
    /React add fl a CANCEL_EVENT true
    /React add fl a broadcast &cthe Player &a%player% &ctried to take off, but the Activator prohibits it.

or

FLIGHT:
  Fl:
    Flight: TRUE
    Actions:
    - cancel_event = true
    - broadcast = &cThe Player &a%player% &ctried to take off, but the Activator prohibits.
  1. Recognize the mode of the player's flight at the moment of switching:
FLIGHT:
  Fl2:
    Flight: ANY
    Actions:
    - broadcast = &eAgro &a%player% &eggles the flight mode to &c&l%flight%
Clone this wiki locally