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.

Illegal char <<> at index 50: [PRIVATE PATH]

Discussion in 'Skript' started by mccrafter1212, Jul 22, 2017.

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

    mccrafter1212 Member

    Joined:
    Jul 16, 2017
    Messages:
    11
    Likes Received:
    0
    I'm currently working on map reset code. After a minigame stops (whether a player leaves, someone wins, etc.) this code should run:

    Code (Skript):
    1.  
    2. # Map Reset Code
    3. execute console command "mv delete %{game.name}%"
    4. execute console command "mvconfirm"
    5.        
    6. create dir "%{game.name}%"
    7.        
    8. set {_worldData::*} to directory "update\maps"'s files
    9. loop {_worldData::*}:
    10.     if loop-value is {game.name}:
    11.         set {worldChosen} to {_worldData::1}
    12.         broadcast "%{worldChosen}%"
    13.        
    14. copy dir "%{worldChosen}%" to "/"
    15.        
    16. execute console command "mv import %{game.name}% normal"
    17. execute console command "mv load %{game.name}%"
    18.        
    19. set {game.name} to "None"
    20. set {game.started} to "false"
    21.        
    22. broadcast "{@prefix} Resetting current game... Teleporting all players to &6Lobby-1&r!"
    Now, the code never even makes it to the 'broadcast "%{worldChosen}%"' line of code. I get the error:

    Ilegal char <<> at index 50: [PRIVATE PATH]\<none>

    The reason I put [PRIVATE PATH] is because first off, the first part of the path is my personal computer's path. Second off, I did include the end of the path \<none> because that is important as it's trying to get a variable that doesn't exist inside of my server folder.

    EDIT: Also, {game.name} is a variable that is set to Spleef-1

    Please help, thank you! :emoji_grinning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...