I copied this from another post of mine. Could you try to fix it?
So I'm trying to start a hardcore server, but every Minecraft day at 5:00 (sunrise), you are switched out of spectator mode and set to survival at the world spawn. I know little to nothing about skript, so this is probably very wrong lol.
Heres the skript:
at 5:00:
if player's gamemode is spectator
tp player to 0 75 0
set gamemode of players to survival
broadcast "§4The dead have been revived!"
broadcast "§1Discord here --> §2https://discord.gg/3yHzfXq"
The "set gamemode of players to survival" should set everyone's gamemode to survival, unless they have the permission "admin"
The "tp player to 0 75 0" should only teleport the players in spectator mode to the position 0 75 0
If someone could help me fix this mess, that would be great!
Thanks