Nathanlebe

Code script ModTools

Jul 20th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.34 KB | None | 0 0
  1. options:
  2.  
  3. Prefix: &6Modération &7→
  4.  
  5. variables:
  6. {god::enabled::%player%} = 0
  7.  
  8. on damage:
  9. if {god::enabled::%victim%} is 1:
  10. cancel event
  11.  
  12. on place:
  13. if name of block is "&6Freeze &7(Clic-droit)":
  14. cancel event
  15.  
  16. on drop:
  17. if name of event-item is "&6Freeze &7(Clic-droit)":
  18. cancel event
  19.  
  20. on drop:
  21. if name of event-item is "&6Tuer le joueur &7(Clic-droit)":
  22. cancel event
  23.  
  24. on drop:
  25. if name of event-item is "&6Tuer le joueur &7(Clic-droit)":
  26. cancel event
  27.  
  28. on drop:
  29. if name of event-item is "&6Informations &7(Clic-droit)":
  30. cancel event
  31.  
  32. on drop:
  33. if name of event-item is "&6Test Anti-KB":
  34. cancel event
  35.  
  36. on drop:
  37. if name of event-item is "&6Fantom &7[&aINVISIBLE&7]":
  38. cancel event
  39.  
  40. on drop:
  41. if name of event-item is "&6Fantom":
  42. cancel event
  43.  
  44. on drop:
  45. if name of event-item is "&6Fantom &7[&cVISIBLE&7]":
  46. cancel event
  47.  
  48. on drop:
  49. if name of event-item is "&6Effets | Potions &7(Clic-droit)":
  50. cancel event
  51.  
  52. On Inventory click:
  53. If name of clicked item is "&6Freeze &7(Clic-droit)":
  54. Cancel event
  55.  
  56. On Inventory click:
  57. If name of clicked item is "&6Tuer le joueur &7(Clic-droit)":
  58. Cancel event
  59.  
  60. On Inventory click:
  61. If name of clicked item is "&6Test Anti-KB":
  62. Cancel event
  63.  
  64. On Inventory click:
  65. If name of clicked item is "&6Informations &7(Clic-droit)":
  66. Cancel event
  67.  
  68. On Inventory click:
  69. If name of clicked item is "&6Fantom":
  70. Cancel event
  71.  
  72. On Inventory click:
  73. If name of clicked item is "&6Inventaire &7(Clic-droit)":
  74. Cancel event
  75.  
  76. On Inventory click:
  77. If name of clicked item is "&6Vider le joueur &7(Clic-droit)":
  78. Cancel event
  79.  
  80. On Inventory click:
  81. If name of clicked item is "&6Gestion Chat &7(Clic-droit)":
  82. Cancel event
  83.  
  84. On Inventory click:
  85. If name of clicked item is "&6TP Aléatoire &7(Clic-droit)":
  86. Cancel event
  87.  
  88. On Inventory click:
  89. If name of clicked item is "&6Fantom &7[&aINVISIBLE&7]":
  90. Cancel event
  91.  
  92. On Inventory click:
  93. If name of clicked item is "&6Fantom &7[&cVISIBLE&7]":
  94. Cancel event
  95.  
  96. On Inventory click:
  97. If name of clicked item is "&6Effets | Potions &7(Clic-droit)":
  98. make the player execute command "modspg"
  99.  
  100. On Inventory click:
  101. If name of clicked item is "&6Effets | Potions &7(Clic-droit)":
  102. Cancel event
  103.  
  104. On Inventory click:
  105. If name of clicked item is "&6Brûler le joueur &7(clic-droit)":
  106. Cancel event
  107.  
  108. On Inventory click:
  109. If name of clicked item is "&6Switch Tools 1 &7(Clic-droit)":
  110. Cancel event
  111.  
  112. On Inventory click:
  113. If name of clicked item is "&6Switch Tools 1 &7(Clic-droit)":
  114. make the player execute command "modon"
  115.  
  116. On Inventory click:
  117. If name of clicked item is "&6Switch Tools 2 &7(Clic-droit)":
  118. Cancel event
  119.  
  120. On Inventory click:
  121. If name of clicked item is "&6TS demande &7(Clic-droit)":
  122. Cancel event
  123.  
  124. On Inventory click:
  125. If name of clicked item is "&6Switch Tools 2 &7(Clic-droit)":
  126. make the player execute command "modon2"
  127.  
  128. On Inventory click:
  129. If name of clicked item is "&6Fly débug &7(Clic-droit)":
  130. Cancel event
  131.  
  132. on weather change to rain or thunder:
  133. cancel event
  134.  
  135. On rightclick with tnt:
  136. if name of player's tool is "&6TNT":
  137. make the player shoot a tnt
  138. stop
  139.  
  140. on right click with ender chest on player:
  141. player has permission "TOOLS.MOD"
  142. if name of player's tool is "&6Inventaire &7(clic-droit)":
  143. if targeted entity is a player:
  144. make player execute command "/pinv %targeted entity%"
  145.  
  146. #Commande: Activer son Modération Mode
  147.  
  148. command /modon:
  149. permission: TOOLS.MOD
  150. permission message: &6Modération &7→ &eVous n'avez pas les droits de &7Modération&e.
  151. trigger:
  152. clear player's inventory
  153. set player's fly mode to true
  154. set {god::enabled::%player%} to 1
  155. apply saturation to player for 1 hour
  156. set slot 8 of the player to a book named "&6Informations &7(Clic-droit)" with lore "&7→ &eL'inventaire du joueur"
  157. set slot 7 of the player to a iron hoe named "&6Tuer le joueur &7(Clic-droit)" with lore "&7→ &eTuer le joueur"
  158. set {freeze::%player%} to true
  159. set slot 6 of the player to a slimeball of knockback 5 named "&6Test Anti-KB" with lore "&7→ &eTester le KB du joueur"
  160. set slot 1 of the player to a ice named "&6Freeze &7(Clic-droit)" with lore "&7→ &eGlacer le joueur visé"
  161. set slot 0 of the player to a nether star named "&6Fantom" with lore "&7→ &eÊtre Visible ou Invisible"
  162. set slot 2 of the player to a glass bottle named "&6Effets | Potions &7(Clic-droit)" with lore "&7→ &eAvoir un effet "
  163. set slot 5 of the player to a blaze powder named "&6Brûler le joueur &7(Clic-droit)" with lore "&7→ &eMet le joueur en feu"
  164. set slot 3 of the player to a feather named "&6Switch Tools 2 &7(Clic-droit)" with lore "&7→ &eVers la deuxième barre d'items"
  165.  
  166. command /modon2:
  167. permission: "TOOLS.MOD"
  168. trigger:
  169. clear player's inventory
  170. set player's fly mode to true
  171. set {god::enabled::%player%} to 1
  172. apply saturation to player for 1 hour
  173. set {freeze::%player%} to true
  174. set slot 0 of the player to a shears named "&6Gestion Chat &7(Clic-droit)" with lore "&7→ &eGérer le chat du serveur"
  175. set slot 1 of the player to a tripwire hook named "&6TP Aléatoire &7(Clic-droit)" with lore "&7→ &eTéléportion aléatoire vers un joueur"
  176. set slot 4 of the player to a feather named "&6Switch Tools 1 &7(Clic-droit)" with lore "&7→ &eVers la première barre d'items"
  177. set slot 8 of the player to a ender chest named "&6Inventaire &7(Clic-droit)" with lore "&7→ &eVoir l'inventaire"
  178. set slot 7 of the player to a bones named "&6Vider le joueur &7(Clic-droit)" with lore "&7→ &eVider l'inventaire du joueur"
  179. set slot 2 of the player to a gray dye named "&6TS demande &7(Clic-droit)" with lore "&7→ &eDemander au joueur de venir sur TeamSpeak"
  180. set slot 6 of the player to a sugar named "&6Fly débug &7(Clic-droit)" with lore "&7→ &eEn cas de bug du fly"
  181.  
  182. on drop:
  183. if {freeze::%player%} is true:
  184. cancel event
  185.  
  186. on break:
  187. if {freeze::%player%} is true:
  188. cancel event
  189. on place:
  190. if {freeze::%player%} is true:
  191. cancel event
  192.  
  193. command /modoff:
  194. permission: "TOOLS.MOD"
  195. trigger:
  196. clear player' inventory
  197. reveal player to all players
  198. set {vanish::%player%} to false
  199. set {god::enabled::%player%} to 0
  200. send "&6Modération &7→ &eVous n'avez plus vos items &7Modération&e."
  201. remove saturation from player
  202. set {freeze::%player%} to false
  203. remove speed from player
  204. if player's gamemode is survival:
  205. set player's fly mode to false
  206.  
  207. on rightclick with nether star:
  208. player has permission "TOOLS.MOD"
  209. if name of player's tool contains "&6Fantom":
  210. if {vanish::%player%} is false:
  211. set {vanish::%player%} to true
  212. hide player to all players
  213. loop all players:
  214. if {vanish::%loop-player%} is true:
  215. reveal loop-player to player
  216. set name of player's tool to "&6Fantom &7[&aINVISIBLE&7]"
  217. set player's fly mode to true
  218. send "&6Modération &7→ &eVous êtes désormais un &fFantom&e." to player
  219. stop
  220. else if {vanish::%player%} is true:
  221. set player's fly mode to true
  222. reveal player to all players
  223. set {vanish::%player%} to false
  224. set name of player's tool to "&6Fantom &7[&cVISIBLE&7]"
  225. send "&6Modération &7→ &eVous n'êtes désormais plus un &fFantom&e." to player
  226. stop
  227.  
  228. on right click with book on player:
  229. player has permission "TOOLS.MOD"
  230. if name of player's tool is "&6Informations &7(Clic-droit)":
  231. if targeted entity is a player:
  232. make player execute command "/pinfo %targeted entity%"
  233.  
  234.  
  235. on right click with iron hoe on player:
  236. player has permission "TOOLS.MOD"
  237. if name of player's tool is "&6Tuer le joueur &7(Clic-droit)":
  238. message "{@Prefix} &eJoueur tué." to player
  239. if targeted entity is a player:
  240. kill the clicked player
  241.  
  242. on right click with gray dye on player:
  243. player has permission "TOOLS.MOD"
  244. if name of player's tool is "&6Ts demande &7(Clic-droit)":
  245. if targeted entity is a player:
  246. send "{@Prefix} &eUn Modérateur veut que tu viennes sur le TeamSpeak de Machinimine ! &cIP: ts.machinimine.fr"
  247. message "{@Prefix} &eMessage envoyé au joueur." to player
  248.  
  249. on death of player:
  250. {freeze::%player%} is true:
  251. clear drops
  252.  
  253. on right click with tripwire hook:
  254. player has permission "TOOLS.MOD"
  255. if name of player's tool is "&6TP Aléatoire &7(clic-droit)":
  256. set {tprdm::loc::%player%} to location of player
  257. teleport player to (random player out of all players)
  258. if random player out of all players is player:
  259. teleport player to {tprdm::loc::%player%}
  260. cancel event
  261. stop
  262. else if random player out of all players is not player:
  263. loop all players in radius 3 around player:
  264. set {_lol} to "%loop-player%"
  265. set player's fly mode to true
  266.  
  267. on right click with blaze powder on player:
  268. player has permission "TOOLS.MOD"
  269. message "{@Prefix} &eLe joueur brûle." to player
  270. if name of player's tool is "&6Brûler le joueur &7(Clic-droit)":
  271. ignite the clicked player for 10 seconds
  272.  
  273. on right click with bones on player:
  274. player has permission "TOOLS.MOD"
  275. if name of player's tool is "&6Vider le joueur &7(Clic-droit)":
  276. message "{@Prefix} &eInventaire du joueur vidé." to player
  277. clear inventory of the clicked player
  278.  
  279. on right click with ice on player:
  280. player has permission "TOOLS.MOD"
  281. if name of player's tool is "&6Freeze &7(Clic-droit)":
  282. if targeted entity is a player:
  283. make player execute command "/modfreeze %targeted entity%"
  284.  
  285. on right click with feather:
  286. player has permission "TOOLS.MOD"
  287. if name of player's tool is "&6Switch Tools 2 &7(Clic-droit)":
  288. make player execute command "/modon2"
  289.  
  290. on right click with feather:
  291. player has permission "TOOLS.MOD"
  292. if name of player's tool is "&6Switch Tools 1 &7(Clic-droit)":
  293. make player execute command "/modon"
  294.  
  295. on right click with sugar:
  296. message "{@Prefix} &eLes bugs avec votre fly son maintenant résolut." to player
  297. player has permission "TOOLS.MOD"
  298. if name of player's tool is "&6Fly Débug &7(Clic-droit)":
  299. set player's fly mode to true
  300.  
  301. on death:
  302. if victim is a player:
  303. if attacker is a player:
  304. set {_lastloc} to location of victim
  305. wait 0 seconds
  306. Loop dropped items in radius 35 around block at {_lastloc}:
  307. Item is not Item Frame:
  308. clear dropped items
  309. on drop:
  310. {freeze::%player%} is true:
  311. cancel event
  312.  
  313. on rightclick with glass bottle:
  314. player has permission "TOOLS.MOD"
  315. name of player's tool is "&6Effets | Potions &7(Clic-droit)":
  316. wait 0 tick
  317. open chest with 1 row named "&8Speed" to player
  318. format slot 0 of player with water bottle named "&6Speed 1" with lore "&7→ &eAvoir l'effect &7Speed 1" to close then run [make player execute command "/modsp s1"]
  319. format slot 1 of player with water bottle named "&6Speed 2" with lore "&7→ &eAvoir l'effect &7Speed 2" to close then run [make player execute command "/modsp s2"]
  320. format slot 7 of player with water bottle named "&5Night Vision" with lore "&7→ &eAvoir l'effect &7Night Vision" to close then run [make player execute command "/modsp n"]
  321. format slot 2 of player with water bottle named "&6Speed 3" with lore "&7→ &eAvoir l'effect &7Speed 2" to close then run [make player execute command "/modsp s3"]
  322. format slot 3 of player with water bottle named "&6Speed 4" with lore "&7→ &eAvoir l'effect &7Speed 2" to close then run [make player execute command "/modsp s4"]
  323. format slot 8 of player with red dye named "&cClear" with lore "&7→ &eSuprimer son effet de speed" to close then run [make player execute command "/modsp clear"]
  324.  
  325. command /modspg:
  326. permission: "TOOLS.MOD"
  327. permission message: &6Modération &7→ &eVous n'avez pas les droits de &7Modération&e.
  328. trigger:
  329. wait 0 tick
  330. open chest with 1 row named "&8Speed" to player
  331. format slot 0 of player with water bottle named "&6Speed 1" with lore "&7→ &eAvoir l'effect &7Speed 1" to close then run [make player execute command "/modsp s1"]
  332. format slot 1 of player with water bottle named "&6Speed 2" with lore "&7→ &eAvoir l'effect &7Speed 2" to close then run [make player execute command "/modsp s2"]
  333. format slot 7 of player with water bottle named "&5Night Vision" with lore "&7→ &eAvoir l'effect &7Night Vision 2" to close then run [make player execute command "/modsp n"]
  334. format slot 2 of player with water bottle named "&6Speed 3" with lore "&7→ &eAvoir l'effect &7Speed 2" to close then run [make player execute command "/modsp s3"]
  335. format slot 3 of player with water bottle named "&6Speed 4" with lore "&7→ &eAvoir l'effect &7Speed 2" to close then run [make player execute command "/modsp s4"]
  336. format slot 8 of player with red dye named "&cClear" with lore "&7→ &eSuprimer son effet de speed" to close then run [make player execute command "/modsp clear"]
  337.  
  338. command /modsp <text>:
  339. permission: "TOOLS.MOD"
  340. permission message: &6Modération &7→ &eVous n'avez pas les droits de &7Modération&e.
  341. trigger:
  342. if argument 1 isn't set:
  343. stop
  344. if argument 1 is "s1":
  345. apply speed 1 to the player for 1 hour
  346. message "{@Prefix} &eVous avez désormais l'effet &bSpeed 1&e."
  347. if argument 1 is "s2":
  348. apply speed 2 to the player for 1 hour
  349. message "{@Prefix} &eVous avez désormais l'effet &bSpeed 2&e."
  350. if argument 1 is "s3":
  351. apply speed 3 to the player for 1 hour
  352. message "{@Prefix} &eVous avez désormais l'effet &bSpeed 3&e."
  353. if argument 1 is "s4":
  354. apply speed 4 to the player for 1 hour
  355. message "{@Prefix} &eVous avez désormais l'effet &bSpeed 4&e."
  356. if argument 1 is "n":
  357. apply night vision 1 to the player for 1 hour
  358. message "{@Prefix} &eVous avez désormais l'effet &5Night Vision&e."
  359. if argument 1 is "clear":
  360. remove speed from player
  361. remove night vision from player
  362. message "{@Prefix} &eVous n'avez désormais plus les effets choisis."
  363.  
  364. #Freez:
  365.  
  366. options:
  367.  
  368. Prefix: &6Modération &7→
  369.  
  370.  
  371. #Les variables:
  372. variables:
  373. {freeze::%player%::value} = false
  374.  
  375. #Quand les joueurs font une commande et qu'il son freeze.
  376. on command:
  377. {freeze::%player%::value}
  378. cancel the event
  379. message "{@Prefix} &cVous ne pouvez pas executer de commande étant freeze."
  380.  
  381. #Que les joueurs ne puisse pas bouger
  382. on any movement:
  383.  
  384. {freeze::%player%::value}
  385. cancel the event
  386. set {_checktime} to now
  387. subtract 2 seconds from {_checktime}
  388. {freeze::%player%::lastused} is less than {_checktime}
  389. message "{@Prefix} &cVous ne pouvez pas bouger car vous êtes freeze."
  390. set {freeze.%player%.lastused} to now
  391.  
  392. command /modfreeze [<player>]:
  393. trigger:
  394. arg 1 is not set:
  395. message "&cUsage: /modfreeze <joueur>"
  396. stop
  397. {freeze::%arg 1%::value} is not set:
  398. set {freeze::%arg 1%::value} to false
  399. player is arg 1:
  400. player does not have permission "TOOLS.MOD":
  401. message "{@Prefix} &eVous n'avez pas les droits de &7Modération&e."
  402. stop
  403. message "{@Prefix} &cVous ne pouvez pas vous freeze."
  404. stop
  405. not {freeze::%arg 1%::value}:
  406. player does not have permission "TOOLS.MOD":
  407. message "{@Prefix} &eVous n'avez pas les droits de &7Modération&e."
  408. stop
  409. set {freeze::%arg 1%::value} to true
  410. set {_templastused} to now
  411. subtract 1 hour from {_templastused}
  412. set {freeze::%arg 1%::lastused} to {_templastused}
  413. message "{@Prefix} &eVous avez freeze &7%arg 1%&e."
  414. message "{@Prefix} &eVous avez été freeze par &7%player%&e &e&l -----> &c&lVeulliez venir sur le TeamSpeak ! ts.machinimine.fr, si vous déconnectez vous serez banni !" to arg 1
  415. stop
  416. player does not have permission "TOOLS.MOD":
  417. message "{@Prefix} &eVous n'avez pas les droits de &7Modération&e."
  418. stop
  419. set {freeze::%arg 1%::value} to false
  420. set {_templastused} to now
  421. subtract 1 hour from {_templastused}
  422. set {freeze::%arg 1%::lastused} to {_templastused}
  423. message "{@Prefix} &eVous avez unfreeze &7%arg 1%&e."
  424. message "{@Prefix} &eVous avez été unfreeze par &7%player%&e, vous pouvez déconnecter." to arg 1
Advertisement
Add Comment
Please, Sign In to add comment