Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TimeFlies 1.0 By: Bitlington
- #Time To learn variables WOO!
- #{TimeFlies.World} = The World the time is changing in
- #{TimeFlies.IsGoing} = If set, the scenario is running
- #See you next time
- options:
- n: &7[&aTimeFlies&7]&e #Name
- perms: Set.Your.Own #Ops get all perms
- #Command
- #Base Command
- command /timeflies [<text>] [<world>]:
- trigger:
- #/timeflies
- if arg-1 is not set:
- if player is equal to "PyThOnRrR": #Easter Egg
- message "{@n} Skript: &lBitlington&r &7- &eIdea: &lYou"
- else:
- message "{@n} Skript: &lBitlington&r &7- &eIdea: &lPyThOnRrR"
- message "{@n} Time is Accelerated &l2x"
- message "{@n} For More &7/timeflies help"
- #/timeflies enable
- else if arg-1 is equal to "enable":
- if player has permission "{@perms}":
- if arg-2 is not set:
- message "{@n} &cYou need a world Silly"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- else:
- if {TimeFlies.IsGoing} is not set:
- set {TimeFlies.World} to arg-2
- set {TimeFlies.IsGoing} to true
- loop all players:
- execute console command "/playsound note.harp %loop-player% ~ ~ ~ 1 1 1"
- broadcast "{@n} TimeFlies &aEnabled by &7[&c%command sender%&7] in &a%{TimeFlies.World}%"
- else:
- message "{@n} &cThe Game is already Enabled"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- else:
- message "{@n} &cYou do not have the Correct Perms."
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- #/timeflies disable
- else if arg-1 is equal to "disable":
- if player has permission "{@perms}":
- if {TimeFlies.IsGoing} is true:
- delete {TimeFlies.World}
- delete {TimeFlies.IsGoing}
- loop all players:
- execute console command "/playsound random.break %loop-player% ~ ~ ~ 1 1 1"
- broadcast "{@n} TimeFlies &cDisabled by &7[&c%command sender%&7]"
- else:
- message "{@n} &cThe Game is already Disabled"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- else:
- message "{@n} &cYou do not have the Correct Perms."
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- #/Timeflies toggle
- else if arg-1 is equal to "toggle":
- if player has permission "{@perms}":
- if {TimeFlies.IsGoing} is true:
- make the player execute "/timeflies disable"
- stop
- else:
- make the player execute "/timeflies enable"
- stop
- else:
- message "{@n} &cYou do not have the Correct Perms."
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- #/timeflies help
- else if arg-1 is equal to "help":
- message "{@n} Commands:"
- message "{@n} /timeflies enable <world> &7- Enables Scenario"
- message "{@n} /timeflies disable &7- Disables Scenario"
- message "{@n} /timeflies toggle &7- Toggles Scenario"
- message "{@n} /timeflies &7- learn more about the scenario."
- #/timeflies ajdkskjsdaj
- else:
- message "{@n} &cIncorrect Syntax use &a/timeflies help"
- #Events 'n' Sterf
- #How the time is changed
- every tick:
- {TimeFlies.IsGoing} is true
- execute console command "/time add 1 %{TimeFlies.World}%"
- #Extra Snippet - And Thanks For Reading
- #on damage of player:
- # make the attacker ride the victim
- #Line 100 - HIPE!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement