ArtzifyHD

Hub Skript V3

Jul 20th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.33 KB | None | 0 0
  1. # Skript Hub Version 1.3.1 ////////////////////////////////////////
  2.  
  3. options:
  4.  
  5. # Do not touch before brackets in Options unless you know what you are doing!
  6. # The Server Name for messages (with colour codes) Also include whatever arrow you would like and/or brackets.
  7. ServerName: &7[&cTNT&4Spleef&7] &8»&r
  8. # The world time that you want it to always be (default 12:00 or noon)
  9. Time: 12:00
  10. # Your world name to change time/weather for (default name world)
  11. WorldName: hub
  12. # The colour you want your messages to be (text) by using color codes (Default 7 or gray)
  13. # (find a website like http://minecraft.tools/en/color-code.php to see the codes)
  14. # I am not responsible for what this website may contain.
  15. TextColour: 7
  16.  
  17. # ///////////////The Skript : Do not touch unless you know what you are doing!///////////////////
  18. variables:
  19. {jumpboost.preference.%player%} = "False"
  20. {speedboost.preference.%player%} = "False"
  21. {vanish.preference.%player%} = "False"
  22. {lightning.protection} = "False"
  23. {explosion.protection} = "False"
  24. {hunger.protection} = "True"
  25. {damage.protection} = "True"
  26. {drop.protection} = "True"
  27. {inventoryclick.protection} = "False"
  28. {mob.protection} = "True"
  29. command /jumpboost [<player>]:
  30. permission: skripthub.jumpboost
  31. permission message: &cNo Permission!
  32. trigger:
  33. if argument 1 is not set:
  34. if {jumpboost.preference.%player%} is "True":
  35. set {jumpboost.preference.%player%} to "False"
  36. message "{@ServerName} &{@TextColour}Disabled jump boost!"
  37. else:
  38. set {jumpboost.preference.%player%} to "True"
  39. message "{@ServerName} &{@TextColour}Enabled jump boost!"
  40. else:
  41. if player has permission "skripthub.jumpboost.others":
  42. if arg 1 is online:
  43. if {jumpboost.preference.%arg 1%} is "True":
  44. set {jumpboost.preference.%arg 1%} to "False"
  45. message "{@ServerName} &{@TextColour}Disabled jump boost for player!"
  46. else:
  47. set {jumpboost.preference.%arg 1%} to "True"
  48. message "{@ServerName} &{@TextColour}Enabled jump boost for player!"
  49. else:
  50. message "&cError: Not online!"
  51. else:
  52. if {jumpboost.preference.%player%} is "True":
  53. set {jumpboost.preference.%player%} to "False"
  54. message "{@ServerName} &{@TextColour}Disabled jump boost!"
  55. else:
  56. set {jumpboost.preference.%player%} to "True"
  57. message "{@ServerName} &{@TextColour}Enabled jump boost!"
  58. command /speedboost [<player>]:
  59. permission: skripthub.speedboost
  60. permission message: &cNo Permission!
  61. trigger:
  62. if argument 1 is not set:
  63. if {speedboost.preference.%player%} is "True":
  64. set {speedboost.preference.%player%} to "False"
  65. message "{@ServerName} &{@TextColour}Disabled speed boost!"
  66. else:
  67. set {speedboost.preference.%player%} to "True"
  68. message "{@ServerName} &{@TextColour}Enabled speed boost!"
  69. else:
  70. if player has permission "skripthub.speedboost.others":
  71. if arg 1 is online:
  72. if {speedboost.preference.%arg 1%} is "True":
  73. set {speedboost.preference.%arg 1%} to "False"
  74. message "{@ServerName} &{@TextColour}Disabled speed boost for player!"
  75. else:
  76. set {speedboost.preference.%arg 1%} to "True"
  77. message "{@ServerName} &{@TextColour}Enabled speed boost for player!"
  78. else:
  79. message "&cError: Not online!"
  80. else:
  81. if {speedboost.preference.%player%} is "True":
  82. set {speedboost.preference.%player%} to "False"
  83. message "{@ServerName} &{@TextColour}Disabled speed boost!"
  84. else:
  85. set {speedboost.preference.%player%} to "True"
  86. message "{@ServerName} &{@TextColour}Enabled speed boost!"
  87. every 20 ticks:
  88. if weather in "{@WorldName}" is not clear:
  89. set weather in "{@WorldName}" to clear
  90. if time in "{@WorldName}" is not {@Time}:
  91. set time in "{@WorldName}" to {@Time}
  92. loop all players:
  93. if {jumpboost.preference.%loop-player%} is "True":
  94. if loop-player has jump boost:
  95. stop
  96. else:
  97. apply jump boost 3 to the loop-player for 999 days
  98. if {jumpboost.preference.%loop-player%} is "False":
  99. remove jump boost from loop-player
  100. if {speedboost.preference.%loop-player%} is "True":
  101. if loop-player has speed:
  102. stop
  103. else:
  104. apply speed 3 to the loop-player for 999 days
  105. if {speedboost.preference.%loop-player%} is "False":
  106. remove speed from loop-player
  107. if {vanish.preference.%loop-player%} is "False":
  108. reveal all players from loop-player
  109. if {vanish.preference.%loop-player%} is "True":
  110. hide all players from loop-player
  111. heal the loop-player
  112. if y coordinate of loop-player is less than -20:
  113. teleport loop-player to {spawn.location}
  114. command /setspawn:
  115. permission: skripthub.setspawn
  116. permission message: &cNo Permission!
  117. trigger:
  118. set {spawn.location} to location of player
  119. message "{@ServerName} &{@TextColour}Spawn Set!"
  120. command /spawn:
  121. permission: skripthub.spawn
  122. permission message: &cNo Permission!
  123. trigger:
  124. if {spawn.location} is not set:
  125. message "{@ServerName} &{@TextColour}No spawn!"
  126. if {spawn.location} is set:
  127. teleport player to {spawn.location}
  128. message "{@ServerName} &{@TextColour}Teleported to spawn!"
  129. command /skripthub [<string>] [<string>]:
  130. permission: skripthub.admin
  131. permission message: &cNo Permission!
  132. trigger:
  133. if argument 1 is "antilightning":
  134. if argument 2 is "on":
  135. set {lightning.protection} to "True"
  136. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Lightning protection on!"
  137. else if argument 2 is "off":
  138. set {lightning.protection} to "False"
  139. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Lightning protection off!"
  140. else:
  141. message "&cIncorrect Syntax: Please specify [on/off]"
  142. if argument 1 is "antiexplosion":
  143. if argument 2 is "on":
  144. set {explosion.protection} to "True"
  145. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Explosion protection on!"
  146. else if argument 2 is "off":
  147. set {explosion.protection} to "False"
  148. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Explosion protection off!"
  149. else:
  150. message "&cIncorrect Syntax: Please specify [on/off]"
  151. if argument 1 is "antihunger":
  152. if argument 2 is "on":
  153. set {hunger.protection} to "True"
  154. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Hunger protection on!"
  155. else if argument 2 is "off":
  156. set {hunger.protection} to "False"
  157. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Hunger protection off!"
  158. else:
  159. message "&cIncorrect Syntax: Please specify [on/off]"
  160. if argument 1 is "antidamage":
  161. if argument 2 is "on":
  162. set {damage.protection} to "True"
  163. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Damage protection on!"
  164. else if argument 2 is "off":
  165. set {damage.protection} to "False"
  166. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Damage protection off!"
  167. else:
  168. message "&cIncorrect Syntax: Please specify [on/off]"
  169. if argument 1 is "antidrop":
  170. if argument 2 is "on":
  171. set {drop.protection} to "True"
  172. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Drop protection on!"
  173. else if argument 2 is "off":
  174. set {drop.protection} to "False"
  175. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Drop protection off!"
  176. else:
  177. message "&cIncorrect Syntax: Please specify [on/off]"
  178. if argument 1 is "antiinventoryclick":
  179. if argument 2 is "on":
  180. set {inventoryclick.protection} to "True"
  181. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Click protection on!"
  182. else if argument 2 is "off":
  183. set {inventoryclick.protection} to "False"
  184. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Click protection off!"
  185. else:
  186. message "&cIncorrect Syntax: Please specify [on/off]"
  187. if argument 1 is "antimobspawn":
  188. if argument 2 is "on":
  189. set {mob.protection} to "True"
  190. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Mob protection on!"
  191. else if argument 2 is "off":
  192. set {mob.protection} to "False"
  193. message "&{@TextColour}&lSkriptHub &8» &{@TextColour}Mob protection off!"
  194. else:
  195. message "&cIncorrect Syntax: Please specify [on/off]"
  196. if argument 1 is "boostgui" or "boostmenu":
  197. open chest with 1 rows named "&{@TextColour}Boosts" to player
  198. format slot 0 of player with feather named "&f&lSpeedboost" with lore "&7Click to toggle" to close then run [execute player command "speedboost"]
  199. format slot 1 of player with potion of:8235 named "&a&lJumpboost" with lore "&7Click to toggle" to close then run [execute player command "jumpboost"]
  200. format slot 1 of player with redstone block named "&4&lExit" with lore "&7Click to close" to close
  201. if argument 1 is "admingui" or "adminmenu":
  202. open chest with 3 rows named "&7Options" to player
  203. format slot 0 of player with gold ingot named "&e&lAnti-Lightning" to be unstealable
  204. format slot 1 of player with tnt named "&c&lAnti-Explosion" with lore "&7Click to toggle" to be unstealable
  205. format slot 2 of player with steak named "&7&lAnti-Hunger" with lore "&7Click to toggle" to be unstealable
  206. format slot 3 of player with diamond sword named "&c&lAnti-Damage" with lore "&7Click to toggle" to be unstealable
  207. format slot 4 of player with chest named "&7&lAnti-Drop" with lore "&7Click to toggle" to be unstealable
  208. format slot 5 of player with map named "&c&lAnti-Inventory Click" with lore "&7Click to toggle" to be unstealable
  209. format slot 6 of player with spawn egg:50 named "&f&lAnti-Mob Spawn" with lore "&7Click to toggle" to be unstealable
  210. format slot 7 of player with stained glass pane:7 named " " to close
  211. format slot 8 of player with stained glass pane:7 named " " to close
  212. format slot 9 of player with stained glass pane:5 named "&e&lAnti-Lightning" with lore "&7Click to turn on" to close then run [execute player command "skripthub antilightning on"]
  213. format slot 10 of player with stained glass pane:5 named "&c&lAnti-Explosion" with lore "&7Click to turn on" to close then run [execute player command "skripthub antiexplosion on"]
  214. format slot 11 of player with stained glass pane:5 named "&7&lAnti-Hunger" with lore "&7Click to turn on" to close then run [execute player command "skripthub antihunger on"]
  215. format slot 12 of player with stained glass pane:5 named "&c&lAnti-Damage" with lore "&7Click to turn on" to close then run [execute player command "skripthub antidamage on"]
  216. format slot 13 of player with stained glass pane:5 named "&7&lAnti-Drop" with lore "&7Click to turn on" to close then run [execute player command "skripthub antidrop on"]
  217. format slot 14 of player with stained glass pane:5 named "&c&lAnti-Inventory Click" with lore "&7Click to turn on" to close then run [execute player command "skripthub antiinventoryclick on"]
  218. format slot 15 of player with stained glass pane:5 named "&f&lAnti-Mob Spawn" with lore "&7Click to turn on" to close then run [execute player command "skripthub antimobspawn on"]
  219. format slot 16 of player with stained glass pane:7 named " " to close
  220. format slot 17 of player with stained glass pane:7 named " " to close
  221. format slot 18 of player with stained glass pane:14 named "&e&lAnti-Lightning" with lore "&7Click to turn off" to close then run [execute player command "skripthub antilightning off"]
  222. format slot 19 of player with stained glass pane:14 named "&c&lAnti-Explosion" with lore "&7Click to turn off" to close then run [execute player command "skripthub antiexplosion off"]
  223. format slot 20 of player with stained glass pane:14 named "&7&lAnti-Hunger" with lore "&7Click to turn off" to close then run [execute player command "skripthub antihunger off"]
  224. format slot 21 of player with stained glass pane:14 named "&c&lAnti-Damage" with lore "&7Click to turn off" to close then run [execute player command "skripthub antidamage off"]
  225. format slot 22 of player with stained glass pane:14 named "&7&lAnti-Drop" with lore "&7Click to turn off" to close then run [execute player command "skripthub antidrop off"]
  226. format slot 23 of player with stained glass pane:14 named "&c&lAnti-Inventory Click" with lore "&7Click to turn off" to close then run [execute player command "skripthub antiinventoryclick off"]
  227. format slot 24 of player with stained glass pane:14 named "&f&lAnti-Mob Spawn" with lore "&7Click to turn off" to close then run [execute player command "skripthub antimobspawn off"]
  228. format slot 25 of player with stained glass pane:7 named " " to close
  229. format slot 26 of player with redstone block named "&4&lExit" with lore "&7Click to close" to close
  230. if argument 1 is "version":
  231. message "&7&lSkriptHub &c1.2 &8» &7https://www.spigotmc.org/resources/skript-hub-skript.16151/"
  232. if argument 1 is not set:
  233. message "&cIncorrect Syntax: Please use /skripthub [antilightning|antiexplosion|antihunger|antidamage|antidrop|antiinventoryclick|antimobspawn|boostgui/boostmenu|admingui/adminmenu|version] [on/off]"
  234. on inventory click:
  235. if {inventoryclick.protection} is "True":
  236. if player has permission "skripthub.click":
  237. stop
  238. else:
  239. cancel event
  240. else if {inventoryclick.protection} is "False":
  241. stop
  242. if {inventoryclick.protection} is not set:
  243. stop
  244. on drop:
  245. if {drop.protection} is "True":
  246. if player has permission "skripthub.drop":
  247. stop
  248. else:
  249. cancel event
  250. else if {drop.protection} is "False":
  251. stop
  252. if {drop.protection} is not set:
  253. stop
  254. on damage:
  255. if {damage.protection} is "True":
  256. cancel event
  257. else if {damage.protection} is "False":
  258. stop
  259. if {damage.protection} is not set:
  260. stop
  261. on hunger bar change:
  262. if {hunger.protection} is "True":
  263. cancel event
  264. add 20 to the player's hunger bar
  265. else if {hunger.protection} is "False":
  266. stop
  267. if {hunger.protection} is not set:
  268. stop
  269. on lightning strike:
  270. if {lightning.protection} is "True":
  271. cancel event
  272. else if {lightning.protection} is "False":
  273. stop
  274. if {lightning.protection} is not set:
  275. stop
  276. on explosion:
  277. if {explosion.protection} is "True":
  278. cancel event
  279. else if {explosion.protection} is "False":
  280. stop
  281. if {explosion.protection} is not set:
  282. stop
  283. on spawn:
  284. if {mob.protection} is "True":
  285. cancel event
  286. else if {mob.protection} is "False":
  287. stop
  288. if {mob.protection} is not set:
  289. stop
  290. command /vanishplayers:
  291. permission: skripthub.vanish
  292. permission message: &cNo Permission!
  293. trigger:
  294. if {vanish.preference.%player%} is "False":
  295. set {vanish.preference.%player%} to "True"
  296. message "{@ServerName} &{@TextColour}Vanished players!"
  297. else:
  298. set {vanish.preference.%player%} to "False"
  299. message "{@ServerName} &{@TextColour}Unvanished players!"
  300. command /boosts:
  301. permission: skripthub.boosts
  302. permission message: &cNo Permission!
  303. trigger:
  304. open chest with 1 rows named "&7Boosts" to player
  305. format slot 0 of player with feather named "&f&lSpeedboost" with lore "&7Click to toggle" to close then run [execute player command "speedboost"]
  306. format slot 1 of player with potion of:8235 named "&a&lJumpboost" with lore "&7Click to toggle" to close then run [execute player command "jumpboost"]
  307. format slot 2 of player with stained glass pane:7 named " " to close
  308. format slot 3 of player with stained glass pane:7 named " " to close
  309. format slot 4 of player with stained glass pane:7 named " " to close
  310. format slot 5 of player with stained glass pane:7 named " " to close
  311. format slot 6 of player with stained glass pane:7 named " " to close
  312. format slot 7 of player with stained glass pane:7 named " " to close
  313. format slot 8 of player with redstone block named "&4&lExit" with lore "&7Click to close" to close
Advertisement
Add Comment
Please, Sign In to add comment