Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. command /koth [<text>] [<text>]:
  2. permission: essentials.fonda
  3. trigger:
  4. if arg 1 is "start":
  5. if arg 2 is not set:
  6. send "&8[&cOasiaMc&8] &aLe koth vien de demarrer"
  7. BroadCast "&8&l[&c&lKoth&8&l] &e&lLe koth pharaon vien de commencer &6&l(x:216 , z:96)"
  8. set {Koth} to true
  9. set {koth.temp} to 60
  10. set {koth.%player%} to false
  11. set {koth.zone} to false
  12. stop
  13. if arg 1 is "stop":
  14. if arg 2 is not set:
  15. send "&8[&cOasiaMc&8] &cLe koth s'est arreté"
  16. set {Koth} to false
  17. set {koth.temp} to 0
  18. set {koth.%player%} to false
  19. set {koth.zone} to true
  20. wipe player's sidebar
  21. stop
  22. if arg 1 is set:
  23. if arg 2 is not set:
  24. set {kothloc} to the player's location
  25. send "&8[&cOasiaMc&8] &eTu vien de SET le koth"
  26. stop
  27. if arg 1 is not set:
  28. if arg 2 is not set:
  29. send "&8[&cOasiaMc&8] &eEssaie la command /koth [text] [text]"
  30. stop
  31. if arg 1 is set:
  32. if arg 2 is not set:
  33. send "&8[&cOasiaMc&8] &eEssaie la command /koth [text] [text]"
  34. stop
  35.  
  36. every 1 seconds:
  37. loop all players:
  38. if {Koth} is true:
  39. if {koth.temp} < 1:
  40. BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %loop-player% viens de &6&lGagner le Koth!"
  41. set {Koth} to false
  42. set {koth.temp} to 0
  43. set {koth.%loop-player%} to false
  44. set {koth.zone} to true
  45. set {koth.%loop-player%} to false
  46. loop all players:
  47. edit score id "temp.%loop-player%" to "&6♦ &eTemp(s): &7%{koth.temp}%" and 6
  48. stop
  49. if {Koth} is false:
  50. stop
  51. if {Koth} is true:
  52. loop all players:
  53. edit score id "temp.%loop-player%" to "&6♦ &eTemp(s): &7%{koth.temp}%" and 6
  54. if {koth.%loop-player%} is true:
  55. if {koth.zone} is true:
  56. remove 1 from {koth.temp}
  57.  
  58.  
  59. command /scoreboard:
  60. trigger:
  61. wipe player's sidebar
  62. wait 3 ticks
  63. set name of sidebar of player to "&c-&6-&e- &e&lKOTH &e-&6-&c-"
  64. set score "&f " in sidebar of player to 7
  65. set id based score "&6♦ &eTemp(s): &7%{koth.temp}%" in sidebar of player to 6 with id "temp.%player%"
  66. set id based score "&6♦ &eJoueur(s): &7%player%" in sidebar of player to 5 with id "kothplayer.%player%"
  67. set score "&2 " in sidebar of player to 4
  68. set score "&c⚠ Récompense: &eClé Koth" in sidebar of player to 3
  69. set score "&1 " in sidebar of player to 2
  70. set score "&a &c-&6-&e- &e&lKOTH &e-&6-&c-" in sidebar of player to 1
  71.  
  72. on any move:
  73. if distance between player and {kothloc} is less than 4:
  74. if {koth} is true:
  75. if {koth.%player%} is false:
  76. if {koth.zone} is false:
  77. BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %player% vien de rentrer dans le Koth"
  78. loop all players:
  79. edit score id "kothplayer.%loop-player%" to "&6♦ &eJoueur(s): &7%player%" and 5
  80. set {koth.%player%} to true
  81. set {koth.zone} to true
  82. if distance between player and {kothloc} is bigger than 4:
  83. if {koth} is true:
  84. if {koth.zone} is true:
  85. if {koth.%player%} is true:
  86. BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %player% vien de &c&lquitter &e&lle Koth"
  87. loop all players:
  88. edit score id "kothplayer.%loop-player%" to "&6♦ &eJoueur(s): &7Aucun" and 5
  89. set {koth.temp} to 60
  90. set {koth.%player%} to false
  91. set {koth.zone} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement