Date: 2015/11/02 07:44:36 UTC-08:00
Type: Denizen Script
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."