Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.21 KB | None | 0 0
  1. options:
  2. C: &7
  3. H: &6
  4. P: &6&l
  5. AF: &8»
  6.  
  7. variables:
  8. {mutebc} = op
  9.  
  10. #=====================#
  11. # Alt Checker #
  12. #=====================#
  13. on join:
  14. if {ips::%ip of player%} is not set:
  15. set {ips::%ip of player%} to "%player%"
  16. loop {ips::*}:
  17. (ip of player) is equal to (loop-index)
  18. "%loop-value%" is not "%player%"
  19. command "/helpop &6%player% &7is a &6%loop-value% &7alt!"
  20.  
  21. #=====================#
  22. # Kickall Command #
  23. #=====================#
  24. command /kickall <text>:
  25. permission: skript.op
  26. trigger:
  27. broadcast "{@P} {@AF} {@C}Kicking All Players For {@H}%arg-1%..."
  28. loop all players:
  29. loop-player does not have permission "skript.kickbypass"
  30. kick the loop-player because "{@H}%arg-1%"
  31. wait 0.1 ticks
  32. broadcast "{@P}UHC {@AF} {@C}Kicked all players for {@H}%arg-1%!"
  33.  
  34. #=====================#
  35. # Spawnall Command #
  36. #=====================#
  37. command /spawnall:
  38. description: Teleports all players to spawn!
  39. permission: skript.op
  40. permission message: &cYou do not have permission to use this command young peasant
  41. usage: /spawnall
  42. executable by: players and console
  43. trigger:
  44. command "/invis on"
  45. broadcast "{@P}UHC {@AF} {@C}Teleporting everyone to {@H}spawn..."
  46. loop all players:
  47. command "/playsound note.pling %loop-player%"
  48. loop all players:
  49. add loop-player to {Spawn::*}
  50. wait 3 ticks
  51. loop (size of (all players)) times:
  52. set {_Spawnplayer} to (random element out of {Spawn::*})
  53. command "/spawn %{_Spawnplayer}%"
  54. wait 2 ticks
  55. remove {_Spawnplayer} from {Spawn::*}
  56. loop all players:
  57. command "/playsound note.pling %loop-player%"
  58. broadcast "{@P}UHC {@AF} {@C}All {@H}players {@C}were teleported to {@H}spawn!"
  59. command "/invis off"
  60. delete {Spawn::*}
  61.  
  62. #=====================#
  63. # Better Death Msg #
  64. #=====================#
  65. on death of player:
  66. attacker is a player
  67. if {Teams::*} is not set:
  68. set death message to "{@P}Death {@AF} {@H}%victim% {@C}was killed by {@H}%attacker%!"
  69.  
  70. #=====================#
  71. # Better Smelting #
  72. #=====================#
  73. on fuel burn:
  74. fuel slot of block will be empty
  75. loop blocks in radius 1:
  76. loop-block is chest
  77. loop items of type fuel:
  78. loop-block contains loop-item
  79. remove loop-item from loop-block
  80. set fuel of event-block to loop-item
  81. stop trigger
  82.  
  83. on smelt:
  84. ore slot of block will be empty
  85. loop blocks in radius 1:
  86. loop-block is chest
  87. loop items of types ore and log:
  88. loop-block contains loop-item
  89. remove loop-item from loop-block
  90. set ore of event-block to loop-item
  91. stop trigger
  92.  
  93. on smelt:
  94. loop blocks in radius 1:
  95. loop-block is chest
  96. loop-block can hold result of event-block
  97. add result of event-block to loop-block
  98. clear result of event-block
  99. stop trigger
  100. #=====================#
  101. # Giveall Command #
  102. #=====================#
  103. command /giveall <item> [<integer>]:
  104. usage: /giveall <item> [<amount>]
  105. permission: skript.op
  106. trigger:
  107. if arg-2 is more than 1:
  108. set {_amt} to arg-2
  109. else:
  110. set {_amt} to 1
  111. loop all players:
  112. loop {_amt} times:
  113. if loop-player has space for (1 of (arg-1)):
  114. give loop-player (1 of (arg-1))
  115. else:
  116. drop (1 of (arg-1)) at (location 0.5 above loop-player)
  117. broadcast "{@P}UHC {@AF} {@H}%command sender% {@C}Gave All Player(s) {@H}%{_amt}% %arg-1%(s)!"
  118.  
  119. #=====================#
  120. # Better Broadcast #
  121. #=====================#
  122. command /bc <text>:
  123. usage: /bc <text>
  124. aliases: /b, /kc
  125. permission: skript.op
  126. trigger:
  127. broadcast "{@P}Broadcast {@AF} &c%arg-1%"
  128. command "/swag-playsound random.pop"
  129.  
  130. command /swag-playsound <text>:
  131. permission: skript.scatter.playsound
  132. trigger:
  133. loop all players:
  134. command "/playsound %arg 1% %loop-player%"
  135.  
  136. #=====================#
  137. # Blocked Commands #
  138. #=====================#
  139. on command "bukkit:kill":
  140. cancel the event
  141. message "{@P}Anti-Cheat {@AF} {@C}See your doctor for thoughts of {@H}suicide!"
  142.  
  143.  
  144. on command "jointeam":
  145. message "{@P}Anti-Cheat {@AF} {@C}You don't have {@H}permission {@C}to do this!"
  146. cancel the event
  147.  
  148. on command "ultrahardcore:jointeam":
  149. message "{@P}Anti-Cheat {@AF} {@C}You don't have {@H}permission {@C}to do this!"
  150.  
  151. on command "ultrahardcore:leaveteam":
  152. message "{@P}Anti-Cheat {@AF} {@C}You don't have {@H}permission {@C}to do this!"
  153.  
  154. on command "bukkit:me":
  155. message "{@P}Anti-Cheat {@AF} {@C}Your not {@H}smart enough {@C}to do this!"
  156. cancel the event
  157.  
  158. on command "leaveteam":
  159. cancel the event
  160. message "{@P}Anti-Cheat {@AF} {@C}You don't have {@H}permission {@C}to do this!"
  161.  
  162. on command "/msg **":
  163. cancel the event
  164. message "{@P}Anti-Cheat {@AF} {@C}Nice Try {@H}%command sender%!"
  165.  
  166. #=====================#
  167. # No Weather #
  168. #=====================#
  169. on weather change to rain or thunder:
  170. cancel event
  171.  
  172. #=====================#
  173. # Health Command #
  174. #=====================#
  175. command /h [<player>]:
  176. executable by: players
  177. trigger:
  178. arg 1 is not set:
  179. message "{@P}Health {@AF} {@C}Your health is {@H}%health of player*10% {@C}percent." to the player
  180. stop trigger
  181. message "{@P}Health {@AF} {@H}%arg 1%'s {@C}health is {@H}%health of arg 1*10% {@C}percent." to the player
  182.  
  183. on damage of player:
  184. wait 1 tick
  185. attacker is a player:
  186. projectile exists
  187. wait 1 tick
  188. victim is not dead:
  189. message "{@P}Health {@AF} {@C}The player you just shot is now at {@H}%health of victim*10% {@C}percent." to the attacker
  190.  
  191. #=====================#
  192. # Tpall Command #
  193. #=====================#
  194. command /tpalll [<text>]:
  195. description: Teleports all players to the player!
  196. permission: skript.op
  197. permission message: &cYou do not have permission to use this command young peasant
  198. usage: /tpalll [<player>]
  199. executable by: players and console
  200. trigger:
  201. if arg 1 is set:
  202. set {_TpAllPlayer} to arg 1
  203. if arg 1 is not set:
  204. set {_TpAllPlayer} to command sender
  205. command "/invis on"
  206. broadcast "{@P}UHC {@AF} {@C}Teleporting everyone to {@H}%{_TpAllPlayer}%..."
  207. loop all players:
  208. command "/playsound note.pling %loop-player%"
  209. loop all players:
  210. add loop-player to {Tpall::*}
  211. wait 3 ticks
  212. loop (size of (all players)) times:
  213. set {_Tplayer} to (random element out of {Tpall::*})
  214. teleport {_Tplayer} to {_TpAllPlayer}
  215. wait 2 ticks
  216. remove {_Tplayer} from {Tpall::*}
  217. loop all players:
  218. command "/playsound note.pling %loop-player%"
  219. broadcast "{@P}UHC: {@AF} {@C}All {@H}players {@C}were teleported!"
  220. command "/invis off"
  221. delete {Tpall::*}
  222.  
  223. #=====================#
  224. # Flint & Apple Rates #
  225. #=====================#
  226. command /apples [<text>] [<int>]:
  227. permission: skript.rates
  228. aliases: /applerates, /arates, /appler
  229. usage: /apples [<set:reset>] [<rate (1-100)>]
  230. trigger:
  231. if arg-1 is "reset":
  232. broadcast "{@P}Rates {@AF} {@H}Apple Rates {@C}set to {@H}Vanilla!"
  233. delete {rates::apples}
  234. loop all players:
  235. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  236. else if arg-1 is "set":
  237. if arg-2 is not set:
  238. send "{@P}Rates {@AF} {@C}You must specify a {@H}rate {@C}to set it to!" to command sender
  239. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  240. stop
  241. else if arg-2 is less than 0:
  242. send "{@P}Rates {@AF} {@C}No number lower than {@H}0!" to command sender
  243. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  244. stop
  245. else if arg-2 is greater than 100:
  246. send "{@P}Rates {@AF} {@C}No number higher than {@H}100!" to command sender
  247. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  248. stop
  249. set {rates::apples} to arg-2
  250. broadcast "{@P}Rates {@AF} {@H}Apple Rates {@C}set to {@H}%arg-2%%%!"
  251. loop all players:
  252. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  253. else:
  254. if {rates::apples} is set:
  255. send "{@P}Rates {@AF} {@C}Current Apple Rates&8: {@H}%{rates::apples}%%%!"
  256. else:
  257. send "{@P}Rates {@AF} {@C}Current Apple Rates&8: {@H}Vanilla"
  258. send "{@P}Rates {@AF} {@H}/apples [<set:reset>] [<rate (1-100)>]"
  259. command "/playsound random.explode %command sender% ~ ~ ~ 1 0.5 1"
  260.  
  261. command /flint [<text>] [<int>]:
  262. permission: skript.rates
  263. aliases: /flintrates, /flintr, /frates
  264. usage: /flintrates [<set:reset>] [<rate (1-100)>]
  265. trigger:
  266. if arg-1 is "reset":
  267. broadcast "{@P}Rates {@AF} {@H}Flint Rates {@C}set to {@H}Vanilla!"
  268. delete {rates::flint}
  269. loop all players:
  270. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  271. else if arg-1 is "set":
  272. if arg-2 is not set:
  273. send "{@P}Rates {@AF} {@C}You must specify a {@H}rate {@C}to set it to!" to command sender
  274. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  275. stop
  276. else if arg-2 is less than 0:
  277. send "{@P}Rates {@AF} {@C}No number lower than {@H}0!" to command sender
  278. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  279. stop
  280. else if arg-2 is greater than 100:
  281. send "{@P}Rates {@AF} {@C}No number higher than {@H}100!" to command sender
  282. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  283. stop
  284. set {rates::flint} to arg-2
  285. broadcast "{@P}Rates {@AF} {@H}Flint Rates {@C}set to {@H}%arg-2%%%!"
  286. loop all players:
  287. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  288. else:
  289. if {rates::flint} is set:
  290. send "{@P}Rates {@AF} {@C}Current Flint Rates&8: {@H}%{rates::flint}%%%"
  291. else:
  292. send "{@P}Rates {@AF} {@C}Current Flint Rates&8: {@H}Vanilla"
  293. send "{@P}Rates {@AF} {@H}/flint [<set:reset>] [<rate (1-100)>]"
  294. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  295.  
  296. on break of gravel:
  297. event-player's gamemode is survival
  298. world is not "pvparena" or "spawn" or "musim"
  299. if {rates::flint} is not set:
  300. stop
  301. cancel the event
  302. set the event-block to air
  303. set {_chance} to a random integer between 1 and 100
  304. if {_chance} is between -1 and {rates::flint}:
  305. drop 1 flint at event-block
  306. else:
  307. drop 1 gravel at event-block
  308.  
  309. on leaves decay:
  310. world is not "pvparena" or "spawn" or "musim"
  311. if {rates::apples} is not set:
  312. stop
  313. if event-block is oak leaves:
  314. chance of {rates::apples}%:
  315. drop 1 apple at event-block
  316. chance of 5%:
  317. drop 1 oak sapling at event-block
  318. else if event-block is spruce leaves:
  319. chance of 5%
  320. drop 1 spruce sapling at event-block
  321. else if event-block is birch leaves:
  322. chance of 5%
  323. drop 1 birch sapling at event-block
  324. else if event-block is jungle leaves:
  325. chance of 5%
  326. drop 1 jungle sapling at event-block
  327. else if event-block is acacia leaves:
  328. chance of {rates::apples}%:
  329. drop 1 apple at event-block
  330. chance of 5%:
  331. drop 1 acacia sapling at event-block
  332. else if event-block is dark oak leaves:
  333. chance of {rates::apples}%:
  334. drop 1 apple at event-block
  335. chance of 5%:
  336. drop 1 dark oak sapling at event-block
  337.  
  338. on break of leaves:
  339. event-player's gamemode is survival
  340. world is not "pvparena" or "spawn" or "musim"
  341. if {rates::apples} is not set:
  342. stop
  343. if event-block is not oak leaves or dark oak leaves:
  344. stop
  345. cancel the event
  346. set the event-block to air
  347. chance of {rates::apples}%:
  348. drop 1 apple at event-block
  349. if event-block is oak leaves:
  350. chance of 5%
  351. drop 1 oak sapling at event-block
  352. else if event-block is spruce leaves:
  353. chance of 5%
  354. drop 1 spruce sapling at event-block
  355. else if event-block is birch leaves:
  356. chance of 5%
  357. drop 1 birch sapling at event-block
  358. else if event-block is jungle leaves:
  359. chance of 5%
  360. drop 1 jungle sapling at event-block
  361. else if event-block is acacia leaves:
  362. chance of 5%
  363. drop 1 acacia sapling at event-block
  364. else if event-block is dark oak leaves:
  365. chance of 5%
  366. drop 1 dark oak sapling at event-block
  367.  
  368. #=====================#
  369. #Death Lighting Sound #
  370. #=====================#
  371. on death of player:
  372. set {_world} to world
  373. loop all players:
  374. loop-player is in "BuildingWorld":
  375. execute console command "/playsound ambient.weather.thunder %loop-player% ~ ~ ~ 1000000000 1 99999999"
  376.  
  377.  
  378. #=====================#
  379. # Better Join Chat #
  380. #=====================#
  381. on login:
  382. if player has the permission "join.op":
  383. set the join message to "&8[&aJoined&8] &a%player%"
  384. wait 10 ticks
  385. command "/sound note.harp"
  386. else:
  387. set the join message to "&8[&a»&8] &a%player%"
  388. wait 10 ticks
  389.  
  390.  
  391. on logout:
  392. if the player has the permission "join.op":
  393. set the logout message to "&8[&cLeft&8] &c%player%"
  394. wait 10 ticks
  395. command "/sound note.harp"
  396. else:
  397. set the logout message to "&8[&c«&8] &c%player%"
  398. wait 10 ticks
  399.  
  400. #=====================#
  401. # Play Sound To All #
  402. #=====================#
  403. command /sound <text>:
  404. description: /sound <sound> - Plays a sound to all players
  405. usage: /sound <sound>
  406. permission: skript.op
  407. trigger:
  408. loop all players:
  409. execute console command "/playsound %arg 1% %loop-player%"
  410.  
  411. #=====================#
  412. # Temple Bomb Checker #
  413. #=====================#
  414. on pressure plate:
  415. block at location 1 below event-block is sandstone
  416. block at location 2 below event-block is tnt
  417. add "&c%event-player%" to {_People::*}
  418. loop players in radius 10 around event-block:
  419. loop-player is not event-player
  420. add "&a%loop-player%" to {_People::*}
  421. if (size of ({_People::*})) is 1:
  422. set {_People::*} to "&c%event-player%&r and &ano one else."
  423. loop all players:
  424. loop-player is an op
  425. message "{@P}Staff {@AF} {@C}Temple Bomb &8| {@H}%{_People::*}%" to loop-player
  426. command "/playsound random.explode %loop-player%"
  427.  
  428. #=====================#
  429. # Clear Chat #
  430. #=====================#
  431. command /clearchat:
  432. aliases: /cc
  433. permission: skript.op
  434. trigger:
  435. loop 100 times:
  436. broadcast " "
  437. wait 1 tick
  438. broadcast "{@P}Chat {@AF} {@C}Chat Cleared!"
  439. loop all players:
  440. command "/playsound random.pop %loop-player%"
  441.  
  442. #=====================#
  443. # Clear Effects #
  444. #=====================#
  445. command /cleareffect [<player>]:
  446. description: /cleareffect [<player>] - Clears a player's effects
  447. usage: /cleareffect [<player>]
  448. permission: skript.cleareffect
  449. permission message: &8[&3&lEmberUHC&8]&7
  450. executable by: players and console
  451. trigger:
  452. if arg 1 is set:
  453. execute console command "/effect %arg 1% clear"
  454. send "{@P}UHC {@AF} {@C}Your effects have been {@H}cleared!" to arg 1
  455. else:
  456. loop all players:
  457. execute console command "/effect %loop-player% clear"
  458. broadcast "{@P}UHC {@AF} {@H}All player's {@C}effects have been cleared!"
  459.  
  460. #=====================#
  461. # Set Max Health #
  462. #=====================#
  463. command /maxhealth <integer> [<offlineplayer>]:
  464. usage: /maxhealth <health 1-100> [<player>]
  465. permission: skript.op
  466. trigger:
  467. if arg-1 is more than 5000:
  468. send "{@P}UHC {@AF} {@C}You cant do more than {@H}5000 health!"
  469. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  470. stop trigger
  471. else if arg-1 is less than 1:
  472. send "{@P}UHC {@AF} {@C}You cant do less than {@H}1 health!"
  473. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  474. stop trigger
  475. if arg-2 is not set:
  476. send "{@P}UHC {@AF} {@C}Your max health was set to {@H}%arg-1%!"
  477. set the command sender's max health to (arg-1/10)
  478. else if arg-2 is "*" or "all" or "**":
  479. loop all players:
  480. set the loop-player's max health to (arg-1/10)
  481. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  482. broadcast "{@P}UHC {@AF} {@H}Everyones {@C}max health is now set to {@H}%arg-1%!"
  483. else:
  484. if arg-2 is not online:
  485. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  486. send "{@P}UHC {@AF} {@C}You must specify a {@H}online player!"
  487. stop
  488. send "{@P}UHC {@AF} {@C}You set {@H}%arg-2%'s{@C} max health to {@H}%arg-1%!"
  489. send "{@P}UHC {@AF} {@H}Your {@C}max health is now set to {@H}%arg-1%" to arg-2
  490. set arg-2's max health to (arg-1/10)
  491. command "/playsound random.pop %command sender% ~ ~ ~ 1 0.5 1"
  492. command "/playsound random.pop %arg-2% ~ ~ ~ 1 0.5 1"
  493.  
  494. command /sethealth <int> [<offlineplayer>]:
  495. usage: /sethealth <health 1-100> [<player>]
  496. permission: skript.op
  497. trigger:
  498. if arg-1 is more than 5000:
  499. send "{@P}UHC {@AF} {@C}You cant do more than {@H}5000 health!"
  500. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  501. stop trigger
  502. else if arg-1 is less than 1:
  503. send "{@P}UHC {@AF} {@C}You cant do less than {@H}1 health!"
  504. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  505. stop trigger
  506. if arg-2 is not set:
  507. send "{@P}UHC {@AF} {@C}Your health was set to {@H}%arg-1%!"
  508. set the command sender's health to (arg-1/10)
  509. else if arg-2 is "*" or "all" or "**":
  510. loop all players:
  511. set the loop-player's health to (arg-1/10)
  512. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  513. broadcast "{@P}UHC {@AF} {@H}Everyones {@C}health is now set to {@H}%arg-1%!"
  514. else:
  515. if arg-2 is not online:
  516. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  517. send "{@P}UHC {@AF} {@C}You must specify a {@H}online player!"
  518. stop
  519. send "{@P}Essentias {@AF} {@C}You set {@H}%arg-2%'s{@C} health to {@H}%arg-1%!"
  520. send "{@P}UHC {@AF} {@H}Your {@C}health is now set to {@H}%arg-1%!" to arg-2
  521. set arg-2's health to arg-1/10
  522. command "/playsound random.pop %command sender% ~ ~ ~ 1 0.5 1"
  523. command "/playsound random.pop %arg-2% ~ ~ ~ 1 0.5 1"
  524.  
  525. #=====================#
  526. # Wolves Spawn Named #
  527. #=====================#
  528. on spawn of sheep:
  529. if biome at sheep is forest or forest hills:
  530. spawn 1 wolf at sheep
  531. set name of last spawned wolf to "Doggy"
  532. cancel event
  533.  
  534. #=====================#
  535. # Episode Timer #
  536. #=====================#
  537. command /ep <text>:
  538. description: skript.timer
  539. usage: /ep <on/off>
  540. permission: skript.scatter
  541. trigger:
  542. if arg 1 is "on":
  543. broadcast "{@P}Episode {@AF} {@C}The {@H}episode {@C}has now &aStarted!"
  544. set {EpTimer} to true
  545. set {EpN} to 0
  546. set {EpT} to 0
  547. if arg 1 is "off":
  548. broadcast "{@P}Episode {@AF} {@C}The {@H}episode {@C}has now &cEnded!"
  549. set {EpTimer} to false
  550. set {EpN} to 0
  551. set {EpT} to 0
  552. every 20 minutes:
  553. {EpTimer} is true
  554. add 1 to {EpN}
  555. add 20 to {EpT}
  556.  
  557. #=====================#
  558. # Box Command #
  559. #=====================#
  560. command /box <world>:
  561. trigger:
  562. if command sender does not have permission "box.create":
  563. send "You don't have permission to run this command!"
  564. set the command sender's gamemode to creative
  565. send "{@P}Box {@AF}{@C} Box in {@H}%arg-1%{@C} is being generated!"
  566. loop blocks in radius 20 around (location at 0, 220, 0 of the world (arg-1)):
  567. loop-block is air, lava or water
  568. if floor(loop-block's y-coordinate) is equal to 220:
  569. set {_dist} to floor(the distance between (the loop-block) and (location at 0, 220, 0 of the world (arg-1)))
  570. {_dist} is less than or equal to 15
  571. set the loop-block to glass
  572. add the loop-block to {box::*}
  573. else if floor(loop-block's y-coordinate) is greater than 220:
  574. set {_dist} to floor(the distance between (the loop-block) and (location at 0, 220, 0 of the world (arg-1)))
  575. {_dist} is 15
  576. set the loop-block to glass
  577. add the loop-block to {box::*}
  578. broadcast "{@P}Box {@AF}{@C} Box in {@H}%arg-1%{@C}made!"
  579. loop all players:
  580. teleport (loop-player) to (location at 0, 221, 0 of the world (arg-1))
  581.  
  582. command /boxdel:
  583. trigger:
  584. if command sender does not have permission "box.del":
  585. send "You don't have permission to run this command!"
  586. loop {box::*}:
  587. set (block at (loop-value)) to air
  588. remove the loop-value from {box::*}
  589. send "{@P}Box {@AF} {@C}All box's removed!"
  590.  
  591. on break:
  592. event-block is glass
  593. {box::*} contains event-block
  594. command sender's gamemode is not creative
  595. command sender does not have permission "box.break"
  596. cancel the event
  597.  
  598. #=====================#
  599. # Command Spy #
  600. #=====================#
  601. command /commandspy [<player>]:
  602. aliases: /cmdspy
  603. permission: skript.cmdspy
  604. trigger:
  605. if arg-1 is not set:
  606. set {_player} to command sender
  607. else:
  608. set {_player} to arg-1
  609. if {cmdstalk::%{_player}%} is not set:
  610. set {cmdstalk::%{_player}%} to true
  611. send "{@P}Command Spy {@AF} {@H}%command sender% &aenabled {@C}your command spy!" to {_player}
  612. loop all players:
  613. loop-player is not {_player}
  614. loop-player has the permission "skript.cmdspy"
  615. message "{@P}Command Spy {@AF} {@H}%command sender% &aenabled {@H}%{_player}%'s {@C}command spy!" to loop-player
  616. else:
  617. delete {cmdstalk::%{_player}%}
  618. send "{@P}Command Spy {@AF} {@H}%command sender% &cdisabled {@C}your command spy!" to {_player}
  619. loop all players:
  620. loop-player is not {_player}
  621. loop-player has the permission "skript.cmdspy"
  622. message "{@P}Command Spy {@AF} {@H}%command sender% &cdisabled {@C}%{_player}%'s command spy!" to loop-player
  623.  
  624.  
  625.  
  626. on command:
  627. "%full command%" is not "pvp"
  628. command sender is not console
  629. if {spec::%command sender%} is true:
  630. "%command%" is "t" or "tp"
  631. stop trigger
  632. "%command%" is not "ac", "helpp", "help", "helpop", "bc", "heal", "bid", "rate", "gc", " ", "/", "picktorch", "feed", "r", "reply", "sc", "ci", "clearall", "broadcast", "bukkit:me", "bukkit:kill", "team", "tc", "teamcoords", "cmdspy", "commandspy", or "kill"
  633. loop all players:
  634. {cmdstalk::%loop-player%} is true
  635. loop-player is not command sender
  636. message "{@P}CMD &8| {@H}%command sender% {@AF} {@C}/%full command%" to loop-player
  637.  
  638. #=====================#
  639. # Mute Command #
  640. #=====================#
  641. command /mute <text> [<text>]:
  642. description: Mutes/unmutes a player
  643. usage: /mute <player/broadcast> [<reason>]
  644. permission: skript.mute
  645. permission message: &cYou don't have permission to use this command
  646. executable by: players and console
  647. trigger:
  648. if arg 1 is "broadcast":
  649. if arg 2 is "op":
  650. set {mutebc} to "op"
  651. message "{@P}Mute {@AF} {@C}Broadcast set to {@H}op!" to command sender
  652. else if arg 2 is "all":
  653. set {mutebc} to "all"
  654. message "{@P}Mute {@AF} {@C}Broadcast set to {@H}all!" to command sender
  655. else if arg 2 is "none":
  656. set {mutebc} to "none"
  657. message "{@P}Mute {@AF} {@C}Broadcast set to {@H}none!" to command sender
  658. else:
  659. message "{@P}Mute {@AF} {@C}Please set it to {@H}op, all or none!" to command sender
  660. else:
  661. if {muted.%arg 1%} is not set:
  662. set {muted.%arg 1%} to true
  663. if {mutebc} is "op":
  664. loop all players:
  665. loop-player is op
  666. message "{@P}Mute {@AF} {@H}%arg 1% {@C}was muted by {@H}%player%!" to loop-player
  667. else if {mutebc} is "all":
  668. if arg-2 is not set:
  669. broadcast "{@P}Mute {@AF} {@H}%arg 1%{@C} was muted by {@H}%player%!"
  670. loop all players:
  671. command "/playsound random.orb %loop-player% ~ ~ ~ 1 0.5 1"
  672. if arg-2 is set:
  673. broadcast "{@P}Mute {@AF} {@H}%arg 1%{@C} was muted by {@H}%player% {@C}for {@H}%arg-2%!"
  674. loop all players:
  675. command "/playsound random.orb %loop-player% ~ ~ ~ 1 0.5 1"
  676.  
  677. else:
  678. message "{@P}Mute {@AF} {@H}%arg 1% muted by %player%" to command sender
  679. else:
  680. delete {muted.%arg 1%}
  681. if {mutebc} is "op":
  682. loop all players:
  683. loop-player is op
  684. message "{@P}Mute {@AF} {@H}%arg 1% {@C}unmuted by {@H}%player%!" to loop-player
  685. else if {mutebc} is "all":
  686. broadcast "{@P}Mute {@AF} {@H}%arg 1% {@C}unmuted by {@H}%player%!"
  687. else:
  688. message "{@P}Mute {@AF} {@H}%arg 1% {@C}unmuted by {@H}%player%!" to command sender
  689.  
  690. on chat:
  691. {muted.%player%} is true
  692. cancel the event
  693. message "{@P}Mute {@AF} {@C}You are muted! To request to be unmuted, do {@H}/unmuteme"
  694.  
  695. on command:
  696. command is equal to "me", "bukkit:me", "minecraft:me", "afk", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper"
  697. {muted.%player%} is true
  698. cancel the event
  699. message "{@P}Mute {@AF} {@C}You are {@H}muted! {@C}To request to be {@H}unmuted, {@C}do {@H}/unmuteme! {@C}You may still do {@H}/helpop!"
  700.  
  701. command /unmuteme [<text>]:
  702. trigger:
  703. {muted.%player%} is true
  704. if {cooldown.%player%} is not set:
  705. if arg 1 is not set:
  706. message "{@P}Mute {@AF} {@C}Do {@H}/unmuteme <message> {@C}to request to be unmuted. There is a {@H}5 minute {@C}cooldown on this command." to command sender
  707. else:
  708. loop all players:
  709. loop-player has permission "skript.mute"
  710. message "{@P} {@AF} {@H}%command sender% {@C}requests an unmute for {@H}%arg 1%!" to loop-player
  711. message "{@P}Mute {@AF} {@C}Request sent. There is a {@H}5 minute cooldown {@C}on this command" to command sender
  712. set {cooldown.%player%} to true
  713. wait for 5 minutes
  714. delete {cooldown.%player%}
  715. else:
  716. message "{@P}Mute {@AF} {@C}This command is on {@H}cooldown {@C}for you"
  717.  
  718. command /muteall:
  719. description: Mutes/unmutes all players
  720. usage: /muteall
  721. permission: skript.mute
  722. permission message: §4You don't have permission to use this command
  723. executable by: players and console
  724. trigger:
  725. if {muteall} is not set:
  726. set {muteall} to true
  727. broadcast "{@P}Mute {@AF} {@C}All players {@H}muted!"
  728. else:
  729. delete {muteall}
  730. broadcast "{@P}Mute {@AF} {@C}All players {@H}unmuted!"
  731.  
  732. on chat:
  733. {muteall} is true
  734. player does not have permission "skript.bypass"
  735. cancel the event
  736. message "{@P}Mute {@AF} {@C}All players are {@H}muted!"
  737.  
  738. on command:
  739. command is equal to "me", "bukkit:me", "minecraft:me", "afk", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper"
  740. {muteall} is true
  741. player does not have permission "skript.bypass"
  742. cancel the event
  743. message "{@P}Mute {@AF} {@C}All players are {@H}muted!"
  744.  
  745. #=====================#
  746. # Crash Command #
  747. #=====================#
  748. command /crash <player>:
  749. permission: skript.crash
  750. trigger:
  751. if arg-1 is not "NatePlays":
  752. message "{@P}Crash {@AF} {@C}Crashing {@H}%arg 1%..."
  753. set maximum health of arg 1 to 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  754. set gamemode of arg 1 to survival
  755. wait 20 ticks
  756. set maximum health of arg 1 to 10
  757.  
  758. command /megacrash <player>:
  759. permission: skript.crash
  760. trigger:
  761. message "{@P}Crash {@AF} {@C}Mega Crashing {@H}%arg 1%..."
  762. if arg-1 is not "NatePlays":
  763. loop 1000 times:
  764. command "/crash %arg-1%"
  765. wait 1 tick
  766.  
  767. #=====================#
  768. # Spam Command #
  769. #=====================#
  770. command /spam <integer> <text>:
  771. permission: skript.spam
  772. trigger:
  773. loop arg-1 times:
  774. command "%arg-2%"
  775. wait 1 tick
  776.  
  777.  
  778. #=====================#
  779. # Better Heal #
  780. #=====================#
  781. command /heal [<offlineplayer>]:
  782. usage: /heal [<player>]
  783. permission: skript.op
  784. trigger:
  785. if arg-1 is not set:
  786. heal the command sender
  787. send "{@P}UHC {@AF} {@C}You healed {@H}yourself!"
  788. loop all ops:
  789. loop-player is not command sender
  790. send "{@P}UHC {@AF} {@H}%command sender%{@C} healed {@H}himself/herself!" to loop-player
  791. command "/playsound random.pop %player% ~ ~ ~ 1 0.5 1"
  792. if arg-1 is set:
  793. if arg-1 is "*" or "all" or "**":
  794. heal all players
  795. broadcast "{@P}UHC {@AF} {@H}%command sender%{@C} healed all players!"
  796. loop all players:
  797. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  798. else:
  799. if arg-1 is not online:
  800. send "{@P}UHC {@AF} {@C}You need to specify a {@H}online player!"
  801. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  802. stop
  803. heal arg-1
  804. send "{@P}UHC {@AF} {@C}Healed by {@H}%command sender%!" to arg-1
  805. loop all ops:
  806. loop-player is not command sender
  807. loop-player is not arg-1
  808. send "{@P}UHC {@AF} {@H}%command sender% {@C}healed {@H}%arg-1%" to loop-player
  809. command "/playsound random.pop %arg-1% ~ ~ ~ 1 0.5 1"
  810. send "{@P}UHC {@AF} {@H} {@C}You healed {@H}%arg-1%"
  811. command "/playsound random.pop %command sender% ~ ~ ~ 1 0.5 1"
  812.  
  813. #=====================#
  814. # Better Kill #
  815. #=====================#
  816. command /kill [<offlineplayer>]:
  817. usage: /kill [<player>]
  818. permission: skript.op
  819. trigger:
  820. if arg-1 is not set:
  821. send "{@P}UHC {@AF} {@H}You {@C}killed yourself!"
  822. kill the command sender
  823. command "/playsound random.break %player% ~ ~ ~ 1 0.5 1"
  824. loop all ops:
  825. loop-player is not command sender
  826. send "{@P}UHC {@AF} {@H}%command sender%{@C} killed {@H}himself/herself!" to loop-player
  827. if arg-1 is set:
  828. if arg-1 is "*" or "all" or "**":
  829. kill all players
  830. broadcast "{@P}UHC {@AF} {@H}%command sender%{@C} killed all players!"
  831. loop all players:
  832. command "/playsound random.break %loop-player% ~ ~ ~ 1 0.5 1"
  833. else:
  834. if arg-1 is not online:
  835. send "{@P}UHC {@AF} {@C}You need to specify a {@H}online player!"
  836. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  837. stop
  838. kill arg-1
  839. loop all ops:
  840. loop-player is not command sender
  841. loop-player is not arg-1
  842. send "{@P}UHC {@AF} {@H}%command sender% {@C}killed {@H}%arg-1%!" to loop-player
  843. command "/playsound random.break %arg-1% ~ ~ ~ 1 0.5 1"
  844. send "{@P}UHC {@AF} {@C}You killed {@H}%arg-1%!"
  845. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  846.  
  847. #=====================#
  848. # Better Feed #
  849. #=====================#
  850. command /feed [<offlineplayer>]:
  851. usage: /feed [<player>]
  852. permission: skript.op
  853. trigger:
  854. if arg-1 is not set:
  855. set the command sender's food level to 10
  856. send "{@P}UHC {@AF} {@C}Fed to full hunger!"
  857. loop all ops:
  858. loop-player is not command sender
  859. send "{@P}UHC {@AF} {@H}%command sender%{@C} fed {@H}himself/herself!" to loop-player
  860. command "/playsound random.pop %player% ~ ~ ~ 1 0.5 1"
  861. if arg-1 is set:
  862. if arg-1 is "*" or "all" or "**":
  863. loop all players:
  864. set the loop-player's food level to 10
  865. broadcast "{@P}UHC {@AF} {@H}%command sender%{@C} fed all players!"
  866. loop all players:
  867. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  868. else:
  869. if arg-1 is not online:
  870. send "{@P}UHC {@AF} {@C}You need to specify a {@H}online player!"
  871. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  872. stop
  873. set arg-1's food level to 10
  874. send "{@P}UHC {@AF} {@C}Fed by {@H}%command sender%!" to arg-1
  875. loop all ops:
  876. loop-player is not command sender
  877. loop-player is not arg-1
  878. send "{@P}UHC {@AF} {@H}%command sender%{@C} fed {@H}%arg-1%!" to loop-player
  879. command "/playsound random.pop %arg-1% ~ ~ ~ 1 0.5 1"
  880. send "{@P}UHC {@AF} {@C}You fed {@H}%arg-1%!"
  881. command "/playsound random.pop %command sender% ~ ~ ~ 1 0.5 1"
  882.  
  883. #=====================#
  884. # Better Ci #
  885. #=====================#
  886. command /ci [<offlineplayer>]:
  887. usage: /ci [<player>]
  888. permission: skript.op
  889. trigger:
  890. if arg-1 is not set:
  891. clear command sender's inventory
  892. send "{@P}UHC {@AF} {@C}Inventory Cleared!"
  893. command "/playsound random.pop %player% ~ ~ ~ 1 0.5 1"
  894. loop all ops:
  895. loop-player is not command sender
  896. send "{@P}UHC {@AF} {@H}%command sender% {@C}cleared {@H}his/her {@C}inventory!" to loop-player
  897. if arg-1 is set:
  898. if arg-1 is "*" or "all" or "**":
  899. loop all players:
  900. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  901. if loop-player does not have permission "skript.op":
  902. clear loop-player's inventory
  903. broadcast "{@P}UHC {@AF} {@H}%command sender%{@C} cleared all players inventories!"
  904. else:
  905. if arg-1 is not online:
  906. send "{@P} {@AF} {@C}You need to specify a {@H}online player!"
  907. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  908. stop
  909. clear inventory of arg-1
  910. send "{@P}UHC {@AF} {@C}Your inventory was cleared by {@H}%command sender%!" to arg-1
  911. command "/playsound random.pop %arg-1% ~ ~ ~ 1 0.5 1"
  912. loop all ops:
  913. loop-player is not command sender
  914. loop-player is not arg-1
  915. send "{@P}UHC {@AF} {@H}%command sender%{@C} cleared {@H}%arg-1%'s{@C} inventory!" to loop-player
  916. send "{@P}UHC {@AF} {@C}You cleared {@H}%arg-1%'s{@C} inventory!"
  917. command "/playsound random.pop %command sender% ~ ~ ~ 1 0.5 1"
  918.  
  919. command /clearall:
  920. permission: skript.op
  921. trigger:
  922. broadcast "{@P}UHC {@AF} {@H}Everyone's {@C}inventory has been cleared."
  923. clear the inventory of all players
  924. loop all players:
  925. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement