Change Flag
Dynamically changes a region's flag during the game.
This powerful action allows you to change the value of a Region Flag (e.g., pvp, block-breaking) in the middle of a game.
Configuration
- Region: The region whose flag you want to change.
- Flag: The flag to modify (e.g.,
PLAYERS_VS_PLAYERS). - Value: The new value for the flag (
ALLOW,DENY).
Example
Enable PvP in an arena after a countdown finishes.
- Region: An
Arenaregion with thePLAYERS_VS_PLAYERSflag set toDENYby default. - Event: A function that runs at the start of the game.
- Actions:
- A
Waitaction for 10 seconds. Change Flag:- Region:
Arena - Flag:
PLAYERS_VS_PLAYERS - Value:
ALLOW
- Region:
Send Title: "FIGHT!"
- A