Paste #6395: Untitled Paste

Date: 2014/07/05 17:52:04 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


'VoteNow':
  type: world
  events:  
    on vote command:
    - ^if !<flag.p:VoteCooldown> {
      - run Vote
      }
      else queue clear
    - determine  fulfilled
'Vote':
    type: task
    script:
    - ^flag VoteCooldown duration:2
    - yaml load:myfile.yml id:myfile
    - yaml write:my.key value:myvalue id:myfile 
    - yaml savefile:myfile.yml id:myfile
    - yaml unload id:myfile