Jump to content

Advanced /Flyspeed Skript


Recommended Posts

Since this has helped me out so much in the past, I thought I'd give back, essentials can break some skript addons, and doesn't have much more than 1-10, so I made a skript that changes that, this skript allows you to go 10x slower than a snail! anyways its just a fun thing, change the option name to match your server, or remove it if you don't want it, here's the skript, if there's any problems comment below and ill fix it as best I can!

 

 

options:
    name: Your Server Name Here!
    
command /fly [<player>]:
    permission: op
    trigger:
        if arg-1 is set:
            if arg-1's flight mode is true:
                set arg-1's flight mode to false
                send "&c&m-----------------------------------------------------"
                send "&c{@name}: You &4Disabled&c %arg-1%'s Flight Mode!"
                send "&c&m-----------------------------------------------------"
                send "&c&m-----------------------------------------------------" to arg-1
                send "&c{@name}: Your Flight Mode Has Been &4Disabled&c By %player%!" to arg-1
                send "&c&m-----------------------------------------------------" to arg-1
                stop
            set arg-1's flight mode to true
            send "&c&m-----------------------------------------------------"
            send "&c{@name}: You &aEnabled&c %arg-1%'s Flight Mode!"
            send "&c&m-----------------------------------------------------"
            send "&c&m-----------------------------------------------------" to arg-1
            send "&c{@name}: Your Flight Mode Has Been &aEnabled&c By %player%!" to arg-1
            send "&c&m-----------------------------------------------------" to arg-1
        else:
            if player's flight mode is true:
                set player's flight mode to false
                send "&c&m-----------------------------"
                send "&c{@name}: Flight Mode &4Disabled&c!"
                send "&c&m-----------------------------"
                stop
            set player's flight mode to true
            send "&c&m-----------------------------"
            send "&c{@name}: Flight Mode &aEnabled&c!"
            send "&c&m-----------------------------"

command /flyspeed [<player>] [<number>]:
    permission: op
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-2 is less than 0.01:
                    send "&c&m-----------------------------------------------------"
                    send "&c{@name}: &4Error"
                    send "&c{@name}: &4A Number Below 0.01 Is Not A Valid Number"
                    send "&c{@name}: &4Please Use The Command Correctly!"
                    send "&c&m-----------------------------------------------------"
                    send "&a{@name}: /flyspeed 0.01-10"
                    send "&c&m-----------------------------------------------------"
                    #Arg-2 0
                    stop
                if arg-2 is greater than or equal to 11:
                    send "&c&m-----------------------------------------------------"
                    send "&c{@name}: &4Error"
                    send "&c{@name}: &4A Number Above 10 Is Not A Valid Number"
                    send "&c{@name}: &4Please Use The Command Correctly!"
                    send "&c&m-----------------------------------------------------"
                    send "&a{@name}: /flyspeed {player} 0.01-10"
                    send "&c&m-----------------------------------------------------"
                    #Arg-2 10
                    stop
                set the arg-1's fly speed to arg-2 * 0.1
                send "&c&m-----------------------------------------------------"
                send "&c{@name}: %arg-1%'s Flyspeed Set To &a%arg-2%&c!"
                send "&c&m-----------------------------------------------------"
                #arg-1
                send "&c&m-----------------------------------------------------" to arg-1
                send "&c{@name}: %player% Has Set Your Flyspeed To &a%arg-2%&c!" to arg-1
                send "&c&m-----------------------------------------------------" to arg-1
            else:
                send "&c&m-----------------------------------------------------"
                send "&c{@name}: &4Error"
                send "&c{@name}: &4You Did Not Define What Fly Speed You Wanted"
                send "&c{@name}: &4Please Use The Command Correctly!"
                send "&c&m-----------------------------------------------------"
                send "&a{@name}: /flyspeed {player} 0.01-10"
                send "&c&m-----------------------------------------------------"
        else:
            if arg-2 is set:
                if arg-2 is less than 0.01:
                    send "&c&m-----------------------------------------------------"
                    send "&c{@name}: &4Error"
                    send "&c{@name}: &4A Number Below 0.01 Is Not A Valid Number"
                    send "&c{@name}: &4Please Use The Command Correctly!"
                    send "&c&m-----------------------------------------------------"
                    send "&a{@name}: /flyspeed 0.01-10"
                    send "&c&m-----------------------------------------------------"
                    #Arg-2 0
                    stop
                if arg-2 is greater than or equal to 11:
                    send "&c&m-----------------------------------------------------"
                    send "&c{@name}: &4Error"
                    send "&c{@name}: &4A Number Above 10 Is Not A Valid Number"
                    send "&c{@name}: &4Please Use The Command Correctly!"
                    send "&c&m-----------------------------------------------------"
                    send "&a{@name}: /flyspeed 0.01-10"
                    send "&c&m-----------------------------------------------------"
                    #Arg-2 10
                    stop
                set the player's fly speed to arg-2 * 0.1
                send "&c&m-----------------------------------------------------"
                send "&c{@name}: Flyspeed Set To &a%arg-2%&c!"
                send "&c&m-----------------------------------------------------"
            else:
                send "&c&m-----------------------------------------------------"
                send "&c{@name}: &4Error"
                send "&c{@name}: &4You Did Not Define What Fly Speed You Wanted"
                send "&c{@name}: &4Please Use The Command Correctly!"
                send "&c&m-----------------------------------------------------"
                send "&a{@name}: /flyspeed 0.01-10"
                send "&c&m-----------------------------------------------------"

Just a skripter who likes to have fun

I also think I'm pretty good at it

PS my discord is Enchanted#3933 incase idk anything?

Link to comment
Share on other sites

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...