Paste #38110: Untitled Paste

Date: 2016/12/03 09:41:51 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


- if <def[selectionsize]> >= 50
                {
                - foreach <def[selection]>
                    {
                    - define chunkspot <context.location.chunk.x>,<context.location.chunk.z>,<context.location.world>
                    - if !<server.has_file[database/NPMchunks/<def[chunkspot]>.yml]>
                        {
                        - define chunkspot <context.location.chunk.x>,<context.location.chunk.z>,<context.location.world>
                        - yaml create id:<def[chunkspot]>
                        - yaml id:<def[chunkspot]> set uuid:<player.uuid>
                        - yaml "savefile:database/NPMchunks/<def[chunkspot]>.yml" id:<def[chunkspot]>
                        - narrate "<&5><&lt>NoPlotsMe<&gt>This chunk is now in PUBLIC domain."
                        }
                   }
                }