Date: 2014/09/02 17:16:44 UTC-07:00
Type: Denizen Script
'pathing':
type: world
events:
on server start:
- if <server.has_file[pathtest.yml]> {
- announce "<red><green>Loading Pathing Config File"
- yaml load:pathtest.yml id:mypathyml
}
else {
- announce "<red><green>Creating Pathing Config File"
- yaml create id:dmypathyml
- yaml savefile:pathtest.yml id:mypathyml
}
on pathadd command:
- announce ' Path command used '
- yaml set locations:->:<player.location.simple> id:mypathyml
- yaml savefile:pathtest.yml id:mypathyml
- determine fulfilled