- 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


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2017/06/06 21:01:05 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2100
lc_server_start_shutdown:
  type: world
  events:
    on server start:
    - flag server meta.start
    - if !<server.has_file[/loot/lc_saves.yml]> {
      - yaml create id:lt
      }
      else {
      - yaml "load:/loot/lc_saves.yml" id:lt
      }
    on shutdown:
    - yaml "savefile:/loot/lc_saves.yml" id:lt
    - foreach <server.flag[lt_savecycle].as_list||li@> {
      - yaml id:lt_<def[value]> set "inv.inv:!"
      - yaml id:lt_<def[value]> set "inv.inv:|:<def[value].inventory.list_contents>"
      - yaml id:lt_<def[value]> set "tp.loc:<def[value].location>"
      - yaml id:lt_<def[value]> "savefile:/loot/playerdata/<def[value]>.yml"
      }
    - flag server lt_savecycle:!



RawRaw



Pastes made: 55651