#=====================================================================# # Parkour - Version 1.9 # By: MrDerps "aka Buffalimp" # # WARNING: Please do not edit anything unless you know what you are doing! # If you need help with this please contact me (Private message me) on spigot. # If you like this script please leave a review, it means a lot to me. Thanks! #=====================================================================# # Don't change or edit this! options: VersionID: 1.9 #Don't change this! # You may edit these messages under here! But do not get rid of anything behind the colons: Only edit whats in front of it! Prefix: &8[&6Parkour&8] StartParkour: &7You just began the Parkour. Timer Started! QuitParkour: &7You just quit the Parkour! AlreadyDidParkour: &cYou already did the Parkour! AlreadyClaimedPrize: &cYou already claimed your prize! JoinParkourFirst: &cJoin the Parkour first! Try &7/join&c. Title: &6You Joined the Parkour! Subtitle: Good luck! TitleWin: &6Parkour SubtitleWin: Congrats you won: &6Cookie! NoPerms: &cYou don't have permission for this! Try &7/join&7. ResetStats: &7You just reset stats for &6%player arg%&7. ParkourSpawn: &7You set the spawn for the Parkour. JoinLocation: &7You set the Join location for the Parkour. SetCheckpoint: &7You just set a checkpoint spot! PlayerCheckpointSet: &7Your checkpoint was set! JoinParkourToSetCheckpoint: &cPlease join the parkour to set your checkpoint! TeleportedToCheckpoint: &7Teleported to Checkpoint! CheckpointNotSet: &cYou do not have a set checkpoint yet! CommandToTeleportToStart: &7Teleported to start of Parkour! ParkourFailed: &cParkour failed! You can't fly during the Parkour! OpenStats: &7Opening stats menu... #=======================================# # Under here is all the script code! DO NOT touch # unless you know what you are doing! #=======================================# on right click on sign: if {parkour::sign} is false: if line 2 of block is "Start": teleport player to {spawn::parkour} play "BLOCK_ANVIL_LAND" to player set action bar of player to "&c&lOoops, sorry!" message "{@Prefix} {@AlreadyDidParkour}" else if line 2 of block is "Start": set {sign::check} to true set {parkour::%player%} to true set {timer::%player%} to true set {parkourcheck::%player%::carpet} to true message "{@Prefix} {@StartParkour}" send player title "{@Title}" with subtitle "{@Subtitle}" play "ui_button_click" to player set action bar of player to "&b&lYou joined the Parkour!" clear player's inventory wait 2 seconds 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.||||" set slot 0 of player's inventory to book named "&b&lStats" with lore "&7View your stats.||||" while {timer::%player%} is true: add 1 to {seconds::timer} wait 1 second if {seconds::timer} is 60: set {seconds::timer} to 0 add 1 to {minutes::timer} if {minutes::timer} is 60: add 1 to {hours::timer} on rightclick holding barrier: teleport player to {spawn::parkour} set {parkourcheck::%player%::gpp} to false message "{@Prefix} {@QuitParkour}" play "BLOCK_ANVIL_LAND" to player set {sign::check} to false clear player's inventory set {parkour::sign} to true set {checkpoint::carpet} to false set {timer::%player%} to false delete {seconds::timer} delete {minutes::timer} delete {hours::timer} on place of barrier: cancel event on right click on sign: if {parkour::%player%} is false: if line 2 of block is "Finish": message "{@Prefix} {@AlreadyClaimedPrize}" teleport player to {spawn::parkour} set action bar of player to "&c&lYou already did this silly!" play "BLOCK_ANVIL_LAND" to player clear player's inventory cancel event else if line 2 of block is "Finish": if {sign::check} is false: message "{@Prefix} {@JoinParkourFirst}" teleport player to {spawn::parkour} set action bar of player to "&c&lOoops! Try /join" play "BLOCK_ANVIL_LAND" to player clear player's inventory cancel event stop else: clear player's inventory teleport player to {spawn::parkour} wait 1 seconds set action bar of player to "&b&lCongrats!" play "entity_firework_large_blast" to player play "entity_firework_twinkle" to player play "block_note_pling" to player send player title "{@TitleWin}" with subtitle "{@SubtitleWin}" give player 1 cookie named "&f&lWinning Cookie!!" set {parkour::%player%} to false set {parkour::sign} to false set {parkourcheck::%player%::carpet} to false wait 1 tick add 1 to {completed::%player%} message "&7&m--------------------&7[&b&lParkour &r&fTime&7]&7&m-------------------" if {seconds::timer} is set: message "&b%{seconds::timer}%&f Second(s)" if {minutes::timer} is set: message "&b%{minutes::timer}%&f Minute(s)" if {hours::timer} is set: message "&b%{hours::timer}%&f Hour(s)" message "&7&m-----------------------------------------------------" command /parkour [] []: permission: parkour.staff permission message: {@Prefix} {@NoPerms} 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 Gold Pressure Plate 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 delete {seconds::timer} delete {minutes::timer} delete {hours::timer} message "{@Prefix} {@ResetStats}" else if arg 1 is "setspawn": set {spawn::parkour} to location of player message "{@Prefix} {@ParkourSpawn}" else if arg 1 is "setjoin": set {parkour::join} to location of player message "{@Prefix} {@JoinLocation}" else if arg 1 is "reload": make player execute command "/sk reload all" on place of cyan carpet: message "{@Prefix} {@SetCheckpoint}" set action bar of player to "&b&lCheckpoint set!" on walk on cyan carpet: if {parkourcheck::%player%::carpet} is true: set {checkpoint::carpet} to true set {checkpoint::%player%::check} to location of player message "{@Prefix} {@PlayerCheckpointSet}" set action bar of player to "&b&lCheckpoint set!" else: message "{@Prefix} {@JoinParkourToSetCheckpoint}" set action bar of player to "&c&lOoops! Try /join" on rightclick holding slime: if {checkpoint::carpet} is true: teleport player to {checkpoint::%player%::check} play "entity_endermen_teleport" to player set action bar of player to "&a&lTeleporting... Vwomp" message "{@Prefix} {@TeleportedToCheckpoint}" else: message "{@Prefix} {@CheckpointNotSet}" set action bar of player to "&c&lOoops sorry!" on command "/join": cancel event message "{@Prefix} {@CommandToTeleportToStart}" teleport player to {parkour::join} set action bar of player to "&a&lTeleporting... Vwomp" play "ui_button_click" to player on command "/stats": cancel event play "ui_button_click" to player set action bar of player to "&a&lViewing Stats!" message "{@Prefix} {@OpenStats}" open chest with 3 rows named "&8&lParkour Stats" to player wait a tick set slot 11 of player's current inventory to paper named "&6Recent time" with lore "&cComing soon!||||" set slot 13 of player's current inventory to book named "&6Best time" with lore "&cComing Soon!||||" set slot 15 of player's current inventory to book and quill named "&6Times completed" with lore "&7%{completed::%player%}%||||" on rightclick holding book: make player execute command "/stats" on inventory click: if inventory name of player's current inventory is "&8&lParkour Stats": if clicked slot is 11: cancel event if clicked slot is 13: cancel event if clicked slot is 15: cancel event every 5 seconds: loop all players: if loop-player's flight mode is true: if {parkour::%loop-player%} is true: message "{@Prefix} {@ParkourFailed}" to loop-player teleport loop-player to {parkour::join} set loop-player's flight mode to false set {timer::%loop-player%} to false set {sign::check} to false delete {seconds::timer} delete {minutes::timer} delete {hours::timer} clear loop-player's inventory on join: set {parkourcheck::%player%::carpet} to false set {sign::check} to false on join: if {completed::%player%} is not set: set {completed::%player%} to 0 on join: wait 3 ticks if player is op: if text from "http://pastebin.com/raw/va9hMspx" is not "{@VersionID}": play "block_note_pling" to player message "&7&m-------------------&7[&b&lParkour &r&fUpdate&7]&7&m------------------" message "&r " message "&r &cA new update/version was found!" message "&r &cDownload from here:" message "&r " message " &ehttps://www.spigotmc.org/resources/skript-parkour.34033/" message "&7&m-----------------------------------------------------" stop on quit: delete {parkourcheck::%player%::carpet} delete {checkpoint::carpet} delete {parkour::%player%} delete {checkpoint::%player%::check} delete {parkour::sign} delete {timer::%player%} #=======================================# # Terms: Do not edit this skript/script # and give it out or sell it as if it were your own! #=======================================#