NelGossem_

Untitled

Jun 29th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.44 KB | None | 0 0
  1. #=============================================#
  2. # Pitchout by NelGossem_ #
  3. #GoldenGames server : pvp.goldengames.fr:27470#
  4. #=============================================#
  5.  
  6. option :
  7. pitchout.minplayer: 3 #Nombre de joueurs requit pour débuter la partie !
  8. wow: &b&l> &r
  9. {lifes.%player%}: 3 #Nombre de vie par joueurs
  10.  
  11. #Commandes
  12. command /pitchoutadmin <text> [<text>]:
  13. permission: pitchoutadmin.perm
  14. trigger:
  15. if arg 1 is equal to "help":
  16. message "&6========= &4Pitchout by NelGossem_ &6========="
  17. send json "{@wow}&o&r&b/pitchout help &f- &7&oVous permez de voir la list des commandes !" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchout help" to player
  18. send json "{@wow}&o&r&b/pitchoutadmin &f- &7&oVous permez de voir la list des commandes des administrateurs!" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchoutadmin" to player
  19. send json "{@wow}&o&r&b/pitchoutadmin setlobbyspawn &f- &7&oVous permet de mettre le point de spawn de la salle d attente" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchoutadmin setlobbyspawn" to player
  20. send json "{@wow}&o&r&b/pitchoutadmin addspawn 1/2/3/4/5/6/7/8/9/10&f- &7&oVous permez de rajouter un point de spawn" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchoutadmin addspawn" to player
  21. send json "{@wow}&o&r&b/pitchoutadmin setfinspawn &f- &7&oVous permez de mettre le point de spawn après la fin des jeux" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchoutadmin setfinspawn" to player
  22. send json "{@wow}&o&r&b/pitchoutadmin setsign join/leave &f- &7&oSysteme de pancarte automatisé" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchoutadmin setsign" to player
  23. message "&6========= &4Pitchout by NelGossem_ &6========="
  24. if arg 1 doesn't exist:
  25. make player execute "pitchoutadmin help"
  26. stop
  27. if arg 1 is equal to "setlobbyspawn":
  28. set {pitchout.lobby} to location of player
  29. message "&6Pitchout &4&l> &7{pitchout.lobby}"
  30. if arg 1 is equal to "addspawn":
  31. if arg 2 is not set:
  32. send json "{@wow}&o&r&b/pitchoutadmin addspawn 1/2/3/4/5/6/7/8/9/10&f- &7&oVous permez de rajouter un point de spawn" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchoutadmin addspawn" to player
  33. if arg 2 is equal to "1":
  34. set {pitchout.spawn1} to location of player
  35. message "&6Pitchout &4&l> &7{pitchout1.spawn}"
  36. if arg 2 is equal to "2":
  37. set {pitchout.spawn1} to location of player
  38. message "&6Pitchout &4&l> &7{pitchout2.spawn}"
  39. if arg 2 is equal to "3":
  40. set {pitchout.spawn3} to location of player
  41. message "&6Pitchout &4&l> &7{pitchout3.spawn}"
  42. if arg 2 is equal to "4":
  43. set {pitchout.spawn4} to location of player
  44. message "&6Pitchout &4&l> &7{pitchout4.spawn}"
  45. if arg 2 is equal to "5":
  46. set {pitchout.spawn5} to location of player
  47. message "&6Pitchout &4&l> &7{pitchout5.spawn}"
  48. if arg 2 is equal to "6":
  49. set {pitchout.spawn6} to location of player
  50. message "&6Pitchout &4&l> &7{pitchout6.spawn}"
  51. if arg 2 is equal to "7":
  52. set {pitchout.spawn7} to location of player
  53. message "&6Pitchout &4&l> &7{pitchout7.spawn}"
  54. if arg 2 is equal to "8":
  55. set {pitchout.spawn8} to location of player
  56. message "&6Pitchout &4&l> &7{pitchout8.spawn}"
  57. if arg 2 is equal to "9":
  58. set {pitchout.spawn9} to location of player
  59. message "&6Pitchout &4&l> &7{pitchout9.spawn}"
  60. if arg 2 is equal to "10":
  61. set {pitchout.spawn10} to location of player
  62. message "&6Pitchout &4&l> &7{pitchout10.spawn}"
  63. if arg 1 is equal to "setfinspawn":
  64. set {pitchout.finspawn} to location of player
  65. message "&6Pitchout &4&l> &7{pitchout.finspawn}"
  66. if arg 1 is equal to "setsign":
  67. arg 2 is "join":
  68. {pitchout.configure_sign.leave} is true
  69. send "&eVous configurez déjà le panneau de Leave"
  70. stop
  71. set {pitchout.configure_sign.join} to true
  72. send "&eFaites un clic droit sur le panneau de Join"
  73. arg 2 is "leave":
  74. {pitchout.configure_sign.join} is true
  75. send "&eVous configurez déjà le panneau de Join"
  76. stop
  77. set {pitchout.configure_sign.leave} to true
  78. send "&eFaites un clic droit sur le panneau de Leave"
  79.  
  80. command /pitchout [<text>] <text>:
  81. trigger:
  82. if arg 1 is equal to "help":
  83. message "&6========= &4Pitchout by NelGossem_ &6========="
  84. send json "{@wow}&o&r&b/pitchout help &f- &7&oVous permez de voir la list des commandes !" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchout help" to player
  85. send json "{@wow}&o&r&b/pitchoutadmin &f- &7&oVous permez de voir la list des commandes des administrateurs!" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchoutadmin" to player
  86. send json "{@wow}&o&r&b/pitchout join/enter/play &f- &7&oVous permez de rejoindre une partie !" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchout join" to player
  87. send json "{@wow}&o&r&b/pitchout leave/quite/exite &f- &7&oVous permez de quitter une partie" styled gray tooltip "<gray>[ <light aqua>Click <gray>]" suggest "/pitchout leave" to player
  88. message "&6========= &4Pitchout by NelGossem_ &6========="
  89. if arg 1 doesn't exist:
  90. make player execute "pitchout help"
  91. stop
  92. if arg 1 is equal to "join" or "enter" or "play":
  93. execute console command "clear %player%"
  94. message "&6Pitchout &4&l> &7Vous avez rejoint la partie"
  95. set {wanted.%player%} to player argument
  96. add 1 to {pitchout.numbre_player}
  97. teleport player to {pitchout.lobby}
  98. set {pitchout.invincible} to true
  99. give an bed named "&3Leave" with lore "Veux-tu quitter ?" to slot 8 of player's inventory
  100. if arg 1 is equal to "leave" or "quite" or "exite":
  101. message "&6Pitchout &4&l> &7Vous avez quitter la partie"
  102. teleport player to {pitchout.finspawn}
  103. set {pitchout.invincible} to false
  104.  
  105. #Vous n avez pas le droit de ... au lobby du jeu ou pendant les jeux :
  106. on break:
  107. if {pitchout.invincible} is true:
  108. cancel event
  109. on place:
  110. if {pitchout.invincible} is true:
  111. cancel event
  112. On Hunger Meter Change:
  113. if {pitchout.invincible} is true:
  114. cancel event
  115. set the player's food level to 10
  116. on exiting of region "LimitePitchout":
  117. teleport player to {pitchout.lobby}
  118. On damage:
  119. victim is a player
  120. attacker is a player
  121. if {pitchout.invincible} is true:
  122. cancel event
  123. On rightclick with bed:
  124. if {pitchout.invincible} is true:
  125. make player execute "pitchout leave"
  126. On join:
  127. if {pitchout.invincible} is true:
  128. teleport player to {pitchout.finspawn}
  129. set {pitchout.invincible} to false
  130. on drop:
  131. if {pitchout.invincible} is true:
  132. cancel event
  133. on exiting of region "LimitePitchoutGame":
  134. if {pitchout.gamestarted} is true:
  135. remove 1 to {lifes.%player%}
  136.  
  137. On right click on sign:
  138. player is op
  139. {pitchout.configure_sign.join} is true:
  140. set {pitchout.sign_location} to location of clicked block
  141. set first line of clicked block to "&a[&bPitchout&a]"
  142. set second line of clicked block to "&aRejoindre la partie"
  143. set {pitchout.configure_sign.join} to false
  144. {pitchout.configure_sign.leave} is true:
  145. set {pitchout.sign_location} to location of clicked block
  146. set first line of clicked block to "&a[&bPitchout&a]"
  147. set second line of clicked block to "&aQuitter la partie"
  148. set {pitchout.configure_sign.leave} to false
  149.  
  150. On right click on sign:
  151. first line of clicked block is "&a[&bPitchout&a]"
  152. second line of clicked block is "&aRejoindre la partie"
  153. make player execute command "/pitchout join"
  154. stop
  155. second line of clicked block is "&aQuitter la partie"
  156. make player execute command "/pitchout leave"
  157. stop
Advertisement
Add Comment
Please, Sign In to add comment