LeGamerdu06mc

MarioGaming vole des Skripts

Feb 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.44 KB | None | 0 0
  1. options:
  2.  
  3. logo: &bSkMaintenance &8» # Logo
  4. logo2: &bSkMaintenance # Logo2
  5. kick: &cConnection perdu &7» &bLa Maintenance à été activé! # Message au moment du kick
  6. perm: sk.mainenance
  7. permjoin: sk.maintenance.join
  8. permmsg: &cTu n'a pas la permission!
  9.  
  10. variables:
  11. {maintenance} = false
  12. {status.maintenance} = false
  13.  
  14. command /maintenance [<text>]:
  15. aliases: /m
  16. permission: {@perm}
  17. permission message: {@permmsg}
  18. trigger:
  19. if arg 1 is not set:
  20. open chest with 5 rows named "&3Maintenance" to player
  21. wait 1 ticks
  22. format slot 0 of player with light gray stained glass named "" to close
  23. format slot 1 of player with light gray stained glass named "" to close
  24. format slot 2 of player with light gray stained glass named "" to close
  25. format slot 3 of player with light gray stained glass named "" to close
  26. format slot 4 of player with light gray stained glass named "" to close
  27. format slot 5 of player with light gray stained glass named "" to close
  28. format slot 6 of player with light gray stained glass named "" to close
  29. format slot 7 of player with light gray stained glass named "" to close
  30. format slot 8 of player with light gray stained glass named "" to close
  31. format slot 9 of player with light gray stained glass named "" to close
  32. format slot 10 of player with light gray stained glass named "" to close
  33. format slot 11 of player with light gray stained glass named "" to close
  34. format slot 12 of player with light gray stained glass named "" to close
  35. format slot 13 of player with light gray stained glass named "" to close
  36. format slot 14 of player with light gray stained glass named "" to close
  37. format slot 15 of player with light gray stained glass named "" to close
  38. format slot 16 of player with light gray stained glass named "" to close
  39. format slot 17 of player with light gray stained glass named "" to close
  40. format slot 18 of player with light gray stained glass named "" to close
  41. format slot 19 of player with diamond named "&aReload" to close then run [make player execute command "/maintenance reload"]
  42. format slot 20 of player with light gray stained glass named "" to close
  43. format slot 21 of player with light gray stained glass named "" to close
  44. if {maintenance} is false:
  45. format slot 22 of player with red wool named "&3Maintenance" with lore "||&3Status: &cDésactivé||&7||&3Clique pour &aActivé &3la Maintenance." to close then run [make player execute command "/maintenance on"]
  46. if {maintenance} is true:
  47. format slot 22 of player with green wool named "&3Maintenance" with lore "||&3Status: &aActivé||&7||&3Clique pour &cDésactivé &3la Maintenance." to close then run [make player execute command "/maintenance off"]
  48. format slot 23 of player with light gray stained glass named "" to close
  49. format slot 24 of player with light gray stained glass named "" to close
  50. format slot 25 of player with emerald named "&bInformation" with lore "||&7» &bAuteur: &fMarioGaming877 ||&7» &bVersion: &fV1" to be unstealable
  51. format slot 26 of player with light gray stained glass named "" to close
  52. format slot 27 of player with light gray stained glass named "" to close
  53. format slot 28 of player with light gray stained glass named "" to close
  54. format slot 29 of player with light gray stained glass named "" to close
  55. format slot 30 of player with light gray stained glass named "" to close
  56. format slot 31 of player with light gray stained glass named "" to close
  57. format slot 32 of player with light gray stained glass named "" to close
  58. format slot 33 of player with light gray stained glass named "" to close
  59. format slot 34 of player with light gray stained glass named "" to close
  60. format slot 35 of player with light gray stained glass named "" to close
  61. format slot 36 of player with light gray stained glass named "" to close
  62. format slot 37 of player with light gray stained glass named "" to close
  63. format slot 38 of player with light gray stained glass named "" to close
  64. format slot 39 of player with light gray stained glass named "" to close
  65. format slot 40 of player with light gray stained glass named "" to close
  66. format slot 41 of player with light gray stained glass named "" to close
  67. format slot 42 of player with light gray stained glass named "" to close
  68. format slot 43 of player with light gray stained glass named "" to close
  69. format slot 44 of player with light gray stained glass named "" to close
  70. if arg 1 is not "info" or "rl" or "reload" or "on" or "off" or "status" or "setspawn":
  71. open chest with 5 rows named "&3Maintenance" to player
  72. wait 1 ticks
  73. format slot 0 of player with light gray stained glass named "" to close
  74. format slot 1 of player with light gray stained glass named "" to close
  75. format slot 2 of player with light gray stained glass named "" to close
  76. format slot 3 of player with light gray stained glass named "" to close
  77. format slot 4 of player with light gray stained glass named "" to close
  78. format slot 5 of player with light gray stained glass named "" to close
  79. format slot 6 of player with light gray stained glass named "" to close
  80. format slot 7 of player with light gray stained glass named "" to close
  81. format slot 8 of player with light gray stained glass named "" to close
  82. format slot 9 of player with light gray stained glass named "" to close
  83. format slot 10 of player with light gray stained glass named "" to close
  84. format slot 11 of player with light gray stained glass named "" to close
  85. format slot 12 of player with light gray stained glass named "" to close
  86. format slot 13 of player with light gray stained glass named "" to close
  87. format slot 14 of player with light gray stained glass named "" to close
  88. format slot 15 of player with light gray stained glass named "" to close
  89. format slot 16 of player with light gray stained glass named "" to close
  90. format slot 17 of player with light gray stained glass named "" to close
  91. format slot 18 of player with light gray stained glass named "" to close
  92. format slot 19 of player with diamond named "&aReload" to close then run [make player execute command "/maintenance reload"]
  93. format slot 20 of player with light gray stained glass named "" to close
  94. format slot 21 of player with light gray stained glass named "" to close
  95. if {maintenance} is false:
  96. format slot 22 of player with red wool named "&3Maintenance" with lore "||&3Status: &cDésactivé||&7||&3Clique pour &aActivé &3la Maintenance." to close then run [make player execute command "/maintenance on"]
  97. if {maintenance} is true:
  98. format slot 22 of player with green wool named "&3Maintenance" with lore "||&3Status: &aActivé||&7||&3Clique pour &cDésactivé &3la Maintenance." to close then run [make player execute command "/maintenance off"]
  99. format slot 23 of player with light gray stained glass named "" to close
  100. format slot 24 of player with light gray stained glass named "" to close
  101. format slot 25 of player with emerald named "&bInformation" with lore "||&7» &bAuteur: &fNitriZ_Dev ||&7» &bVersion: &f3.1" to be unstealable
  102. format slot 26 of player with light gray stained glass named "" to close
  103. format slot 27 of player with light gray stained glass named "" to close
  104. format slot 28 of player with light gray stained glass named "" to close
  105. format slot 29 of player with light gray stained glass named "" to close
  106. format slot 30 of player with light gray stained glass named "" to close
  107. format slot 31 of player with light gray stained glass named "" to close
  108. format slot 32 of player with light gray stained glass named "" to close
  109. format slot 33 of player with light gray stained glass named "" to close
  110. format slot 34 of player with light gray stained glass named "" to close
  111. format slot 35 of player with light gray stained glass named "" to close
  112. format slot 36 of player with light gray stained glass named "" to close
  113. format slot 37 of player with light gray stained glass named "" to close
  114. format slot 38 of player with light gray stained glass named "" to close
  115. format slot 39 of player with light gray stained glass named "" to close
  116. format slot 40 of player with light gray stained glass named "" to close
  117. format slot 41 of player with light gray stained glass named "" to close
  118. format slot 42 of player with light gray stained glass named "" to close
  119. format slot 43 of player with light gray stained glass named "" to close
  120. format slot 44 of player with light gray stained glass named "" to close
  121. if arg 1 is "info":
  122. send "&7-&b-&7- {@logo2} &7-&b-&7-"
  123. send ""
  124. send "&7» &bAuteur: &fMarioGaming877"
  125. send "&7» &bVersion: &fV1"
  126. send ""
  127. send "&7------------------------------"
  128. if arg 1 is "on":
  129. if {maintenance} is false:
  130. set {maintenance} to true
  131. set {status.maintenance} to true
  132. set {chargement.maintenance} to true
  133. broadcast "{@logo} &3Chargement de la maintenance..."
  134. wait 1 ticks
  135. loop all players:
  136. teleport loop-player at {location.maintenance}
  137. set slot 4 of loop-player to redstone named "&cMaintenance..."
  138. send loop-player title "&cMaintenance..." with subtitle "&7AntiBug..." for 2 seconds
  139. wait 3 seconds
  140. broadcast "{@logo} &3Chargement terminé..."
  141. wait 1 seconds
  142. broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c10 &3secondes..."
  143. send all players title "&4&l10"
  144. wait 5 seconds
  145. loop all players:
  146. set {freeze.maintenance.%loop-player%} to location of player
  147. set {freeze.maintenance} to true
  148. broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c5 &3secondes..."
  149. send all players title "&c&l5"
  150. wait 1 seconds
  151. broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c4 &3secondes..."
  152. send all players title "&6&l4"
  153. wait 1 seconds
  154. broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c3 &3secondes..."
  155. send all players title "&e&l3"
  156. wait 1 seconds
  157. broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c2 &3secondes..."
  158. send all players title "&2&l2"
  159. wait 1 seconds
  160. broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c1 &3secondes..."
  161. send all players title "&a&l1"
  162. wait 1 seconds
  163. set {freeze.maintenance} to false
  164. set {chargement.maintenance} to false
  165. send all players title "&3éjection des joueurs..."
  166. loop all players:
  167. if loop-player doesn't have permission "{@permjoin}":
  168. kick loop-player due to "{@kick}"
  169. else:
  170. send "{@logo} &3Tout les joueurs ont été éjecté. &f(&cMaintenance&f)&3." to loop-player
  171. clear loop-player's inventory
  172. else:
  173. send "{@logo} &3Désolé, la maintenance est déjà &aActivé&3."
  174. if arg 1 is "off":
  175. if {maintenance} is true:
  176. set {status.maintenance} to false
  177. wait 2 ticks
  178. broadcast "{@logo} &3La Maintenance c'est terminée..."
  179. set {maintenance} to false
  180. else:
  181. send "{@logo} &3Désolé, la maintenance est déjà &cDésactivé&3."
  182. if arg 1 is "reload" or "rl":
  183. make player execute command "/sk reload SkMaintenanceV3.2"
  184. send "{@logo} &3Reload Succès!"
  185. if arg 1 is "status":
  186. if {status.maintenance} is false:
  187. send "{@logo} &3Status: &f(&cDésactivé&f)"
  188. if {status.maintenance} is true:
  189. send "{@logo} &3Status: &f(&aActivé&f)"
  190. if arg 1 is "setspawn":
  191. send "{@logo} &3Vous avez définie la Point de Spawn de la Maintenance!"
  192. set {location.maintenance} to location of player
  193. wait 2 ticks
  194. send "{@logo} &3Coordonné: &e%{location.maintenance}%"
  195.  
  196. on join:
  197. if {maintenance} is true:
  198. if player doesn't have permission "{@permjoin}":
  199. set join message to ""
  200. kick the player due to "&eLa maintenance est activée. Contactez le staff sur TS !"
  201.  
  202. on quit:
  203. if {maintenance} is true:
  204. if player doesn't have permission "{@permjoin}":
  205. set quit message to ""
  206. on inventory click:
  207. if {chargement.maintenance} is true:
  208. send "{@logo} &cErreur: &3Maintenance &aActivé&3."
  209. cancel event
  210. on drop:
  211. if {chargement.maintenance} is true:
  212. send "{@logo} &cErreur: &3Maintenance &aActivé&3."
  213. cancel event
  214.  
  215. on place:
  216. if {chargement.maintenance} is true:
  217. send "{@logo} &cErreur: &3Maintenance &aActivé&3."
  218. cancel event
  219.  
  220. on any move:
  221. if {freeze.maintenance} is true:
  222. teleport player at {freeze.maintenance.%player%}
Advertisement
Add Comment
Please, Sign In to add comment