Hey i have made a skript where it should do the command to everyone such as tp player ..... and kit give and so on and so on, hoewever it does that but not at the same time. So first it performs the entire skript for player1 and once thats done it does the entire skript for player2. How can i make it that it simply does it for all players at once?
#Looping players issue
1 messages · Page 1 of 1 (latest)
This is my skript:
description: Give the command sender some cake!
cooldown: 10 hours
permission: specialevents.events
cooldown message: You need to wait &l%remaining time% &rto use this command again!
cooldown bypass: cake.nocooldown
trigger:
loop all players:
send actionbar "&eThe event is starting!!" to all players
wait 10 ticks
execute console command "rg flag eventcpvp -w crystalevent2 pvp deny"
send "&e&l&nThe event is starting in&r &a120 seconds" to all players
send title "&e&lEvent starting in 120 seconds" with subtitle "&aJoin up!" to all players
wait 10 seconds
send ""
wait 1 second
send ""
send "&e&l&nThe event is starting in&r &a1 seconds" to all players
send title "&e&l&nEVENT STARTING" with subtitle "&cGet ready.." to all players
execute console command "warp crystalevent2 %loop-players%"
execute console command "minecraft:clear %loop-players%"
wait 10 ticks
execute console command "playerkits:kit give CpvpKit %loop-players% 1"
wait 3 seconds
execute console command "tp %loop-players% -202 72 1842"
wait 3 seconds
send title "&c&lPVP GOING ON" with subtitle "&ein 15 seconds.." to all players
wait 10 seconds
send title "&c&lPVP GOING ON" with subtitle "&ein 5 seconds.." to all players
wait 5 seconds
send title "&c&lPVP IS NOW ON" with subtitle "&agoodluck.." to all players
execute console command "rg flag eventcpvp -w crystalevent2 pvp allow"
You could add the players to a list..
add loop-player to {_list::*}
send title "aiwugrawuy" to {_list::*}
wait 10 seconds
send title...
wait
...```
and what would that be on command?
this code disgusts me
Im not spoon feeding. You have everything you need here
Me too,... Me too.
The jarringly empty lines dont help lol
Move the code outside of the loop then