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!


    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.

Question: Do {list::*} preserve the order of entries.

Discussion in 'Skript' started by SpectralMagic, Dec 9, 2017.

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

    SpectralMagic New Member

    Oct 31, 2017
    Likes Received:
    What my program is supposed to do:
    When a player wants to join a mini-game and the server is full, queue them to join next if a slot goes empty.

    So the question is, Do list variables preserve the order data was put into it?
    So if I was to add 2 players to the queue(list variable) would the player who tried entering first be able to join first?

    array(1) = johnyapplesauce
    array(2) = peterpiperpickle


    I've searched the forums and other websites for answers to the question
    I'm not asking for a skript, dont spoon feed me.
  2. WiebeHero

    WiebeHero Active Member

    Aug 23, 2017
    Likes Received:
    So this is what you can do basicly you have 1 list variable of someone joins that world you add them to that list variable for example 'add 1 to {Boo::*}' and when the player leaves that world set the list variable to one. But if you want tha variable to have a limit you can do that with an if {Boo} is more than 16 then you add them to another queue (List variable) This might be a bad example if you have anymore questions ask em here.
Thread Status:
Not open for further replies.

Share This Page