Solved Loop players in world *argument*

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

  • 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.

TubeVillager

Member
Jan 29, 2019
28
1
0
23
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?
 
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?
Can you send the full command and put it in code
 
Here is the code: *deleted link*
[doublepost=1560790702,1560790433][/doublepost]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:
 
Status
Not open for further replies.