Paste #22164: Untitled Paste

Date: 2015/11/02 07:44:36 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


dCommander_Main:
  type: world
  debug: true
  events:
    on server start:
      - announce to_console "<&2>dCommander loading!"
      - if <server.has_file["/dCommander_Config.yml"server.has_file["/dCommander_Config.yml"].not> {
        - inject locally initialise_config
        }
      - announce to_console "<&2>dCommander successfully loaded."

  initialise_config:
    - announce to_console "<&c>Generating new dCommander configuration file."
    - yaml create id:dCommander
    - yaml set Colors.Primary:&f id:dCommander
    - yaml set Colors.Secondary:&6 id:dCommander
    - yaml savefile:dCommander_Config.yml id:dCommander
    - announce to_console "<&2>dCommander configuration file generated."