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.

Solved Loop players in world *argument*

Discussion in 'Skript' started by TubeVillager, Jun 17, 2019.

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

    TubeVillager Member

    Joined:
    Jan 29, 2019
    Messages:
    28
    Likes Received:
    1
    loop all players in "%arg 1%":
    loop {@Lines} times:
    broadcast ""
    broadcast "{@Prefix} {@Chat cleared message}"

    I have a command with an argument so I can clear the chat in a specific world.
    However, when I reload the skript it says "%arg 1% is not a world" so my skript doesnt work.
    How would I get this to work?
     
  2. eMpowr

    eMpowr Member

    Joined:
    Jun 13, 2019
    Messages:
    19
    Likes Received:
    0
    Can you send the full command and put it in code
     
  3. TubeVillager

    TubeVillager Member

    Joined:
    Jan 29, 2019
    Messages:
    28
    Likes Received:
    1
    Here is the code: *deleted link*
    --- Double Post Merged, Jun 17, 2019, Original Post Date: Jun 17, 2019 ---
    nevermind i got it working myself

    edit: how i did it was i added "parsed as a world" after the "if player is in %arg 1%"
    so i turned that into "if player is in %arg 1% parsed as a world" :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...