Create folder 1.12.2 Skript

Discussion in 'Skript' started by Stoian, Jan 27, 2020.

  1. How to create folder? When I create it wont work... And what addons I need
    Code (Text):
    on load:
        if folder "plugins/HorizonHQ Generator" doesn't exists:
            create folder "plugins/HorizonHQ Generator"
        if file "plugins/HorizonHQ Generator/Config.yml " doesn't exists:
            create file "plugins/HorizonHQ Generator/Config.yml"
  2. Skent seems to be the best for this kind of stuff right now, but for YAML files, use skript-yaml, it is the best for that and in it you do not need to create any files, it auto-does it for you