#------------------------------------------------------------------------- # Parkour - Version 1.5 # By: MrDerps "aka Buffalimp" # # WARNING: Please do not edit anything unless you # know what you are doing! #------------------------------------------------------------------------- options: VersionID: 1.5 on join: wait 3 ticks if player is op: if text from "http://pastebin.com/raw/va9hMspx" is not "{@VersionID}": message "&8[&6Parkour&8]&b A new update/version was found!" wait a tick message "&8[&6Parkour&8]&bDownload from here: &ehttps://www.spigotmc.org/resources/skript-parkour.34033/" stop on right click on sign: if {parkour::sign} is false: if line 2 of block is "Start": teleport player to {spawn::parkour} wait 1 seconds message "&8[&6Parkour&8] &cYou already did the Parkour!" else if line 2 of block is "Start": send player title "&6You Joined the Parkour!" with subtitle "Good luck!" set {parkour::%player%} to true clear player's inventory message "&8[&6Parkour&8] &7You just began the Parkour!" set slot 4 of player's inventory to barrier named "&c&lQuit Parkour" with lore "&7Teleport to spawn.||||" set slot 8 of player's inventory to slime named "&a&lCheckpoint" with lore "&7Teleport to checkpoint.||||" on rightclick holding barrier: teleport player to {spawn::parkour} message "&8[&6Parkour&8] &7You just quit the Parkour!" clear player's inventory set {parkour::sign} to true on place of barrier: cancel event on right click on sign: if {parkour::%player%} is false: if line 2 of block is "Finish": message "&8[&6Parkour&8] &cYou already claimed your prize!" teleport player to {spawn::parkour} clear player's inventory cancel event else if line 2 of block is "Finish": clear player's inventory teleport player to {spawn::parkour} wait 1 seconds give player 1 cookie named "&f&lWinning Cookie!!" message "&8[&6Parkour&8] &7Congrats! You finished the Parkour!" send player title "&6Parkour" with subtitle "Congrats you won: &6Cookie!" set {parkour::%player%} to false set {parkour::sign} to false command /parkour [] []: permission: parkour.staff permission message: &8[&6Parkour&8] &cYou don't have permission for this! Try &7/join&7. trigger: if arg 1 is not set: message "&7&m-----------------------------------------------------" message "&e&oParkour &7- (By: MrDerps)" message "&f " message "&b/Parkour setup &7(Learn how to setup Parkour)" message "&b/Parkour reset [player] &7(Resets a player's parkour stats)" message "&b/Parkour reload &7(Reload the Parkour config/file)" message "&7&m-----------------------------------------------------" else if arg 1 is "setup": show 1000 "mob spawner flames" particles at location of player for player offset by 2, 2 and 2 message "&7&m-----------------------------------------------------" message "&f &f&oParkour Setup Wizard..." message " &7Welcome to the Parkour Setup Wizard! First step is to go to the spawn of your world and set the command &f&o/Parkour setspawn&7. Then go to where you want the Parkour start to be, and do &f&o/parkour setjoin&7 move forward one block then place a sign with the 2nd line saying &fStart&7 then go to the end of your Parkour and place a sign where the player will click to end the Parkour and to claim there prize, set the 2nd line to say &fFinish&7. To set checkpoints place a cyan carpet in the spot where you want it to be. After that you are done :)" message "&7&m-----------------------------------------------------" else if arg 1 is "reset": if player arg is set: set {parkour::%player%} to true set {parkour::sign} to true message "&8[&6Parkour&8] &7You just reset stats for &6%player arg%&7." else if arg 1 is "setspawn": set {spawn::parkour} to location of player message "&8[&6Parkour&8] &7You set the spawn for the Parkour." else if arg 1 is "setjoin": set {parkour::join} to location of player message "&8[&6Parkour&8] &7You set the Join location for the Parkour." else if arg 1 is "reload": make player execute command "/sk reload all" on place of cyan carpet: message "&8[&6Parkour&8] &7You just set a checkpoint spot!" on walk on cyan carpet: set {checkpoint::carpet} to true set {checkpoint::%player%::check} to location of player message "&8[&6Parkour&8] &7Your checkpoint was set!" on rightclick holding slime: if {checkpoint::carpet} is true: teleport player to {checkpoint::%player%::check} message "&8[&6Parkour&8] &7Teleported to Checkpoint!" else: message "&8[&6Parkour&8]&c You do not have a set checkpoint yet!" on command "/join": cancel event message "&8[&6Parkour&8]&7 You just joined the Parkour!" teleport player to {parkour::join} every second: loop all players: if loop-player's flight mode is true: if {parkour::%loop-player%} is true: message "&8[&6Parkour&8]&c Parkour failed! You can't fly during the Parkour!" to loop-player teleport loop-player to {parkour::join} set loop-player's flight mode to false on quit: delete {checkpoint::carpet} delete {parkour::%player%} delete {checkpoint::%player%::check} delete {parkour::sign}