#Flight Skript not working properly

1 messages · Page 1 of 1 (latest)

willow flicker
#

Do you wanna send the skript

zealous elbow
#

^

willow flicker
#

@cinder otter

cinder otter
#

?

#

Yeah sure

#
command /fly <player>:
    permission: ultra.essentials.flight
    trigger:
        if arg-1 is set:
            if {flight::%player's uuid%} is set:
                delete {flight::%player's uuid%}
                send "{@ServName} {@SubColor}%arg-1%{@MainColor}'s flight was {@ExtraColor}DISABLED" to player
                send "{@ServName} {@MainColor}Your flight has been toggled {@ExtraColor}DISABLED"
                set arg-1's flight mode to false
                stop
            if {flight::%player's uuid%} isn't set:
                set {flight::%player's uuid%} to true
                send "{@ServName} {@SubColor}%arg-1%{@MainColor}'s flight was {@ExtraColor}ENABLED" to player
                send "{@ServName} {@MainColor}Your flight has been toggled {@ExtraColor}ENABLED" to arg-1
                set arg-1's flight mode to true
                stop
        else:
            if arg-1 isn't set:
                if {flight::%player's uuid%} is set:
                    delete {flight::%player's uuid%}
                    send "{@ServName} {@SubColor}%arg-1%{@MainColor}'s flight was {@ExtraColor}DISABLED" to player
                    set player's flight mode to false
                    stop
                if {flight::%player's uuid%} isn't set:
                    set {flight::%player's uuid%} to true
                    send "{@ServName} {@SubColor}%arg-1%{@MainColor}'s flight was {@ExtraColor}ENABLED" to player
                    set player's flight mode to true
                    stop    
#

here u go

#

@willow flicker

willow flicker
#

You can make the player argument optional by surrounding it in []

cinder otter
#

AH

#

Thank you very much

willow flicker
#

But

cinder otter
#

?

willow flicker
#

I dont think itll do anything

cinder otter
#

Nah it worked

willow flicker
#

Because all of your code relies on that arg

#

Oh

cinder otter
#

artlg?

willow flicker
#

Nvm

cinder otter
#

Typo?

willow flicker
#

You have it at the bottom

cinder otter
#

AH

#

argument

willow flicker
#

Ye