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. |
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). |
/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.
FLIGHT:
Fl2:
Flight: ANY
Actions:
- broadcast = &eAgro &a%player% &eggles the flight mode to &c&l%flight%