Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rm <text>:
- permission: skript.op
- trigger:
- if arg-1 is "on":
- set {current rating} to true
- broadcast "&7&l[&9Favonius&7&l]&e Rate Match on!"
- if arg-1 is "off":
- set {current rating} to false
- broadcast "&7&l[&9Favonius&7&l]&e Rate Match off!"
- command /rmb:
- permission: skript.op
- trigger:
- broadcast "&7&l[&9Favonius&7&l]&e The match received a rating of:&c&l %{match rating}% / %{tmr}%"
- command /rmreset:
- permission: skript.op
- trigger:
- set {current rating} to true
- set {match rating} to 0
- set {tmr} to 0
- loop all players:
- set {rating.%player%} to 0
- set {isDead.%player%} to false
- set {hasRated.%player%} to false
- on death of player:
- {current rating} is true
- set {isDead.%player%} to true
- wait 7 seconds
- message "&7&l[&9Favonius&7&l]&e How would you rate the match? Use /rm1-5. 5 being the best, 1 worst." to the player
- command /rm1:
- usage: rate the match!
- trigger:
- {current rating} is true
- {isDead.%player%} is true
- {hasRated.%player%} is false:
- add 1 to {match rating}
- add 5 to {tmr}
- message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
- wait 0.1 second
- set {hasRated.%player%} to true
- if {isDead.%player%} is false:
- message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
- command /rm2:
- usage: rate the match!
- trigger:
- {current rating} is true
- {isDead.%player%} is true
- {hasRated.%player%} is false:
- add 2 to {match rating}
- add 5 to {tmr}
- message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
- wait 0.1 second
- set {hasRated.%player%} to true
- if {isDead.%player%} is false:
- message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
- command /rm3:
- usage: rate the match!
- trigger:
- {current rating} is true
- {isDead.%player%} is true
- {hasRated.%player%} is false:
- add 3 to {match rating}
- add 5 to {tmr}
- message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
- wait 0.1 second
- set {hasRated.%player%} to true
- if {isDead.%player%} is false:
- message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
- command /rm4:
- usage: rate the match!
- trigger:
- {current rating} is true
- {isDead.%player%} is true
- {hasRated.%player%} is false:
- add 4 to {match rating}
- add 5 to {tmr}
- message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
- wait 0.1 second
- set {hasRated.%player%} to true
- if {isDead.%player%} is false:
- message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
- command /rm5:
- usage: rate the match!
- trigger:
- {current rating} is true
- {isDead.%player%} is true
- {hasRated.%player%} is false:
- add 5 to {match rating}
- add 5 to {tmr}
- message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
- wait 0.1 second
- set {hasRated.%player%} to true
- if {isDead.%player%} is false:
- message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
Advertisement
Add Comment
Please, Sign In to add comment