Advertisement
Guest User

Skript

a guest
Nov 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.97 KB | None | 0 0
  1. on load:
  2. loop all players:
  3. if loop-player has permission "staff":
  4. send "" to loop-player
  5. send "&6&lEssentials &7Reloaded by %{essentials::reloaded}%&7." to loop-player
  6. send "" to loop-player
  7. command /essentials [<text>]:
  8. permission: staff.staff
  9. permission message: &cSorry! But you cannot do this.
  10. trigger:
  11. if arg-1 is not set:
  12. send "&c/essentials <reload, debug>"
  13. if arg-1 is "reload":
  14. make console execute command "/essentialsrld"
  15. set {essentials::reloaded} to "&7%player%"
  16. if arg-1 is "debug":
  17. send "&cError: OVH6782"
  18. wait 1 second
  19. send "&cError contacting database."
  20. command /essentialsrld:
  21. permission: staff.staff
  22. permission message: &cSorry! But you cannot do this.
  23. trigger:
  24. if executor is a player:
  25. stop
  26. send "&cYou cannot run this command!"
  27. if executor is console:
  28. make console execute command "/sk reload essentials"
  29. command /fly:
  30. permission: staff.staff
  31. permission message: &cSorry! But you cannot do this.
  32. trigger:
  33. if {flymode::%uuid of player%} is not set:
  34. set {flymode::%uuid of player%} to false
  35. if {flymode::%uuid of player%} is false:
  36. set player's flight mode to true
  37. send "&7(&b!&7) &3Successfully toggled flight mode to &btrue"
  38. play sound "entity.arrow.hit_player" to player
  39. set {flymode::%uuid of player%} to true
  40. stop
  41. if {flymode::%uuid of player%} is true:
  42. set player's flight mode to false
  43. send "&7(&b!&7) &3Successfully toggled flight mode to &bfalse"
  44. play sound "entity.arrow.hit_player" to player
  45. set {flymode::%uuid of player%} to false
  46. stop
  47. command /gmt [<offline player>]:
  48. permission: staff.staff
  49. permission message: &cSorry! But you cannot do this.
  50. trigger:
  51. if arg-1 is not set:
  52. if {gmc::%uuid of player%} is not set:
  53. set {gmc::%uuid of player%} to false
  54. if {gmc::%uuid of player%} is false:
  55. set player's gamemode to creative
  56. play sound "entity.arrow.hit_player" to player
  57. send "&7(&b!&7) &3Gamemode set to creative mode"
  58. set {gmc::%uuid of player%} to true
  59. stop
  60. if {gmc::%uuid of player%} is true:
  61. set player's gamemode to survival
  62. play sound "entity.arrow.hit_player" to player
  63. send "&7(&b!&7) &3Gamemode set to survival mode"
  64. set {gmc::%uuid of player%} to false
  65. stop
  66. if arg-1 is set:
  67. if {gmc::%uuid of arg-1%} is not set:
  68. set {gmc::%uuid of arg-1%} to false
  69. if {gmc::%uuid of arg-1%} is false:
  70. set arg 1's gamemode to creative
  71. play sound "entity.arrow.hit_player" to arg-1
  72. send "&7(&b!&7) &3Gamemode set to creative mode" to arg-1
  73. send "&7(&b!&7) &3Gamemode set to creative mode for &b%arg-1%"
  74. set {gmc::%uuid of arg-1%} to true
  75. stop
  76. if {gmc::%uuid of arg-1%} is true:
  77. set arg 1's gamemode to survival
  78. play sound "entity.arrow.hit_player" to arg 1
  79. send "&7(&b!&7) &3Gamemode set to survival mode" to arg-1
  80. send "&7(&b!&7) &3Gamemode set to survival mode for &b%arg-1%"
  81. set {gmc::%uuid of arg-1%} to false
  82. stop
  83. command /tp [<player>] [<player>]:
  84. permission: staff.staff
  85. permission message: &cSorry! But you cannot do this.
  86. trigger:
  87. if arg-1 is not set:
  88. send "&c/tp (player) OPTIONAL:(player)"
  89. if arg-1 is set:
  90. if arg-2 is not set:
  91. teleport player to arg 1
  92. send "&7(&b!&7) &3Teleported to &b%arg-1%"
  93. play sound "entity.arrow.hit_player" to player
  94. if arg-2 is set:
  95. teleport arg 1 to arg 2
  96. send "&7(&b!&7) &3Teleported &b%arg-1% &3to &b%arg-2%"
  97. play sound "entity.arrow.hit_player" to player
  98. command /setspawn:
  99. permission: staff.staff
  100. permission message: &cSorry! But you cannot do this.
  101. trigger:
  102. set {worldspawn} to location of player
  103. send "&7(&b!&7) &3Set the spawn point of group &bdefault &3to location of &b%player%"
  104. play sound "entity.arrow.hit_player" to player
  105. command /spawn:
  106. trigger:
  107. teleport player to {worldspawn}
  108. send "&7(&b!&7) &3Teleported to spawn"
  109. command /god:
  110. permission: staff.staff
  111. permission message: &cSorry! But you cannot do this.
  112. trigger:
  113. if {godmode::%uuid of player%} is not set:
  114. set {godmode::%uuid of player%} to false
  115. if {godmode::%uuid of player%} is false:
  116. send "&7(&b!&7) &3Enabled god mode for &b%player%"
  117. play sound "entity.arrow.hit_player" to player
  118. set {godmode::%uuid of player%} to true
  119. stop
  120. if {godmode::%uuid of player%} is true:
  121. send "&7(&b!&7) &3Disabled god mode for &b%player%"
  122. play sound "entity.arrow.hit_player" to player
  123. set {godmode::%uuid of player%} to false
  124. stop
  125. on damage:
  126. attacker is an entity
  127. victim is an entity
  128. if {godmode::%uuid of victim%} is true:
  129. cancel event
  130. else:
  131. stop
  132. on command:
  133. if player is op:
  134. set {executedcommand} to "&7%player%"
  135. loop all players:
  136. if loop-player is op:
  137. send "&7(&b!&7) &b%{executedcommand}% &7ran the command &3/%command%"
  138. command /ban [<offline player>] [<text>]:
  139. permission: staff.staff
  140. permission message: &cSorry! But you cannot do this.
  141. trigger:
  142. if arg-1 is not set:
  143. send "&c/ban (Player) OPTIONAL:(Reason)"
  144. if arg-1 is set:
  145. if arg-2 is set:
  146. loop all players:
  147. if loop-player has permission "staff.staff":
  148. send "&7(&b!&7) &b%arg-1% &7has been permanently banned by &b%player% &7due to &3%arg-2%" to loop-player
  149. play sound "entity.elder_guardian.curse" to loop-player
  150. send "&7(&b!&7) &7Ban messages only appear to players with &bOPERATOR" to loop-player
  151. ban arg 1 due to "&7(&b!&7) &9BAN: &3%arg-2% &7[FOREVER]"
  152. kick arg 1 due to "&7(&b!&7) &9BAN: &3%arg-2% &7[FOREVER]"
  153. if arg-2 is not set:
  154. loop all players:
  155. if loop-player has permission "staff.staff":
  156. send "&7(&b!&7) &b%arg-1% &7has been permanently banned by &b%player% &7due to &3Banned by an operator." to loop-player
  157. play sound "entity.elder_guardian.curse" to loop-player
  158. send "&7(&bNOTICE&7) &7Ban messages only appear to players with &bOPERATOR" to loop-player
  159. ban arg 1 due to "&7(&b!&7) &9BAN: &3Banned by an operator. &7[FOREVER]"
  160. kick arg 1 due to "&7(&b!&7) &9BAN: &3Banned by an operator. &7[FOREVER]"
  161. command /kick [<offline player>] [<text>]:
  162. permission: staff.staff
  163. permission message: &cSorry! But you cannot do this.
  164. trigger:
  165. if arg-1 is not set:
  166. send "&c/kick (Player) OPTIONAL:(Reason)"
  167. if arg-1 is set:
  168. if arg-2 is set:
  169. loop all players:
  170. if loop-player has permission "staff.staff":
  171. send "&7(&b!&7) &b%arg-1% &7has been kicked by &b%player% &7due to &3%arg-2%" to loop-player
  172. play sound "entity.elder_guardian.curse" to loop-player
  173. send "&7(&bNOTICE&7) &7Kick messages only appear to players with &bOPERATOR" to loop-player
  174. kick arg 1 due to "&7(&b!&7) &9KICK: &3%arg-2% &7[1 Second]"
  175. if arg-2 is not set:
  176. loop all players:
  177. if loop-player has permission "staff.staff":
  178. send "&7(&b!&7) &b%arg-1% &7has been kicked by &b%player% &7due to &3Kicked by an operator." to loop-player
  179. play sound "entity.elder_guardian.curse" to loop-player
  180. send "&7(&bNOTICE&7) &7Kick messages only appear to players with &bOPERATOR" to loop-player
  181. kick arg 1 due to "&7(&b!&7) &9KICK: &3Kicked by an operator. &7[1 Second]"
  182. command /sc:
  183. permission: staff.staff
  184. permission message: &cSorry! But you cannot do this.
  185. trigger:
  186. if {staffchat::%uuid of player%} is not set:
  187. set {staffchat::%uuid of player%} to false
  188. if {staffchat::%uuid of player%} is false:
  189. send "&7(&b!&7) &3Toggled staff chat to &bTRUE"
  190. play sound "entity.arrow.hit_player" to player
  191. set {staffchat::%uuid of player%} to true
  192. stop
  193. if {staffchat::%uuid of player%} is true:
  194. send "&7(&b!&7) &3Toggled staff chat to &bFALSE"
  195. play sound "entity.arrow.hit_player" to player
  196. set {staffchat::%uuid of player%} to false
  197. stop
  198. on chat:
  199. if {staffchat::%uuid of player%} is true:
  200. cancel event
  201. loop all players:
  202. if loop-player has permission "staff.staff":
  203. send "&7(&bSTAFF&7) &b%player's display name%&3: %message%" to loop-player
  204. play sound "entity.item.pickup" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement