Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /koth [<text>] [<text>]:
- permission: essentials.fonda
- trigger:
- if arg 1 is "start":
- if arg 2 is not set:
- send "&8[&cOasiaMc&8] &aLe koth vien de demarrer"
- BroadCast "&8&l[&c&lKoth&8&l] &e&lLe koth pharaon vien de commencer &6&l(x:216 , z:96)"
- set {Koth} to true
- set {koth.temp} to 60
- set {koth.%player%} to false
- set {koth.zone} to false
- stop
- if arg 1 is "stop":
- if arg 2 is not set:
- send "&8[&cOasiaMc&8] &cLe koth s'est arreté"
- set {Koth} to false
- set {koth.temp} to 0
- set {koth.%player%} to false
- set {koth.zone} to true
- wipe player's sidebar
- stop
- if arg 1 is set:
- if arg 2 is not set:
- set {kothloc} to the player's location
- send "&8[&cOasiaMc&8] &eTu vien de SET le koth"
- stop
- if arg 1 is not set:
- if arg 2 is not set:
- send "&8[&cOasiaMc&8] &eEssaie la command /koth [text] [text]"
- stop
- if arg 1 is set:
- if arg 2 is not set:
- send "&8[&cOasiaMc&8] &eEssaie la command /koth [text] [text]"
- stop
- every 1 seconds:
- loop all players:
- if {Koth} is true:
- if {koth.temp} < 1:
- BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %loop-player% viens de &6&lGagner le Koth!"
- set {Koth} to false
- set {koth.temp} to 0
- set {koth.%loop-player%} to false
- set {koth.zone} to true
- set {koth.%loop-player%} to false
- loop all players:
- edit score id "temp.%loop-player%" to "&6♦ &eTemp(s): &7%{koth.temp}%" and 6
- stop
- if {Koth} is false:
- stop
- if {Koth} is true:
- loop all players:
- edit score id "temp.%loop-player%" to "&6♦ &eTemp(s): &7%{koth.temp}%" and 6
- if {koth.%loop-player%} is true:
- if {koth.zone} is true:
- remove 1 from {koth.temp}
- command /scoreboard:
- trigger:
- wipe player's sidebar
- wait 3 ticks
- set name of sidebar of player to "&c-&6-&e- &e&lKOTH &e-&6-&c-"
- set score "&f " in sidebar of player to 7
- set id based score "&6♦ &eTemp(s): &7%{koth.temp}%" in sidebar of player to 6 with id "temp.%player%"
- set id based score "&6♦ &eJoueur(s): &7%player%" in sidebar of player to 5 with id "kothplayer.%player%"
- set score "&2 " in sidebar of player to 4
- set score "&c⚠ Récompense: &eClé Koth" in sidebar of player to 3
- set score "&1 " in sidebar of player to 2
- set score "&a &c-&6-&e- &e&lKOTH &e-&6-&c-" in sidebar of player to 1
- on any move:
- if distance between player and {kothloc} is less than 4:
- if {koth} is true:
- if {koth.%player%} is false:
- if {koth.zone} is false:
- BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %player% vien de rentrer dans le Koth"
- loop all players:
- edit score id "kothplayer.%loop-player%" to "&6♦ &eJoueur(s): &7%player%" and 5
- set {koth.%player%} to true
- set {koth.zone} to true
- if distance between player and {kothloc} is bigger than 4:
- if {koth} is true:
- if {koth.zone} is true:
- if {koth.%player%} is true:
- BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %player% vien de &c&lquitter &e&lle Koth"
- loop all players:
- edit score id "kothplayer.%loop-player%" to "&6♦ &eJoueur(s): &7Aucun" and 5
- set {koth.temp} to 60
- set {koth.%player%} to false
- set {koth.zone} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement