Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /speed [<player>] [<text>] [<number>]:
- Executable by: players
- Permission: skript.fly.speed
- permission message: &cYou don't have permission.
- trigger:
- if arg 1 is not set:
- execute player command "/playsound minecraft:entity.cat.ambient player %player% ~ ~ ~ 100 0"
- send "&8&m----------------------------"
- send "&a&oPlease use &8(&aplayer) &7fly&8/&7walk &8(&enumber&8)"
- send "&7Available speed for fly and walk&8:"
- send "&e1/2 and 3 4 5"
- send "&8&m----------------------------"
- else:
- if arg 2 is "walk":
- if arg 3 is set:
- execute player command "/playsound minecraft:ui.button.click player %player% ~ ~ ~ 100 1"
- if arg 3 is not set:
- send "&a&oPlease use&8: &7/speed walk (number)"
- if arg 3 is 1:
- set the player's walk speed to 0.2
- message "&7Walking set back to normal."
- if arg 3 is 2:
- set the player's walk speed to 2
- message "&7Walking speed set to 2."
- if arg 3 is 3:
- set the player's walk speed to 3
- message "&7Walking speed set to 3."
- if arg 3 is 4:
- set the player's walk speed to 4
- message "&7Walking speed set to 4."
- if arg 3 is 5:
- set the player's walk speed to 5
- message "&7Walking speed set to 5."
- if arg 2 is "fly":
- if arg 3 is not set:
- send "&a&oPlease use&8: &7/speed fly (number)"
- if arg 3 is 1:
- set the player's fly speed to 0.1
- message "&7Fly speed set back to normal."
- if arg 3 is 2:
- set the player's fly speed to 2
- message "&7Fly speed set to 2"
- if arg 3 is 3:
- set the player's fly speed to 3
- message "&7Fly speed set to 3"
- if arg 3 is 4:
- set the player's fly speed to 4
- message "&7Fly speed set to 4"
- if arg 3 is 5:
- set the player's fly speed to 5
- message "&7Fly speed set to 5"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement