Activators Files

Activators stored in *.yml files inside /ReActions/activators/ folder of your server. One file represents a group of activators. Amount of files is unlimited.

File example

BUTTON:  # Activator type
  lottery10: # Activator id 
    world: world  # world, x, y, z - paramers
    x: 124
    y: 65
    z: 665
    flags:  # Flags section 
    - MONEY=10 # Is player has $10
    - CHANCE=10 # Roll dice with 10% chance to win 
    actions: # Actions sections (Player wins!)
    - MONEY_PAY=10 # Take $10 from player
    - MONEY_GIVE=100 # Give $100 to player
    - MESSAGE=&2You won the lottery!!!  
    - BROADCAST=&6%player%&2 wins &6$100 &2lottery!
    - SOUND=type:LEVEL_UP pitch:1.5  # Play sound effect
    - EFFECT=eff:firework loc:world,124.0,80.0,665.0 # Play visual effect
    reactions:
    - MONEY_PAY=10 # Take $10 from player
    - MESSAGE=&4Your bid has failed! Try again.
    - SOUND=NOTE_PIANO  # Play sound effect