Paste #31366: another example of causing error

Date: 2016/03/07 22:35:37 UTC-08: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
18
19


on reload scripts:
          # Setting up the Cells
        - if <server.has_file[/scriptdata/Cells/CellsData.yml]> {
          #- yaml create id:Cells
          - yaml "load:/scriptdata/Cells/CellsData.yml" id:Cells
          } else {
          - yaml create id:Cells
          }        
        - if <server.has_file[/scriptdata/Cells/BedsData.yml]> {
          #- yaml create id:Beds
          - yaml "load:/scriptdata/Cells/BedsData.yml" id:Beds
          } else {
          - yaml create id:Beds"
          }             


        on SaveCells command:
        - yaml "savefile:/scriptdata/Cells/CellsData.yml" id:<Cells>
        - yaml "savefile:/scriptdata/Cells/BedsData.yml" id:<Beds>