Solved Help with the list variable (Urgent)

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

GamingHard

Member
Oct 5, 2019
17
0
0
23
Code:
on join:
    add player to {players::*}

on disconnect:
    remove player from {players::*}

command /list:
    trigger:
        message "%{players::*}%"

Now what it normally messages you is: player1, player2, player3, player4 and player5

I want it like this:
-player1
-player2
-player3
-player4
-player5

Is there any possible way for me to do this ?
 
yeah, loop the list and send the value from the list.
that list is redundant though, you can just loop all online players, ex:
code_language.skript:
command /list:
    trigger:
        loop all players:
            send "-%loop-value%"
 
yeah, loop the list and send the value from the list.
that list is redundant though, you can just loop all online players, ex:
code_language.skript:
command /list:
    trigger:
        loop all players:
            send "-%loop-value%"

Thanks, but is there any possible way to do it with elements in a variable ?
 
Status
Not open for further replies.