Advertisement
Guest User

Skript

a guest
Nov 21st, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 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. if arg-1 is "debug":
  16. send "&cError: OVH6782"
  17. wait 1 second
  18. send "&cError contacting database."
  19. command /essentialsrld:
  20. permission: staff.staff
  21. permission message: &cSorry! But you cannot do this.
  22. trigger:
  23. if executor is a player:
  24. stop
  25. send "&cYou cannot run this command!"
  26. if executor is console:
  27. set {essentials::reloaded} to "&7%player%"
  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%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement