minigame queue system request

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

ICE Trixx

Member
Mar 27, 2022
2
0
1
18
Category:

Suggested name:

Spigot/Skript Version:

What I want:
how can i make a queue system for my minigame
in it i want to make a command in which i join on queue and leave queue if i type command again while im in queue if another player joins the queue first player (me) teleport to {tb.1} and other player joins {tb.2}
if you explain me with a example i will greatly appreciate your work!!


Ideas for commands: /queue /leavequeue

Ideas for permissions: none

When I'd like it by: tomorrow or when ever

[doublepost=1648385172,1648384782][/doublepost]i have this so far



I HAVE THIS SO FAR DONT KNOW IF IT WILL BE USES FULL
----------------------------------------------------------------------------------------

command /queue:
trigger:
if {Queue::*} does not contain player:
add player to {Queue::*}
send "&aQueued!" to player
else:
remove player from {Queue::*}
send "&aYou've been removed from the queue"

command /list:
permission: op
permission message: &cNO perms for that!
trigger:
send "&cPlayers in queue : &r%{Queue::*}%"