Paste #47133: Untitled Paste

Date: 2018/04/05 11:36:44 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


else if <context.args.get[1]||false> == skins {
      - if !<server.has_file[../dregora/skins/<player.location.world.name>_skins.yml]> {
          - filecopy 'origin:dregora/skins.yml' 'destination:../dregora/skins/<player.location.world.name>_skins.yml'
          - announce "<player.location.world.name>_skins successfully generated"
          }
      - foreach <server.list_files[../dregora/skins]> {
        - define 1 <def[value].replace[.yml]>
        - yaml 'load:../dregora/skins/<def[1]>.yml' 'id:<def[1]>'
        - narrate "<def[1]> successfully loaded."
        }
      }