- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Staff Pick: DAutoSave


By Noiknez
Created: 2016/09/09 17:21:48 UTC-07:00 (7 years and 241 days ago)
Edited: 2016/09/09 17:22:58 UTC-07:00 (7 years and 241 days ago)
Likes: 1

Staff pick as of: 2016/09/11 02:38:44 UTC-07:00 (7 years and 240 days ago)
Denizen Version: Version 0.9.8
Script Version: Script Version 1
Description:

A script that save all the world, denizen and citizen every hours.

To make it save every 30 minutes instead simply uncomment the lines


Download script | View raw script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2000

Autosave:
    type: world
    debug: false
    events:
      on system time hourly:
      - announce "<&8>Saving worlds ..."
      - execute as_server 'denizen save'
      - execute as_server 'citizens save'
      - foreach <server.list_worlds>:
        - adjust <def[value]> save
      - announce "<&8>Worlds saved !"
      #- wait 30m
      #- announce "<&8>Saving worlds ..."
      #- execute as_server 'denizen save'
      #- execute as_server 'citizens save'
      #- foreach <server.list_worlds>:
      #  - adjust <def[value]> save
      #- announce "<&8>Worlds saved !"






View History