Solved issue with disabling a command

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Vini

Member
Apr 8, 2023
27
2
3
24
So I want to make a skript where if {lobbyspawn::%player's uuid%} is true you can not execute the command /spawn and it sends an action bar that says "&cYou need to unlock a world first" and if {lobbyspawn::%player's uuid%} is false you can use /spawn, I have tried many ways but it doesn't seem to work, can someone help?
 
Hey, that should be easy, try this:
Code:
command /spawn:
    trigger:
        if {lobbyspawn::%player's uuid%} is not false:
            send action bar "&cYou need to unlock a world first" to player
        else if {lobbyspawn::%player's uuid%} is false:
            teleport player to location at (x, y, z) in world "world"
 
Hey, that should be easy, try this:
Code:
command /spawn:
    trigger:
        if {lobbyspawn::%player's uuid%} is not false:
            send action bar "&cYou need to unlock a world first" to player
        else if {lobbyspawn::%player's uuid%} is false:
            teleport player to location at (x, y, z) in world "world"
I made the same skript. but now I realised that my togglespawn skript was messing with me so I fixed it, it works now. Tank you!