Hi, I have been spending ages making this Hide And Seek event for my server. The skript has no errors so i have no idea what is wrong.
Can anyone help? The problems are that when you get teleported to the Event area it says it is starting in 10 seconds but actually doesnt start. Here is my Skript.
command /event:
trigger:
open virtual chest inventory with size 1 named "&5Ikeys SMP Event" to player
format gui slot 2 of player with knowledge book named "&3Join the event." to run:
if {Queue::*} does not contain player:
add player to {Queue::*}
close player's inventory
teleport player to location(1602.44, 10.00, -2404.44, world "superflat", 90.99, -0.91)
if size of {Queue::*} is more than 2:
teleport player to location(1602.44, 10.00, -2404.44, world "superflat", 90.99, -0.91)
broadcast "&7The event has been started. &eDo &l/event &eto join within 10 seconds."
close player's inventory
wait 10 seconds
loop all players in {Queue::*}:
if {seeker::*} does not contain player:
set {seeker::*} to a random element out of all players in {Queue::*}
broadcast "&cThe seeker of this game is%{seeker::*}%"
remove {seeker::*} from {Queue::*}
broadcast "&7Starting the event."
teleport {seeker::*} to {seek.spawn}
teleport {Queue::*} to {hide.spawn1}
send title "&c30 seconds to hide.." to {Queue::*} and {seeker::*} for 5 seconds
wait 30 seconds
give stick named "&c&lHunters Baton" with lore "&7Slain the hunters by hitting them with this.." to {seeker::*}
if size of {Queue::*} is less than 1:
make {Queue::*} execute command "/spawn"
broadcast "&7The &cHunter &7has killed every hider."
if size of {Queue::*} is less than 3:
send "&7Currently waiting in the event for someone else to join."
teleport player to location(1602.44, 10.00, -2404.44, world "superflat", 90.99, -0.91)
close player's inventory
if size of {Queue::*} is more than 16:
remove player from {Queue::*}
send "&c&lSorry, &7but the event is full right now."
format gui slot 6 of player with barrier named "&cGo back." to run:
close player's inventory
stop
on death:
if {queue::*} contains victim:
remove victim from {queue::*}
broadcast "&7%victim% has been killed by the &cSeeker"
play sound "entity.firework.rocket.blast"
make {seeker::*} execute command "/particle minecraft:explosion_emitter"
stop
on death:
if {seeker::*} contains victim:
remove victim from {seeker::*}
broadcast "&7The Hunter has been killed by the hiders!!"
make {queue::*} execute command "/spawn"
play sound "entity.firework.rocket.blast"
make {seeker::*} execute command "/particle minecraft:explosion_emitter"
broadcast "&7The &cHiders &7have killed the &cHunter"
make {Queue::*} execute command "/spawn"
stop
command /sethidespawn1:
permission: op
trigger:
set {hide.spawn1} to player
command /inevent:
trigger:
send "&cPlayers in event: &7%{Queue::*}%"
command /leaveevent:
trigger:
send "&7You have left the event."
remove player from {Queue::*}
command /resetevent:
permission: op
trigger:
delete {queue::*}
set {queue1} to 0
send "&7Reseted all players from the event."
command /setspawnseek:
permission: op
trigger:
set {seek.spawn} to player
send "&cSet seekers spawn."
on quit:
remove player from {Queue::*}