Paste #51413: qwe

Date: 2019/01/07 19:28:03 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


# ███ [  ] ███
        on player logs in:
            - if <server.has_file[/data/<player.uuid>.yml]>:
                - yaml "load /data/<player.uuid>.yml" id:<player.uuid>
            else:
                - yaml create id:<player.uuid>
        on player quits:
            - yaml "savefile:/data/<player.uuid>.yml" id:<player.uuid>
            - yaml unload id:<player.uuid>
        on shutdown:
            - foreach <server.list_online_players>:
                - yaml "savefile:/data/<def[value].uuid>.yml" id:<def[value].uuid>.yml
        on system time minutely:
            - foreach <server.list_online_players>:
                - yaml "savefile:/data/<def[value].uuid>.yml" id:<def[value].uuid>.yml
        on player breaks grass:
            - yaml id:<player.uuid> set blocks.<context.material>:++