1c7

Here

1c7
Mar 27th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. options:
  2. Prefix: &3[Spotix]&b
  3. #
  4. # Admin Commands
  5. #
  6. command /gm [<text>]:
  7. trigger:
  8. if player has permission "essentials.gm":
  9. if arg-1 is "c":
  10. set player's gamemode to creative
  11. send "{@Prefix} Gamemode set to creative."
  12. if arg-1 is "s":
  13. set player's gamemode to survival
  14. send "{@Prefix} Gamemode set to survival."
  15. if arg-1 is "sp":
  16. set player's gamemode to spectator
  17. send "{@Prefix} Gamemode set to spectator."
  18. if arg-1 is "a":
  19. set player's gamemode to adventure
  20. send "{@Prefix} Gamemode set to adventure."
  21. else:
  22. send "{@Prefix} You do not have the permission."
  23. command /fly:
  24. trigger:
  25. if player has permission "essentials.fly":
  26. if {essentials.fly::%player's uuid%} is not set:
  27. set {essentials.fly::%player's uuid%} to true
  28. else if {essentials.fly::%player's uuid%} is false:
  29. set player's flight mode to true
  30. send "{@Prefix} Flight mode is now on."
  31. set {essentials.fly::%player's uuid%} to true
  32. else if {essentials.fly::%player's uuid%} is true:
  33. set player's flight mode to false
  34. send "{@Prefix} Flight mode is now off."
  35. set {essentials.fly::%player's uuid%} to false
  36. else:
  37. send "{@Prefix} You do not have the permission."
  38. command /setspawn:
  39. permission: rank.admin
  40. trigger:
  41. set {spawn} to location of player
  42. send "&3[Admin] &bSpawn successfully set!"
  43.  
  44. command /team [<offlineplayer>] [<text>]:
  45. permission: rank.admin
  46. trigger:
  47. if arg 1 is set:
  48. if arg 2 is set:
  49. if arg 2 is "Blue":
  50. set {rank.%UUID of arg 1%} to "Blue"
  51. send "&3%arg 1%'s &bteam has been changed to &9Blue"
  52. send "&bYour team has been changed to &9Blue" to arg 1
  53. set arg 1 tab name to "&9&lBlue &8| &9%arg 1%"
  54. if arg 2 is "Pink":
  55. set {rank.%UUID of arg 1%} to "Pink"
  56. send "&3%arg 1%'s &bteam has been changed to &dPink"
  57. send "&bYour team has been changed to &dPink" to arg 1
  58. set arg 1 tab name to "&d&lPink &8| &d%arg 1%"
  59. if arg 2 is "Yellow":
  60. set {rank.%UUID of arg 1%} to "Yellow"
  61. send "&3%arg 1%'s &bteam has been changed to &eYellow"
  62. send "&bYour team has been changed to &eYellow" to arg 1
  63. set arg 1 tab name to "&e&lYellow &8| &e%arg 1%"
  64. if arg 2 is "Purple":
  65. set {rank.%UUID of arg 1%} to "Purple"
  66. send "&3%arg 1%'s &bteam has been changed to &5Purple"
  67. send "&bYour team has been changed to &5Purple" to arg 1
  68. set arg 1 tab name to "&5&lPurple &8| &5%arg 1%"
  69. if arg 2 is "Default":
  70. set {rank.%UUID of arg 1%} to "Default"
  71. send "&3%arg 1%'s &bteam has been changed to &7Default"
  72. send "&bYour team has been changed to &7Default" to arg 1
  73. set arg 1 tab name to "&7%arg 1%"
  74. else:
  75. send "&c/team %arg 1% <team>"
  76. else:
  77. send "&c/team <player> <team>"
  78.  
  79. on load:
  80. loop all players:
  81. if loop-player is op:
  82. send "{@Prefix} Skript Reloaded" to loop-players
  83.  
  84. command /broadcast [<text>]:
  85. permission: bc
  86. trigger:
  87. if arg-1 is set:
  88. broadcast "{@Prefix} %colored arg-1%"
  89. else:
  90. send "{@Prefix} Enter a message to broadcast."
  91.  
  92. command /day:
  93. trigger:
  94. if {vote.%player's uuid%} is not set:
  95. if time in world is night:
  96. add 1 to {votes}
  97. set {vote.%player's uuid%} to true
  98. send "{@Prefix} You have voted for day."
  99. else:
  100. send "{@Prefix} It is not night time!"
  101. else:
  102. send "{@Prefix} You have already voted."
  103.  
  104. every 5 seconds:
  105. set {players} to amount of players in world "world"
  106. set {neededvotes} to {players}/2
  107. if {votes} is greater than or equal to {neededvotes}:
  108. console command "time set day"
  109. broadcast "{@Prefix} Time has been set to day with %{votes}% votes."
  110. delete {votes}
  111. loop all players:
  112. delete {vote.%loop-player's uuid%}
  113. #
  114. # Default Commands
  115. #
  116. command /stats [<offlineplayer>]:
  117. trigger:
  118. if arg 1 is not set:
  119. send "&8&m-------------------"
  120. send "&3%player%&b's stats"
  121. send ""
  122. send "&bTeam: %{rank.%UUID of player%}%"
  123. send "&bDiamonds: &a%{diamond.%player's uuid%}%"
  124. send "&bGold: &a%{gold.%player's uuid%}%"
  125. send "&bIron: &a%{iron.%player's uuid%}%"
  126. send "&bCoal: &a%{coal.%player's uuid%}%"
  127. send ""
  128. send "&8&m-------------------"
  129. if arg 1 is set:
  130. send "&8&m-------------------"
  131. send "&3%arg 1%&b's stats"
  132. send ""
  133. send "&bDiamonds: &a%{diamond.%arg-1's uuid%}%"
  134. send "&bGold: &a%{gold.%arg-1's uuid%}%"
  135. send "&bIron: &a%{iron.%arg-1's uuid%}%"
  136. send "&bCoal: &a%{coal.%arg-1's uuid%}%"
  137. send ""
  138. send "&8&m-------------------"
  139.  
  140. command /spawn:
  141. trigger:
  142. teleport player to {spawn}
  143.  
  144. command /sethome:
  145. trigger:
  146. set {home.%player%} to location of player
  147. send "&3[Spotix] &bYour home has been set!"
  148.  
  149. command /home:
  150. trigger:
  151. if {home.%player%} is not set:
  152. send "&3[Spotix] &bYou &cdon't &bhave a home set!"
  153. else:
  154. teleport player to {home.%player%}
  155. send "&3[Spotix] &bYou've made it home."
  156.  
  157. on join:
  158. if {diamond.%player's uuid%} is not set:
  159. set {diamond.%player's uuid%} to 0
  160. if {gold.%player's uuid%} is not set:
  161. set {gold.%player's uuid%} to 0
  162. if {iron.%player's uuid%} is not set:
  163. set {iron.%player's uuid%} to 0
  164. if {coal.%player's uuid%} is not set:
  165. set {coal.%player's uuid%} to 0
  166.  
  167. command /setstats <offlineplayer> <text> <integer>:
  168. usage: {@Prefix} Usage: /setstats <player> <stat> <number>
  169. permission: stats
  170. trigger:
  171. set {%arg-2%.%arg-1's uuid%} to arg-3
  172. send "Stat: %arg-2% of %arg-1% is now %arg-3%"
  173.  
  174. command /tpa [<player>]:
  175. trigger:
  176. if arg-1 is set:
  177. set {request.%arg-1's uuid%} to executor
  178. send "{@Prefix} You have sent %arg-1% a TPA request."
  179. send "{@Prefix} %executor% has sent you a TPA request [/tpaccept]." to arg-1
  180. else:
  181. send "{@Prefix} Enter a player."
  182.  
  183. command /tpaccept:
  184. trigger:
  185. if {request.%player's uuid%} is set:
  186. teleport {request.%player's uuid%} to executor
  187. send "{@Prefix} Teleporting..."
  188. send "{@Prefix} Teleporting..." to {request.%player's uuid%}
  189. wait 3 ticks
  190. delete {request.%player's uuid%}
  191. else:
  192. send "{@Prefix} You do not have a pending request."
  193.  
  194. command /rtp:
  195. aliases: wild
  196. trigger:
  197. if {cooldown.%player's uuid%} is not set:
  198. console command "spreadplayers ~ ~ 100 1000 false %player%"
  199. send "{@Prefix} Teleported randomly."
  200. set {cooldown.%player's uuid%} to 60
  201. loop 60 times:
  202. remove 1 from {cooldown.%player's uuid%}
  203. wait 1 second
  204. if {cooldown.%player's uuid%} is 0:
  205. delete {cooldown.%player's uuid%}
  206. else:
  207. send "{@Prefix} Command on cooldown. %{cooldown.%player's uuid%}%."
Advertisement
Add Comment
Please, Sign In to add comment