command /spawn:
trigger:
if player is in "%player%_bridging":
make player execute command "/mvtp ul_Spawn1"
teleport player to {spawn}
send "&5[MCPractice] &aYou have been teleported to spawn"
execute console command "/clear %player%"
wait 1 second
execute console command "/mvdelete %player%""
wait 1 tick
execute console command "/mvconfirm"
else:
make player execute command "/mvtp ul_Spawn1"
teleport player to {spawn}
send "&5[MCPractice] &aYou have been teleported to spawn"
execute console command "/clear %player%"
I want to make it so if players use /spawn and they r in a world with the name "(their ign)_bridging" they get tped back to spawn and the world gets deleted, and otherwise the just get tped to spawn. ("{Spawn}" is set correctly but i didnt include that code)