Advertisement
AurasPrivate

Untitled

Sep 30th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.70 KB | None | 0 0
  1. # ▄█ ▄▄▄▄███▄▄▄▄ ▄███████▄ ▄████████ ▄████████ ███
  2. # ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ▀█████████▄
  3. # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ▀███▀▀██
  4. # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀
  5. # ███▌ ███ ███ ███ ▀█████████▀ ▀███████████ ███ ███
  6. # ███ ███ ███ ███ ███ ███ ███ ███ █▄ ███
  7. # ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
  8. # █▀ ▀█ ███ █▀ ▄████▀ ███ █▀ ████████▀ ▄████▀
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. on join:
  19. if player has permission "server.staff":
  20. set join message to ""
  21. loop all players:
  22. if loop-player has permission "server.staff":
  23. send "&9[Staff] &b%player% has connected to the server." to loop-player
  24.  
  25. on disconnect:
  26. if player has permission "server.staff":
  27. set leave message to ""
  28. loop all players:
  29. if loop-player has permission "server.staff":
  30. send "&9[Staff] &b%player% has disconnected from the server." to loop-player
  31.  
  32. if {player::%player's uuid%::frozen} is true:
  33. make console execute "ban %player% Logged off whilst frozen."
  34. loop all players:
  35. if loop-player has permission "server.staff":
  36. send "&c%player% has been &4&lbanned &cfor logging out whilst frozen." to loop-player
  37.  
  38.  
  39. command /gamemode [<text>] [<player>]:
  40. permission: server.srmod
  41. permission message: &cInsufficent permissions.
  42. aliases: /gm
  43. trigger:
  44. if argument 1 is set:
  45. if argument 1 is "0", "S" or "Survival":
  46. if argument 2 isn't set:
  47. send "&c&l[GAMEMODE] &rYou've set your gamemode to &csurvival."
  48. set gamemode of player to survival
  49.  
  50. else:
  51. if player has permission "server.admin":
  52. send "&c&l[GAMEMODE] &rYou've set %arg-2%'s gamemode to &csurvival." to player
  53. send "&c&l[GAMEMODE] &rYour gamemode was set to &csurvival &rby &c%player%." to arg-2
  54. set gamemode of arg-2 to survival
  55. else:
  56. send "&cYou don't have sufficent permissions to change other users gamemode."
  57. else if argument 1 is "1", "C" or "Creative":
  58. if argument 2 isn't set:
  59. send "&c&l[GAMEMODE] &rYou've set your gamemode to &ccreative."
  60. set gamemode of player to creative
  61.  
  62. else:
  63. if player has permission "server.admin":
  64. send "&c&l[GAMEMODE] &rYou've set %arg-2%'s gamemode to &ccreative." to player
  65. send "&c&l[GAMEMODE] &rYour gamemode was set to &ccreative &rby &c%player%." to arg-2
  66. set gamemode of arg-2 to creative
  67. else:
  68. send "&cYou don't have sufficent permissions to change other users gamemode."
  69.  
  70. else if argument 1 is "2", "A" or "Adventure":
  71. if argument 2 isn't set:
  72. send "&c&l[GAMEMODE] &rYou've set your gamemode to &aadventure."
  73. set gamemode of player to adventure
  74.  
  75. else:
  76. if player has permission "server.admin":
  77. send "&c&l[GAMEMODE] &rYou've set %arg-2%'s gamemode to &cadventure." to player
  78. send "&c&l[GAMEMODE] &rYour gamemode was set to &cadventure &rby &c%player%." to arg-2
  79. set gamemode of arg-2 to adventure
  80. else:
  81. send "&cYou don't have sufficent permissions to change other users gamemode."
  82. else:
  83. send "&c/gamemode <gamemode> [<player>]"
  84.  
  85. command /heal [<player>]:
  86. permission: server.admin
  87. permission message: &cInsufficent permissions.
  88. trigger:
  89. if argument 1 isn't set:
  90. send "&c&l[HEAL] &rYou've healed yourself."
  91. heal player
  92. set hunger of player to 20
  93.  
  94. else:
  95. send "&c&l[HEAL] &rYou've healed %arg-1%." to player
  96. send "&c&l[HEAL] &rYou've been healed by %player%" to argument 1
  97. heal arg-1
  98. set hunger of arg-1 to 20
  99.  
  100. command /teleport [<player>] [<player>]:
  101. permission: server.JrMod
  102. permission message: &cInsufficent permissions.
  103. aliases: /tp, /tport
  104. trigger:
  105. if argument 1 is set:
  106. if argument 2 isn't set:
  107. if argument 1 isn't player:
  108. send "&c&l[TELEPORT] &rTeleporting yourself to &c%arg-1%." to player
  109. teleport player to argument 1
  110.  
  111. else:
  112. send "&cYou cannot teleport to yourself."
  113.  
  114. else if argument 2 is set:
  115. if player has permission "server.srmod":
  116. if argument 1 and argument 2 are player:
  117. send "&cYou cannot teleport to yourself."
  118.  
  119. else:
  120. send "&c&l[TELEPORT] &rTeleporting &c%arg-1% &rto &c%arg-2%."
  121. teleport arg-1 to arg-2
  122. else:
  123. send "&c/teleport <player> [<player>]"
  124.  
  125. command /spectator:
  126. permission: server.staff
  127. permission message: &cInsufficent permissions.
  128. aliases: /spec, /staff, /h, /staffmode
  129. trigger:
  130. if {player::%player's uuid%::specmode} is true:
  131. delete {player::%player's uuid%::specmode}
  132.  
  133. send "&c&l[SPECTATOR] &rYou have disabled spectator mode."
  134. clear player's inventory
  135. set gamemode of player to survival
  136. teleport player to {location.spawn}
  137. reveal the player from all players
  138. else:
  139. set {player::%player's uuid%::specmode} to true
  140.  
  141. send "&c&l[SPECTATOR] &rYou have enabled spectator mode."
  142. clear player's inventory
  143. set gamemode of player to creative
  144. teleport player to {location.spawn}
  145. hide the player from all players
  146.  
  147. set slot 0 of player to book named "&c&lINSPECTION" with lore "||&rRight-click target player to view their||&rinventory."
  148. set slot 1 of player to iron fence named "&c&lHALT" with lore "||&rRight-click target player to freeze them."
  149. set slot 4 of player to red carpet named "&c&l"
  150. set slot 8 of player to light green dye named "&c&lVANISH &7&o(Vanished)" with lore "||&rRight-click to unvanish."
  151.  
  152. on any movement:
  153. if {player::%player's uuid%::frozen} is true:
  154. cancel event
  155.  
  156. on damage:
  157. if {player::%attacker's uuid%::specmode} is true:
  158. if attacker has permission "server.admin":
  159. stop
  160. else:
  161. cancel event
  162. else:
  163. if {player::%attacker's uuid%::frozen} is true:
  164. cancel event
  165.  
  166. on place:
  167. if {player::%player's uuid%::specmode} is true:
  168. if player has permission "server.admin":
  169. stop
  170. else:
  171. cancel event
  172. else:
  173. if {player::%player's uuid%::frozen} is true:
  174. cancel event
  175.  
  176. on inventory click:
  177. if {player::%player's uuid%::specmode} is true:
  178. if player has permission "server.admin":
  179. stop
  180. else:
  181. cancel event
  182. else:
  183. if {player::%player's uuid%::frozen} is true:
  184. cancel event
  185.  
  186. on break:
  187. if {player::%player's uuid%::specmode} is true:
  188. if player has permission "server.admin":
  189. stop
  190. else:
  191. cancel event
  192. else:
  193. if {player::%player's uuid%::frozen} is true:
  194. cancel event
  195.  
  196. on right-click on player:
  197. if player's tool is a book named "&c&lINSPECTION" with lore "||&rRight-click target player to view their||&rinventory.":
  198. if player has permission "server.staff":
  199. open the inventory of the clicked entity to the player
  200. stop
  201.  
  202. else:
  203. if player's tool is a iron fence named "&c&lHALT" with lore "||&rRight-click target player to freeze them.":
  204. if player has permission "server.staff":
  205. make player execute "halt %clicked entity%"
  206. stop
  207.  
  208. on right-click:
  209. if player's tool is a light green dye named "&c&lVANISH &7&o(Vanished)" with lore "||&rRight-click to unvanish.":
  210. if player has permission "server.staff":
  211. set slot 8 of player to red dye named "&c&lVANISH &7&o(Not Vanished)" with lore "||&rRight-click to vanish."
  212. send "&c&l[VANISH] &rYou've been unvanished."
  213. reveal the player from all players
  214. stop
  215.  
  216. else:
  217. if player's tool is a red dye named "&c&lVANISH &7&o(Not Vanished)" with lore "||&rRight-click to vanish.":
  218. if player has permission "server.staff":
  219. set slot 8 of player to light green dye named "&c&lVANISH &7&o(Vanished)" with lore "||&rRight-click to unvanish."
  220. send "&c&l[VANISH] &rYou've been vanished."
  221. hide the player from all players
  222. stop
  223.  
  224. command /screenshare [<player>]:
  225. permission: server.staff
  226. permission message: &cInsufficent permissions.
  227. aliases: /ss, /freeze, /halt
  228. trigger:
  229. if argument 1 is set:
  230. if {player::%arg-1's uuid%::frozen} is true:
  231. delete {player::%arg-1's uuid%::frozen}
  232.  
  233. send "&c&l[SCREENSHARE] &rYou've unfrozen &c%arg-1%." to player
  234. send "&c&l[SCREENSHARE] &rYou've been unfrozen." to arg-1
  235.  
  236. else:
  237. set {player::%arg-1's uuid%::frozen} to true
  238.  
  239. send "&c&l[SCREENSHARE] &rYou've frozen &c%arg-1%." to player
  240. send "&c&l[SCREENSHARE] &rYou've been frozen." to arg-1
  241. make player execute "msg %arg-1% You've been frozen, please connect to our discord @ https://discord.gg/sajJVMu DO NOT LOG OUT!"
  242.  
  243. command /check [<offline player>]:
  244. permission: server.srmod
  245. permission message: &cInsufficent permissions.
  246. trigger:
  247. if argument 1 is set:
  248. if {player::%argument 1's uuid%::punish::ban} is true:
  249. send "&7&m*-------------------------------------*"
  250. send "&c&l%arg-1%"
  251. send "&4&l* &cPunished on: &7%{player::%argument 1's uuid%::punish::ban::time}%"
  252. send "&4&l* &cDistributed by: &7%{player::%argument 1's uuid%::punish::ban::distributor}%"
  253. send "&4&l* &cReason: &7%{player::%argument 1's uuid%::punish::ban::reason}%"
  254. send "&4&l* &cLength: &7%{player::%argument 1's uuid%::punish::ban::length}%"
  255. send "&7&m*-------------------------------------*"
  256. else:
  257. send "&c%arg-1% isn't currently banned."
  258. else:
  259. send "&c/check <player>"
  260.  
  261. command /ban [<offline player>] [<text>]:
  262. permission: server.jrmod
  263. permission message: &cInsufficent permissions.
  264. trigger:
  265. if argument 1 is set:
  266. if argument 2 isn't set:
  267. if {player::%argument 1's uuid%::punish::ban} is set:
  268. send "&c%arg-1% is already banned."
  269. else:
  270. set {player::%argument 1's uuid%::punish::ban} to true
  271. ban arg-1 due to "Unspecified reasoning."
  272. set {player::%argument 1's uuid%::punish::ban::time} to now
  273. set {player::%argument 1's uuid%::punish::ban::distributor} to player
  274. set {player::%argument 1's uuid%::punish::ban::reason} to "Unspecified reasoning."
  275. set {player::%argument 1's uuid%::punish::ban::length} to "Permenant"
  276. broadcast "&7&m*-------------------------------------*"
  277. broadcast "&c&l%arg-1% &chas been permanently suspended from the server."
  278. broadcast "&4&l* &cDistributed by: &7%player%"
  279. broadcast "&4&l* &cReason: &7Unspecified reasoning."
  280. broadcast "&4&l* &cLength: &7Permenant"
  281. broadcast "&7&m*-------------------------------------*"
  282. else:
  283. send "&c/ban <player> <reason>"
  284.  
  285. command /unban [<offline player>]:
  286. permission: server.mod
  287. permission message: &cInsufficent permissions.
  288. trigger:
  289. if argument 1 is set:
  290. if {player::%argument 1's uuid%::punish::ban} isn't set:
  291. send "&c%arg-1% isn't currently banned."
  292. else:
  293. delete {player::%argument 1's uuid%::punish::ban}
  294. broadcast "&7&m*-------------------------------------*"
  295. broadcast "&c&l%arg-1% &csuspension has been lifted."
  296. broadcast "&7&m*-------------------------------------*"
  297. unban arg-1
  298.  
  299. else:
  300. send "&c/unban <player>"
  301.  
  302. command /leave:
  303. trigger:
  304. if {player::%player's uuid%::gamestatus} is set:
  305. if {player::%player's uuid%::pvptag} is true:
  306. send "&cYou cannot leave the arena with a &lPvP Tag"
  307. stop
  308. else:
  309. if {player::%player's uuid%::leaving} isn't set:
  310. set {player::%player's uuid%::leaving} to true
  311. send "&c&l[LEAVE] &rTeleportation has begun..."
  312. wait 2 seconds
  313. clear player's inventory
  314. heal player
  315. set hunger of player to 20
  316. delete {player::%player's uuid%::gamestatus}
  317. teleport player to {location.spawn}
  318. send "&c&l[LEAVE] &rSuccessfully left the arena."
  319. delete {player::%player's uuid%::leaving}
  320.  
  321. else:
  322. send "&cYou aren't in the arena. Join with &l/join."
  323.  
  324. command /join:
  325. trigger:
  326. if {player::%player's uuid%::gamestatus} isn't set:
  327. set {player::%player's uuid%::gamestatus} to true
  328. delete {player::%player's uuid%::pvptag}
  329. clear player's inventory
  330. heal player
  331. set hunger of player to 20
  332. if {player::%player's uuid%::class} isn't set:
  333. if {player::%player's uuid%::default::sword::level} isn't set:
  334. set {player::%player's uuid%::default::sword::level} to 1
  335. set slot 0 of player to stone sword of unbreaking 1 named "&7Sword &8[%{player::%player's uuid%::default::sword::level}%]"
  336. else:
  337. send "&cYou are already in the arena."
  338.  
  339. on right-click on sign:
  340. line 1 of event-block is ""
  341. line 2 of event-block is "&c&lIMPACT"
  342. line 3 of event-block is "&7FFA Join"
  343. line 4 of event-block is "":
  344. make player execute "join"
  345.  
  346. on sign change:
  347. if line 1 is "[FFA Join]":
  348. set line 1 to ""
  349. set line 2 to "&c&lIMPACT"
  350. set line 3 to "&7FFA Join"
  351. set line 4 to ""
  352.  
  353. command /rank [<offline player>] [<text>]:
  354. permission: server.admin
  355. permission message: &cInsufficent permissions.
  356. aliases: /setrank
  357. trigger:
  358. if argument 1 is set:
  359. if argument 2 is set:
  360. if argument 2 is "admin":
  361.  
  362. set {player::%arg-1's uuid%::rank} to "Admin"
  363. set {player::%arg-1's uuid%::rank::prefix} to "&8[&c&lADMIN&8] &c"
  364. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  365. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cAdmin" to player
  366. send "&c&l[RANK] &rYour rank has been updated to &cAdmin &rby &c%player%" to argument 1
  367.  
  368. else if argument 2 is "dev" or "developer":
  369.  
  370. set {player::%arg-1's uuid%::rank} to "Developer"
  371. set {player::%arg-1's uuid%::rank::prefix} to "&8[&d&lDEV&8] &d"
  372. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  373. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cDeveloper" to player
  374. send "&c&l[RANK] &rYour rank has been updated to &cDeveloper &rby &c%player%" to argument 1
  375.  
  376. else if argument 2 is "senior mod" or "srmod":
  377.  
  378. set {player::%arg-1's uuid%::rank} to "Senior Mod"
  379. set {player::%arg-1's uuid%::rank::prefix} to "&8[&6&lSR.MOD&8] &6"
  380. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  381. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cSenior Mod" to player
  382. send "&c&l[RANK] &rYour rank has been updated to &cSenior Mod &rby &c%player%" to argument 1
  383.  
  384. else if argument 2 is "mod":
  385.  
  386. set {player::%arg-1's uuid%::rank} to "Mod"
  387. set {player::%arg-1's uuid%::rank::prefix} to "&8[&e&lMOD&8] &e"
  388. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  389. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cMod" to player
  390. send "&c&l[RANK] &rYour rank has been updated to &cMod &rby &c%player%" to argument 1
  391.  
  392. else if argument 2 is "junior mod" or "jrmod":
  393.  
  394. set {player::%arg-1's uuid%::rank} to "Junior Mod"
  395. set {player::%arg-1's uuid%::rank::prefix} to "&8[&9&lJR.MOD&8] &9"
  396. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  397. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cJunior Mod" to player
  398. send "&c&l[RANK] &rYour rank has been updated to &cJunior Mod &rby &c%player%" to argument 1
  399.  
  400. else if argument 2 is "builder":
  401.  
  402. set {player::%arg-1's uuid%::rank} to "Builder"
  403. set {player::%arg-1's uuid%::rank::prefix} to "&8[&a&lBUILDER&8] &a"
  404. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  405. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cBuilder" to player
  406. send "&c&l[RANK] &rYour rank has been updated to &cBuilder &rby &c%player%" to argument 1
  407.  
  408. else if argument 2 is "none" or "default":
  409.  
  410. set {player::%arg-1's uuid%::rank} to "None"
  411. set {player::%arg-1's uuid%::rank::prefix} to "&8[&7&lMEMBER&8] &7"
  412. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  413. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cNone" to player
  414. send "&c&l[RANK] &rYour rank has been updated to &cNone &rby &c%player%" to argument 1
  415.  
  416. else:
  417. send "&cInvalid group title: Admin, Dev, SrMod, Mod, JrMod, Builder or None"
  418. else:
  419. send "&c/rank <player> <rank>"
  420. else:
  421. send "&c/rank <player> <rank>"
  422.  
  423. on first join:
  424. make console execute "rank %player% none"
  425.  
  426. on chat:
  427. cancel event
  428. set tab list name of player to "%{player::%player's uuid%::rank::prefix}%%player%"
  429. broadcast "%{player::%player's uuid%::rank::prefix}%%player% » &r%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement