Date: 2016/12/03 09:41:51 UTC-08:00
Type: Denizen Script
- 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><<>NoPlotsMe<>>This chunk is now in PUBLIC domain."
}
}
}