Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.11 KB | None | 0 0
  1. on skript stop:
  2. delete {moderator::*}
  3. delete {admin::*}
  4. delete {player::*}
  5. delete {owner::*}
  6. on skript start:
  7. delete {moderator::*}
  8. delete {admin::*}
  9. delete {player::*}
  10. delete {owner::*}
  11. on join:
  12. if player has permission "darkcheat.moderator":
  13. add player to {moderator::*}
  14. if player has permission "darkcheat.admin":
  15. add player to {admin::*}
  16. if player has permission "darkcheat.player":
  17. add player to {player::*}
  18. if player has permission "darkcheat.*":
  19. add player to {owner::*}
  20. remove player from {moderator::*}
  21. remove player from {admin::*}
  22. remove player from {player::*}
  23. on kick:
  24. if player has permission "darkcheat.moderator":
  25. remove player from {moderator::*}
  26. if player has permission "darkcheat.admin":
  27. remove player from {admin::*}
  28. if player has permission "darkcheat.*":
  29. remove player from {owner::*}
  30. if player has permission "darkcheat.player":
  31. remove player from {player::*}
  32. if {vanish.%player%} = 1:
  33. remove invisibility from player
  34. set {vanish.%player%} to 0
  35. reveal player to all players
  36. on quit:
  37. if player has permission "darkcheat.moderator":
  38. remove player from {moderator::*}
  39. if player has permission "darkcheat.admin":
  40. remove player from {admin::*}
  41. if player has permission "darkcheat.*":
  42. remove player from {owner::*}
  43. if player has permission "darkcheat.player":
  44. remove player from {player::*}
  45. if {vanish.%player%} = 1:
  46. remove invisibility from player
  47. set {vanish.%player%} to 0
  48. reveal player to all players
  49. on pickup:
  50. if {staffmode.%player%} is true:
  51. cancel event
  52. send "&7[&c!&7] &cYou may not pickup items while in Staff Mode."
  53. on jump:
  54. if {%player%.ss} is true:
  55. cancel event
  56. teleport player to {_ss.coords.%player%}
  57. send "&f█████████"
  58. send "&f████&c█&f████"
  59. send "&f███&c█&0█&c█&f███"
  60. send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member."
  61. send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e."
  62. send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord. &e(&6/discord&e)"
  63. send "&c█&6███&0█&6███&c█"
  64. send "&c█████████"
  65. send "&f█████████"
  66. send "&4&m+---------------------------------------------------+"
  67. send "&cYou may not attack or get attacked by players whilist frozen."
  68. send "&cYou have 3 minutes to come on our discord,"
  69. send "&cIf you disconnect, you will be permanently banned."
  70. send "&cFailure to comply will result in a permanent ban."
  71. send "&4&m+---------------------------------------------------+"
  72. on inventory click:
  73. if {staffmode.%player%} is true:
  74. cancel event
  75. send "&7[&c!&7] &cYou may not edit this inventory."
  76. on damage of a player:
  77. if {staffmode.%attacker%} is true:
  78. cancel event
  79. send "&7[&c!&7] &cYou may not damage this player while in staff mode." to attacker
  80. if {staffmode.%victim%} is true:
  81. cancel event
  82. send "&7[&c!&7] &cYou may not damage this player." to attacker
  83. on build:
  84. if {staffmode.%player%} is true:
  85. cancel event
  86. send "&7[&c!&7] &cYou may not build while in Staff Mode."
  87. if {%player%.ss} is true:
  88. cancel event
  89. send "&f█████████"
  90. send "&f████&c█&f████"
  91. send "&f███&c█&0█&c█&f███"
  92. send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member."
  93. send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e."
  94. send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord. &e(&6/discord&e)"
  95. send "&c█&6███&0█&6███&c█"
  96. send "&c█████████"
  97. send "&f█████████"
  98. send "&4&m+---------------------------------------------------+"
  99. send "&cYou may not attack or get attacked by players whilist frozen."
  100. send "&cYou have 3 minutes to come on our discord,"
  101. send "&cIf you disconnect, you will be permanently banned."
  102. send "&cFailure to comply will result in a permanent ban."
  103. send "&4&m+---------------------------------------------------+"
  104.  
  105. on break:
  106. if {staffmode.%player%} is true:
  107. cancel event
  108. send "&7[&c!&7] &cYou may not build while in Staff Mode."
  109. if {%player%.ss} is true:
  110. cancel event
  111. send "&f█████████"
  112. send "&f████&c█&f████"
  113. send "&f███&c█&0█&c█&f███"
  114. send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member."
  115. send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e."
  116. send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord. &e(&6/discord&e)"
  117. send "&c█&6███&0█&6███&c█"
  118. send "&c█████████"
  119. send "&f█████████"
  120. send "&4&m+---------------------------------------------------+"
  121. send "&cYou may not attack or get attacked by players whilist frozen."
  122. send "&cYou have 3 minutes to come on our discord,"
  123. send "&cIf you disconnect, you will be permanently banned."
  124. send "&cFailure to comply will result in a permanent ban."
  125. send "&4&m+---------------------------------------------------+"
  126.  
  127.  
  128.  
  129. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[COMMANDS]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  130. command /ss [<player>]:
  131. description: Freeze the player and send them a request to join Discord!
  132. permission: darkcheat.moderator
  133. permission message: &8» &cYou do not have access to this command!
  134. executable by: players
  135. aliases: /ss,/screenshare,/freeze
  136. trigger:
  137. if arg 1 is not set:
  138. send "&7[&c!&7] &cError: &7You must enter the name of the player for the command to be executed." to player
  139. if arg 1 is set:
  140. if {%arg-1%.ss} is true:
  141. send "&7[&c!&7] &7%arg-1% &ais no longer frozen!" to player
  142. send "&7[&c!&7] &aYou are no longer frozen!" to arg 1
  143. set {%arg-1%.ss} to false
  144. make console execute command "/speed walk 1 %arg-1%"
  145. make console execute command "/speed fly 1 %arg-1%"
  146. delete {_ss.coords.%arg-1%}
  147. stop trigger
  148. if {%arg-1%.ss} is not set:
  149. set {%arg-1%.ss} to true
  150. add 1 to {frozencounter.%arg-1%}
  151. send "&7[&c!&7] &cThis player has been frozen %{frozencounter.%arg-1%}% times."
  152. send "&7[&c!&7] &7%arg-1% &ahas been frozen." to player
  153. send "&f█████████" to arg 1
  154. send "&f████&c█&f████" to arg 1
  155. send "&f███&c█&0█&c█&f███" to arg 1
  156. send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member." to arg 1
  157. send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e." to arg 1
  158. send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord. &e(&6/discord&e)" to arg 1
  159. send "&c█&6███&0█&6███&c█" to arg 1
  160. send "&c█████████" to arg 1
  161. send "&f█████████" to arg 1
  162. send "&4&m+-----------------------------------------------------+" to arg 1
  163. send "&cYou may not attack or get attacked by players whilist frozen." to arg 1
  164. send "&cYou have 3 minutes to come on our discord," to arg 1
  165. send "&cIf you disconnect, you will be permanently banned." to arg 1
  166. send "&cFailure to comply will result in a permanent ban." to arg 1
  167. send "&4&m+-----------------------------------------------------+" to arg 1
  168. set the arg-1's walk speed to 0
  169. set {_ss.coords.%arg-1%} to arg-1's location
  170. stop trigger
  171. if {%arg-1%.ss} is false:
  172. add 1 to {frozencounter.%arg-1%}
  173. send "&7[&c!&7] &7%arg-1% &ahas been frozen." to players
  174. send "&7[&c!&7] &cThis player has been frozen %{frozencounter.%arg-1%}% times."
  175. send "&f█████████" to arg 1
  176. send "&f████&c█&f████" to arg 1
  177. send "&f███&c█&0█&c█&f███" to arg 1
  178. send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member." to arg 1
  179. send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e." to arg 1
  180. send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord. &e(&6/discord&e)" to arg 1
  181. send "&c█&6███&0█&6███&c█" to arg 1
  182. send "&c█████████" to arg 1
  183. send "&f█████████" to arg 1
  184. send "&4&m+---------------------------------------------------+" to arg 1
  185. send "&cYou may not attack or get attacked by players whilist frozen." to arg 1
  186. send "&cYou have 3 minutes to come on our discord," to arg 1
  187. send "&cIf you disconnect, you will be permanently banned." to arg 1
  188. send "&cFailure to comply will result in a permanent ban." to arg 1
  189. send "&4&m+---------------------------------------------------+" to arg 1
  190. set {%arg-1%.ss} to true
  191. set the arg-1's walk speed to 0
  192. set {_ss.coords.%arg-1%} to arg-1's location
  193. stop trigger
  194.  
  195. every second:
  196. loop all players:
  197. if {vanish.%loop-player%} = 1:
  198. hide loop-player from all players
  199. reveal loop-player to {admin::*}
  200. reveal loop-player to {moderator::*}
  201. reveal loop-player to {owner::*}
  202.  
  203.  
  204. command /staffmode [<text>]:
  205. description: Staff menu.
  206. aliases: /sm, /staffm
  207. permission: darkcheat.staffmode
  208. permission message: &7[&c!&7] &cYou do not have access to this command!
  209. executable by: players
  210. trigger:
  211. if arg 1 is not "on" or "off" or "ison" or "reload" or "help":
  212. send "&cUnknown command, Please try /elytra"
  213. if arg 1 is not set:
  214. message "&8&m+-----------------+&4 StaffMode Help &8&m+-----------------+"
  215. message "&a/staffmode help&e - &aShows this page"
  216. message "&a/staffmode on &e- &a Activate StaffMode"
  217. message "&a/staffmode off&e - &aDeActivate StaffMode"
  218. message "&a/staffmode ison&e - &aTells you if StaffMode is on"
  219. message "&c/staffmode reload &e-&c Reloads StaffMode elytra plugin"
  220. message "&8&m+-----------------+&4 StaffMode Help &8&m+-----------------+"
  221. if arg 1 is "help":
  222. message "&8&m+-----------------+&4 StaffMode Help &8&m+-----------------+"
  223. message "&a/staffmode help&e - &aShows this page"
  224. message "&a/staffmode on &e- &a Activate StaffMode"
  225. message "&a/staffmode off&e - &aDeActivate StaffMode"
  226. message "&a/staffmode ison&e - &aTells you if StaffMode is on"
  227. message "&c/staffmode reload &e-&c Reloads StaffMode elytra plugin"
  228. message "&8&m+-----------------+&4 StaffMode Help &8&m+-----------------+"
  229. if arg 1 is "ison":
  230. if {staffmode.%player%} is true:
  231. send "&7[&c!&7] &7Staff mode is currently &aactivated&7!"
  232. if {staffmode.%player%} is false:
  233. send "&7[&c!&7] &7Staff mode is currently &cdeactivated&7!"
  234. if {staffmode.%player%} is not set:
  235. send "&7[&c!&7] &7Staff mode is currently &cdeactivated&7!"
  236. if arg 1 is "reload":
  237. if player is op:
  238. execute player command "/skript reload staffmode"
  239. send "&7[&c!&7] &aPlugin reloaded successfully!"
  240. if arg 1 is "on":
  241. if {staffmode.%player%} is false:
  242. send "&7[&c!&7] &7Staff mode is now &aactivated&7!"
  243. wait 1 tick
  244. set {staffmode.%player%} to true
  245. set {save.helm.%player%} to the helmet of the player
  246. set {save.chestplate.%player%} to the chestplate of the player
  247. set {save.leggings.%player%} to the leggings of the player
  248. set {save.boots.%player%} to the boots of the player
  249. set {save.inv.%player%} to the player's serialized inventory
  250. set {save.lvls.%player%} to player's level
  251. set {save.lvls.%player%.progress} to level progress of the player
  252. send "&7[&c!&7] &7Inventory has been saved. You will now enter staff mode&7!"
  253. apply invisibility tier 2 to player for 99999 seconds
  254. send "&7[&c!&7] &7You are now invisible !"
  255. set {vanish.%player%} to 1
  256. hide player from all players
  257. reveal player to {admin::*}
  258. reveal player to {moderator::*}
  259. reveal player to {owner::*}
  260. clear player's inventory
  261. equip player with chain helmet of protection 1000
  262. equip player with chain chestplate of protection 1000
  263. equip player with chain leggings of protection 1000
  264. equip player with chain boots of protection 1000
  265. apply night vision 2 to player for 100000 seconds
  266. clear player's level progress
  267. clear player's level
  268. add a clock named "&7&lVanish" to the slot 0 of player
  269. add a stick named "&7&lInventory See" with lore "&bRight click to see the inventory of a player||&bLeft click to see the armor of a player." to the slot 1 of player
  270. add a eye of ender named "&7&lRandom TP" with lore "&bRight click to teleport to a random player." to the slot 2 of player
  271. add a blaze rod named "&6&lScreenshare Player" to the slot 3 of player
  272. add a nether star named "&4&lExit Staff Mode" to the slot 8 of player
  273. if {staffmode.%player%} is not set:
  274. send "&7[&c!&7] &7Staff mode is now &aactivated&7!"
  275. wait 1 tick
  276. set {staffmode.%player%} to true
  277. set {save.helm.%player%} to the helmet of the player
  278. set {save.chestplate.%player%} to the chestplate of the player
  279. set {save.leggings.%player%} to the leggings of the player
  280. set {save.boots.%player%} to the boots of the player
  281. set {save.inv.%player%} to the player's serialized inventory
  282. set {save.lvls.%player%} to player's level
  283. set {save.lvls.%player%.progress} to level progress of the player
  284. send "&7[&c!&7] &7Inventory has been saved. You will now enter staff mode&7!"
  285. apply invisibility tier 2 to player for 99999 seconds
  286. send "&7[&c!&7] &7You are now invisible !"
  287. set {vanish.%player%} to 1
  288. hide player from all players
  289. reveal player to {admin::*}
  290. reveal player to {moderator::*}
  291. reveal player to {owner::*}
  292. clear player's inventory
  293. equip player with chain helmet of protection 1000
  294. equip player with chain chestplate of protection 1000
  295. equip player with chain leggings of protection 1000
  296. equip player with chain boots of protection 1000
  297. apply night vision 2 to player for 100000 seconds
  298. clear player's level progress
  299. clear player's level
  300. add a clock named "&7&lVanish" to the slot 0 of player
  301. add a stick named "&c&lInventory See" with lore "&bRight click to see the inventory of a player||&bLeft click to see the armor of a player." to the slot 1 of player
  302. add a eye of ender named "&7&lRandom TP" with lore "&bRight click to teleport to a random player." to the slot 2 of player
  303. add a blaze rod named "&6&lScreenshare Player" to the slot 3 of player
  304. add a nether star named "&4&lExit Staff Mode" to the slot 8 of player
  305.  
  306.  
  307.  
  308.  
  309. if arg 1 is "off":
  310. if {staffmode.%player%} is true:
  311. send "&7[&c!&7] &7Staff mode is now &cdeactivated&7!"
  312. set {staffmode.%player%} to false
  313. restore inventory of player from {save.inv.%player%}
  314. set the helmet of the player to {save.helm.%player%}
  315. set the chestplate of the player to {save.chestplate.%player%}
  316. set the leggings of the player to {save.leggings.%player%}
  317. set the boots of the player to {save.boots.%player%}
  318. set player's level to {save.lvls.%player%}
  319. set player's level progress to {save.lvls.%player%.progress}
  320. reveal player to all players
  321. remove invisibility from the player
  322. remove night vision from the player
  323. set player's gamemode to survival
  324. else:
  325. send "&7[&c!&7] &7Staff mode is already &cdeactivated&7!"
  326. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[ITEMS]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  327. on right click with a clock:
  328. if {staffmode.%player%} is true:
  329. if {vanish.%player%} is not set:
  330. apply invisibility tier 2 to player for 99999 seconds
  331. send "&7[&c!&7] &7You are now invisible !"
  332. set {vanish.%player%} to 1
  333. hide player from all players
  334. stop trigger
  335. if {vanish.%player%} = 0:
  336. apply invisibility tier 2 to player for 99999 seconds
  337. send "&7[&c!&7] &7You are now invisible !"
  338. set {vanish.%player%} to 1
  339. hide player from all players
  340. stop trigger
  341. if {vanish.%player%} = 1:
  342. remove invisibility from player
  343. send "&7[&c!&7] &7You are now visible !"
  344. set {vanish.%player%} to 0
  345. reveal player to all players
  346. stop trigger
  347. on right click on a player:
  348. if player's tool is a stick:
  349. if {staffmode.%player%} is true:
  350. cancel event
  351. make player execute command "/invsee %clicked entity%"
  352. on right click on a player:
  353. if player's tool is a blaze rod:
  354. if {staffmode.%player%} is true:
  355. cancel event
  356. make player execute command "/ss %clicked entity%"
  357. on damage of a player:
  358. if attacker's tool is a blaze rod:
  359. if {staffmode.%attacker%} is true:
  360. cancel event
  361. make attacker execute command "/ss %victim% 1"
  362. on right click with a nether star:
  363. if {staffmode.%player%} is true:
  364. cancel event
  365. make player execute command "/staffmode off"
  366. on damage of a player:
  367. if attacker's tool is a stick:
  368. if {staffmode.%attacker%} is true:
  369. cancel event
  370. make attacker execute command "/invsee %victim% 1"
  371. on right click with a eye of ender:
  372. if {staffmode.%player%} is true:
  373. cancel event
  374. set {_randomtp} to a random element out of {player::*}
  375. teleport player to {_randomtp}
  376. send "&8[&c!&8] &7You have been randomly teleported to &c%{_randomtp}%&7!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement