Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setspawn:
- permission: spawn.setspawn
- permission message: &cNon hai il permesso!
- description: Imposta il punto di spawn nella tua posizione.
- trigger:
- message "&6Fatto!"
- set {spawn} to location of player
- command /spawn:
- trigger:
- teleport player to {spawn}
- message "&aSei tornato all'inizio!"
- on chat:
- set {_rank} to placeholder "vault_rankprefix"
- set the chat format to "%rank% &f%player% &8> &f%message%"
- on join:
- teleport player to {spawn}
- on stepping on a pressure plate:
- if event-block is an iron pressure plate:
- if {delay::%uuid of player%} isn't set:
- send "&aCronometro iniziato! &fVai veloce ma non cadere!" to player
- send player title "&a&lPARTITA INIZIATA!" with subtitle "&7Occhio a non cadere!" for 3 seconds
- broadcast {delay}
- set {parkour.timertoggle::%uuid of player%} to true
- set {parkour.time.start::%uuid of player%} to now
- while block at location of player is an iron pressure plate:
- set {delay::%uuid of player%} to true
- wait 5 seconds
- delete {delay::%uuid of player%}
- if event-block is a gold pressure plate:
- if {delay::%uuid of player%} isn't set:
- if {parkour.timertoggle::%uuid of player%} is true:
- set {parkour.timertoggle::%uuid of player%} to false
- set {parkour.time.final::%uuid of player%} to difference between now and {parkour.time.start::%uuid of player%}
- if {parkour.time.best::%uuid of player%} is set:
- if {parkour.time.final::%uuid of player%} < {parkour.time.best::%uuid of player%}:
- set {parkour.time.bestdiff::%uuid of player%} to difference between {parkour.time.best::%uuid of player%} and {parkour.time.final::%uuid of player%}
- send "&a&lComplimenti&a! Hai battuto il tuo punteggio di &6&u%{parkour.time.best::%uuid of player%}%&a di &6&u%{parkour.time.bestdiff::%uuid of player%}%&a secondi!" to player
- send "&a&bOra il tuo miglior punteggio è &u%{parkour.time.final::%uuid of player%}%" to player
- set {parkour.time.best::%uuid of player%} to {parkour.time.final::%uuid of player%}
- else:
- send "&7&bHai finito il gioco in &e&b&u%{parkour.time.final::%uuid of player%}% secondi&7&b, non hai superato il tuo tempo di &e&b&u%{parkour.time.best::%uuid of player%}%" to player
- else:
- set {parkour.time.best::%uuid of player%} to {parkour.time.final::%uuid of player%}
- send "&a&bComplimenti! Il tuo nuovo tempo migliore è di &6&b&u%{parkour.time.best::%uuid of player%}%&a!" to player
- send "&a&bComplimenti! Hai finito il gioco in &e&b&u%{parkour.time.final::%uuid of player%}%&a!" to player
- else:
- send "&6Questa è la fine del parkour!" to player
- while block at location of player is a gold pressure plate:
- set {delay::%uuid of player%} to true
- wait 5 seconds
- delete {delay::%uuid of player%}
- on placeholderapi placeholder request for the prefix "gettingup":
- if the identifier is "time":
- set {parkour.seconds} to {parkour.time.final::%uuid of player%}
- set {parkour.minutes} to {parkour.seconds}/60
- set {remaining_seconds} to mod({parkour.seconds}, 60)
- set the result to "{parkour.minutes}:{remaining_seconds}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement