iOfficialgod Posted June 22, 2020 Share Posted June 22, 2020 ello ladies, Long story short, I am making a little pvp arena, and i've tried doing a little queue skript and it hasn't worked out so I came here! All it is that I want done, is an "on right click on entity" event, and so it adds you to a queue, if there's two or more ppl in the queue, it countsdown and teleports the first two ppl who joined the queue into just a variable like "{pvparena}" or something like that, and they pvp, once its over just teleports then to another variable like "{pvparena.over}" or something. - Excactly the same as the Mineplex Gladiators thing. Will be much appreciated if someone could help out, and thanks! Link to comment Share on other sites More sharing options...
PrecedingMC Posted June 23, 2020 Share Posted June 23, 2020 Like this. (I don't do 1.15 skript so this may not work, but it should): command /queueme [<text>]: trigger: if {queue::*} contains player: remove player from {queue::*} message "&aYou are no longer in the queue." else: add player to {queue::*} message "&aYou are now in the queue." command /chooseplayers [<text>]: trigger: if size of {queue::*} < 2: message "&cNot enough players!" else: set {_p1} to {queue::1} set {_p2} to {queue::2} remove {_p1} from {queue::*} remove {_p2} from {queue::*} message "&aYou are chosen! &e(##1)" to {_p1} message "&aYou are chosen! &e(##2)" to {_p2} Preceding Java Developer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now