Jump to content

Anyone knows how to fix this world-delete skript?


TheWasteful64

Recommended Posts

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)

Screenshot_8.png

Edited by TheWasteful64
mistake in title
Link to comment
Share on other sites

  • TheWasteful64 changed the title to Anyone knows how to fix this world-delete skript?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...