Solved Queue system not functional

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

Rock

Member
Sep 15, 2019
3
0
0
20
Skript Version: Skript 2.3.7 (Latest full release)
Minecraft Version: 1.8-1.12.2

So my queue system for duels isnt functional.

I am doing this:

Add player1 to list
Add player2 to list
Remove player1 from list
Add player3 to list

The list should be in order
1. player2
2. player3

But it is:
1. player3
2. player2

The list respects the original spot the item was in, how can I move that player down once a player leaves?

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I don't know what to try.
 
Skript Version: Skript 2.3.7 (Latest full release)
Minecraft Version: 1.8-1.12.2

So my queue system for duels isnt functional.

I am doing this:

Add player1 to list
Add player2 to list
Remove player1 from list
Add player3 to list

The list should be in order
1. player2
2. player3

But it is:
1. player3
2. player2

The list respects the original spot the item was in, how can I move that player down once a player leaves?

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I don't know what to try.
There is an easy way to fix list indices in Skript: `set {list::*} to {list::*}`
 
  • Like
Reactions: Rock
Status
Not open for further replies.