1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Create file?

Discussion in 'Skript' started by SpLayzDK, Nov 7, 2020.

Thread Status:
Not open for further replies.
  1. SpLayzDK

    SpLayzDK Member

    Joined:
    Jun 15, 2019
    Messages:
    14
    Likes Received:
    0
    Is there a way to create a file in a skript?
    If so, i would be happy to hear it.
     
  2. AvantyCZ

    AvantyCZ New Member

    Joined:
    Jul 10, 2017
    Messages:
    7
    Likes Received:
    0
    Hi, try this, but you need Skent addon.

    Code (Text):
    1. on load:
    2.     set {running.%script%} to true
    3.     wait 2 seconds
    4.     if directory "plugins/AvantysBanSystem" is missing:
    5.         create directory "plugins/AvantysBanSystem"  
    6.     if directory "plugins/AvantysBanSystem/bany" is missing:
    7.         create directory "plugins/AvantysBanSystem/bany"
    8.     if directory "plugins/AvantysBanSystem/IPBany" is missing:
    9.         create directory "plugins/AvantysBanSystem/IPBany"
    10.     if directory "plugins/AvantysBanSystem/TempBany" is missing:
    11.         create directory "plugins/AvantysBanSystem/TempBany"
    12.     if directory "plugins/AvantysBanSystem/Mute" is missing:
    13.         create directory "plugins/AvantysBanSystem/Mute"
    14.     if directory "plugins/AvantysBanSystem/Prestupky" is missing:
    15.         create directory "plugins/AvantysBanSystem/Prestupky"
    16.     if directory "plugins/AvantysBanSystem/Reporty" is missing:
    17.         create directory "plugins/AvantysBanSystem/Reporty"
    18.     if directory "plugins/AvantysBanSystem/Users" is missing:
    19.         create directory "plugins/AvantysBanSystem/Users"
    20.     if file "plugins/AvantysBanSystem/test.yml" is missing:
    21.         create file "plugins/AvantysBanSystem/test.yml" with "Hello SkUnity"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...