Solved Loop folder?

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CormanYT

Active Member
Jan 6, 2018
122
5
18
So I'm trying to loop a folder in Skript with this code
code_language.skript:
command /scripts:
    trigger:
        clear {iBasics.scripts::*}
        loop folder "Skript/scripts":
            add loop-value to {iBasics.scripts::*}
        message "&6Scripts:&c %{iBasics.scripts::*}%"
It says it doesn't understand that loop. If it requires an addon, that would be ok with me. Please let me know, thanks!
 
May be
code_language.skript:
command /scripts:
    trigger:
        clear {iBasics.scripts::*}
        Loop directory "plugins\Script\script"'s files:
            add loop-value to {iBasics.scripts::*}
        message "&6Scripts:&c %{iBasics.scripts::*}%"
you need skUtilities
 
  • Like
Reactions: jaylawl
Status
Not open for further replies.