Advertisement
AurasPrivate

Untitled

Oct 10th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.03 KB | None | 0 0
  1. command /location [<text>]:
  2. permission: server.admin
  3. permission message: &cInsufficent permissions.
  4. trigger:
  5. if arg-1 isn't set:
  6. send "&cInvalid argument: /location <spawn|arena>"
  7. if arg-1 is "spawn":
  8. set {server.location.spawn} to player's location
  9. send "&6&l[*] &rSet location of spawn to your location."
  10. else if arg-1 is "arena":
  11. set {server.location.arena} to player's location
  12. send "&6&l[*] &rSet location of arena to your location."
  13. else if arg-1 is "ranked":
  14. set {server.location.ranked} to player's location
  15. send "&6&l[*] &rSet location of ranked to your location."
  16.  
  17. command /unban [<offline player>]:
  18. permission: server.moderator
  19. permission message: &cInsufficent permissions.
  20. trigger:
  21. if arg-1 is set:
  22. if {player::%uuid of arg-1%::punishments::ban} is false:
  23. send "&c&l%arg-1% &cisn't banned."
  24. stop
  25. else:
  26. set {player::%uuid of arg-1%::punishments::ban} to false
  27. unban arg-1
  28. send "&aSuccessfully un-punished %arg-1%" to player
  29. loop all players:
  30. if loop-player has permission "server.jradmin":
  31. send "&7&o[%player%: &aSuccessfully un-punished %arg-1%&7&o]" to loop-player
  32. else:
  33. send "&cUnspecified argument: &n/unban <player>"
  34.  
  35. command /ban [<offline player>] [<text>] [<timespan>]:
  36. aliases: /banhammer
  37. permission: server.helper
  38. permission message: &cInsufficent permissions.
  39. trigger:
  40. if arg-1 is set:
  41. if {player::%uuid of arg-1%::punishments::ban} is true:
  42. send "&c&l%arg-1% &cis already banned."
  43. stop
  44. if arg-2 is set:
  45. if arg-3 is set:
  46. set {player::%uuid of arg-1%::punishments::ban} to true
  47. set {player::%uuid of arg-1%::punishments::ban::time} to now
  48. set {ban.expire.%arg 1%} to now
  49. set {player::%uuid of arg-1%::punishments::ban::reason} to arg-2
  50. set {player::%uuid of arg-1%::punishments::ban::distributor} to player
  51. kick arg-1 due to "&cYour account has been suspeneded from &lFight&c.%nl%%nl%&cDistributed by: &l%{player::%uuid of arg-1%::punishments::ban::distributor}%%nl%&cReason: &l%{player::%uuid of arg-1%::punishments::ban::reason}%%nl%&cUnbanned on: &l%{player::%uuid of arg-1%::punishments::ban::time}%"
  52. ban arg-1 due to "&cYour account has been suspeneded from &lFight&c.%nl%%nl%&cDistributed by: &l%{player::%uuid of arg-1%::punishments::ban::distributor}%%nl%&cReason: &l%{player::%uuid of arg-1%::punishments::ban::reason}%%nl%&cUnbanned on: &l%{player::%uuid of arg-1%::punishments::ban::time}%"
  53. make console execute "tempban %arg-1% %arg-3%"
  54. send "&aSuccessfully punished %arg-1%" to player
  55. broadcast "&r"
  56. broadcast "&c&l%arg-1% &chas been suspended from Fight by &l%player%"
  57. broadcast "&cReason: &l%arg-2%"
  58. broadcast "&cTimespan: &l%arg-3%"
  59. broadcast "&r"
  60. loop all players:
  61. if loop-player has permission "server.jradmin":
  62. send "&7&o[%player%: &aSuccessfully punished %arg-1%&7&o]" to loop-player
  63. else:
  64. if player has permission "server.moderator":
  65. set {player::%uuid of arg-1%::punishments::ban} to true
  66. set {player::%uuid of arg-1%::punishments::ban::time} to now
  67. set {player::%uuid of arg-1%::punishments::ban::reason} to arg-2
  68. set {player::%uuid of arg-1%::punishments::ban::distributor} to player
  69. kick arg-1 due to "&cYour account has been suspeneded from &lFight&c.%nl%%nl%&cDistributed by: &l%{player::%uuid of arg-1%::punishments::ban::distributor}%%nl%&cReason: &l%{player::%uuid of arg-1%::punishments::ban::reason}%%nl%&cUnbanned on: &lNever"
  70. ban arg-1 due to "&cYour account has been suspeneded from &lFight&c.%nl%%nl%&cDistributed by: &l%{player::%uuid of arg-1%::punishments::ban::distributor}%%nl%&cReason: &l%{player::%uuid of arg-1%::punishments::ban::reason}%%nl%&cUnbanned on: &lNever"
  71. send "&aSuccessfully punished %arg-1%" to player
  72. broadcast "&r"
  73. broadcast "&c&l%arg-1% &chas been suspended from Fight by &l%player%"
  74. broadcast "&cReason: &l%{player::%uuid of arg-1%::punishments::ban::reason}%"
  75. broadcast "&cTimespan: &lPermanent"
  76. broadcast "&r"
  77. loop all players:
  78. if loop-player has permission "server.jradmin":
  79. send "&7&o[%player%: &aSuccessfully punished %arg-1%&7&o]" to loop-player
  80. else:
  81. send "&cAs a helper, you cannot permanently ban players. If the victim is in need of a permanent ban. Please make a staff report."
  82. stop
  83. else:
  84. send "&cUnspecified argument(s): &n/ban <player> [<reason>] [<time span>]"
  85. else:
  86. send "&cUnspecified argument(s): &n/ban <player> [<reason>] [<time span>]"
  87.  
  88. command /spawn:
  89. trigger:
  90. heal player
  91. set hunger of player to 20
  92. teleport player to {server.location.spawn}
  93. clear player's inventory
  94. set {player::%uuid of player%::spawn} to true
  95. set gamemode of player to survival
  96. reveal the player from all players
  97. set slot 1 of player to iron axe named "&e&lUNRANKED" with lore "||&rRight-click to join the unranked FFA"
  98. set slot 2 of player to diamond axe named "&e&lRANKED" with lore "||&rRight-click to join the ranked FFA"
  99. set slot 3 of player to wooden sword named "&e&lDUELS" with lore "||&rRight-click to duel your friends"
  100. set slot 5 of player to anvil:1 named "&e&lBLACKSMITH" with lore "||&rRight-click to browse the blacksmith."
  101. set slot 6 of player to prismarine shard named "&e&lCLASSES" with lore "||&rRight-click to browse the classes."
  102. set slot 7 of player to hopper named "&e&lSHOP" with lore "||&rRight-click to browse the shop."
  103. set slot 8 of player to chest named "&e&lINVENTORY" with lore "||&rRight-click to browse your inventory."
  104.  
  105. command /spectator:
  106. aliases: /spec, /mod
  107. permission: server.helper
  108. permission message: &cInsufficent permissions.
  109. trigger:
  110. if {player::%uuid of player%::spectator} is true:
  111. delete {player::%uuid of player%::spectator}
  112. clear player's inventory
  113. set gamemode of player to survival
  114. reveal the player from all players
  115. send "&eSpectator mode &r» &7&lOFF"
  116. make player execute "spawn"
  117. else:
  118. set {player::%uuid of player%::spectator} to true
  119. send "&eSpectator mode &r» &7&lON"
  120. make player execute "spawn"
  121. clear player's inventory
  122. set gamemode of player to creative
  123. hide the player from all players
  124.  
  125. set slot 0 of player to book named "&6&lINSPECTION TOOL" with lore "||&rRight-click target player to view their||&rcurrent inventory."
  126. set slot 1 of player to iron fence named "&6&lHALT TOOL" with lore "||&rRight-click target player to freeze them||&rif suspicious of cheating."
  127. set slot 2 of player to stick named "&6&lTELEPORT TOOL" with lore "||&rRight-click to teleport to a random||&ronline player."
  128. set slot 8 of player to light green dye named "&6&lVANISH &7&o(Vanished)" with lore "||&rRight-click to toggle your||&rvisibility."
  129.  
  130. on break:
  131. if {player::%uuid of player%::spawn} is set:
  132. if player has permission "server.admin":
  133. stop
  134. else:
  135. cancel event
  136. on place:
  137. if {player::%uuid of player%::spawn} is set:
  138. if player has permission "server.admin":
  139. stop
  140. else:
  141. cancel event
  142. on inventory click:
  143. if {player::%uuid of player%::specspawntator} is set:
  144. if player has permission "server.admin":
  145. stop
  146. else:
  147. cancel event
  148. on damage:
  149. if {player::%uuid of attacker%::spawn} is set:
  150. if attacker has permission "server.admin":
  151. stop
  152. else:
  153. cancel event
  154.  
  155. on break:
  156. if {player::%uuid of player%::spectator} is set:
  157. if player has permission "server.admin":
  158. stop
  159. else:
  160. cancel event
  161. on place:
  162. if {player::%uuid of player%::spectator} is set:
  163. if player has permission "server.admin":
  164. stop
  165. else:
  166. cancel event
  167. on inventory click:
  168. if {player::%uuid of player%::spectator} is set:
  169. if player has permission "server.admin":
  170. stop
  171. else:
  172. cancel event
  173. on damage:
  174. if {player::%uuid of attacker%::spectator} is set:
  175. if attacker has permission "server.admin":
  176. stop
  177. else:
  178. cancel event
  179. on quit:
  180. if {player::%uuid of player%::spectator} is set:
  181. delete {player::%uuid of player%::spectator}
  182. set gamemode of player to survival
  183. clear player's inventory
  184. reveal player to all players
  185.  
  186. on right click:
  187. if player's tool is a iron axe:
  188. if name of player's tool is "&e&lUNRANKED":
  189. make player execute "/unranked"
  190. cancel event
  191. on right click:
  192. if player's tool is a diamond axe:
  193. if name of player's tool is "&e&lRANKED":
  194. cancel event
  195. make player execute "/ranked"
  196. on right click:
  197. if player's tool is a prismarine shard:
  198. if name of player's tool is "&e&lCLASSES":
  199. make player execute "/class"
  200. cancel event
  201. on right click:
  202. if player's tool is a hopper:
  203. if name of player's tool is "&e&lSHOP":
  204. make player execute "/shop"
  205. cancel event
  206. on right click:
  207. if player's tool is a anvil:1:
  208. if name of player's tool is "&e&lBLACKSMITH":
  209. make player execute "/blacksmith"
  210. cancel event
  211. on right click:
  212. if player's tool is a chest:
  213. if name of player's tool is "&e&lINVENTORY":
  214. make player execute "/inventory"
  215. cancel event
  216. on right click:
  217. if player's tool is a wooden sword:
  218. if name of player's tool is "&e&lDUELS":
  219. cancel event
  220. send "&c&lDUELS &cis currently unavailable, it will be released in &lFight 2.0"
  221. on right click on player:
  222. if player's tool is a book:
  223. if name of player's tool is "&6&lINSPECTION TOOL":
  224. if player has permission "server.helper":
  225. wait 3 ticks
  226. open inventory of clicked entity to player
  227. stop
  228. on right click on player:
  229. if player's tool is a iron fence:
  230. if name of player's tool is "&6&lHALT TOOL":
  231. if player has permission "server.helper":
  232. wait 3 ticks
  233. make player execute "halt %clicked entity%"
  234. stop
  235. on right click:
  236. if player's tool is a stick:
  237. if name of player's tool is "&6&lTELEPORT TOOL":
  238. if player has permission "server.helper":
  239. wait 3 ticks
  240. teleport player to a random element out of all players
  241. stop
  242. on right click:
  243. if player's tool is a light green dye:
  244. if name of player's tool is "&6&lVANISH &7&o(Vanished)":
  245. if player has permission "server.helper":
  246. wait 3 ticks
  247. reveal the player from all players
  248. send "&eVisibility &r» &7&lOFF"
  249. set slot 8 of player to red dye named "&6&lVANISH &7&o(Not Vanished)" with lore "||&rRight-click to toggle your||&rvisibility."
  250. on right click:
  251. if player's tool is a red dye:
  252. if name of player's tool is "&6&lVANISH &7&o(Not Vanished)":
  253. if player has permission "server.helper":
  254. wait 3 ticks
  255. hide the player from all players
  256. send "&eVisibility &r» &7&lON"
  257. set slot 8 of player to light green dye named "&6&lVANISH &7&o(Vanished)" with lore "||&rRight-click to toggle your||&rvisibility."
  258.  
  259. command /kick [<player>] [<text>]:
  260. permission: server.helper
  261. permission message: &cInsufficent permissions.
  262. trigger:
  263. if arg-1 is set:
  264. if arg-2 is set:
  265. kick arg-1 due to arg-2
  266. set {player::%uuid of arg-1%::punishments::kick::reason} to true
  267. send "&aSuccessfully punished %arg-1%" to player
  268. broadcast "&r"
  269. broadcast "&c&l%arg-1% &chas been kicked from Fight by &l%player%"
  270. broadcast "&cReason: &l%{player::%uuid of arg-1%::punishments::kick::reason}%"
  271. broadcast "&r"
  272. loop all players:
  273. if loop-player has permission "server.jradmin":
  274. send "&7&o[%player%: &aSuccessfully punished %arg-1%&7&o]" to loop-player
  275. else:
  276. send "&cUnspecified argument(s): &n/kick <player> <reason>"
  277. else:
  278. send "&cUnspecified argument(s): &n/kick <player> <reason>"
  279.  
  280. command /mute [<player>] [<text>] [<timespan>]:
  281. aliases: /silence
  282. permission: server.helper
  283. permission message: &cInsufficent permissions.
  284. trigger:
  285. if arg-1 is set:
  286. if arg-2 is set:
  287. if arg-3 is set:
  288. set {player::%uuid of arg-1%::punishments::mute} to true
  289. set {player::%uuid of arg-1%::punishments::mute::time} to now
  290. set {mute.expire.%arg 1%} to now
  291. set {player::%uuid of arg-1%::punishments::mute::reason} to arg-2
  292. set {player::%uuid of arg-1%::punishments::mute::distributor} to player
  293. set {_unmutetime} to difference between {mute.expire.%arg 1%} and now
  294. send "&aSuccessfully punished %arg-1%" to player
  295. broadcast "&r"
  296. broadcast "&c&l%arg-1% &chas been silenced by &l%player%"
  297. broadcast "&cReason: &l%{player::%uuid of arg-1%::punishments::ban::reason}%"
  298. broadcast "&cTimespan: &l%arg-3%"
  299. broadcast "&r"
  300. loop all players:
  301. if loop-player has permission "server.jradmin":
  302. send "&7&o[%player%: &aSuccessfully punished %arg-1%&7&o]" to loop-player
  303. wait {_unmutetime}
  304. set {player::%uuid of arg-1%::punishments::mute} to false
  305. else:
  306. set {player::%uuid of arg-1%::punishments::mute} to true
  307. set {player::%uuid of arg-1%::punishments::mute::reason} to arg-2
  308. set {player::%uuid of arg-1%::punishments::mute::distributor} to player
  309. send "&aSuccessfully punished %arg-1%" to player
  310. broadcast "&r"
  311. broadcast "&c&l%arg-1% &chas been silenced by &l%player%"
  312. broadcast "&cReason: &l%{player::%uuid of arg-1%::punishments::mute::reason}%"
  313. broadcast "&cTimespan: &lPermanent"
  314. broadcast "&r"
  315. loop all players:
  316. if loop-player has permission "server.jradmin":
  317. send "&7&o[%player%: &aSuccessfully punished %arg-1%&7&o]" to loop-player
  318. else:
  319. send "&cUnspecified argument(s): &n/mute <player> <reason> <timespan>"
  320. else:
  321. send "&cUnspecified argument(s): &n/mute <player> <reason> <timespan>"
  322.  
  323. command /warn [<player>] [<text>]:
  324. permission: server.helper
  325. permission message: &cInsufficent permissions.
  326. trigger:
  327. if arg-1 is set:
  328. if arg-2 is set:
  329. set {player::%uuid of arg-1%::punishments::mute::reason} to arg-2
  330. add 1 to {player::%uuid of arg-1%::punishments::warn::amount}
  331. if {player::%uuid of arg-1%::punishments::warn::amount} is greater than 4:
  332. delete {player::%uuid of arg-1%::punishments::warn::amount}
  333. kick arg-1 due to "&cReached warn limit."
  334. broadcast ""
  335. broadcast "&c&l%arg-1% &chas been warned by &l%player%"
  336. broadcast "&cReason: &l%{player::%uuid of arg-1%::punishments::mute::reason}%"
  337. broadcast ""
  338. else:
  339. send "&cUnspecified argument(s): &n/warn <player> <reason>"
  340. else:
  341. send "&cUnspecified argument(s): &n/warn <player> <reason>"
  342.  
  343. command /halt [<player>]:
  344. aliases: /freeze, /ss
  345. permission: server.helper
  346. permission message: &cInsufficent permissions.
  347. trigger:
  348. if arg-1 is set:
  349. if {player::%arg-1's uuid%::frozen} is set:
  350. delete {player::%uuid of arg-1%::frozen}
  351. send "&aSuccessfully un-frozen %arg-1%" to player
  352. send "&aYou've been un-frozen." to arg-1
  353. loop all players:
  354. if loop-player has permission "server.jradmin":
  355. send "&7&o[%player%: &aSuccessfully un-frozen %arg-1%&7&o]" to loop-player
  356.  
  357. else:
  358. loop all players:
  359. if loop-player has permission "server.jradmin":
  360. send "&7&o[%player%: &aSuccessfully frozen %arg-1%&7&o]" to loop-player
  361. set {player::%uuid of arg-1%::frozen} to true
  362. send "&aSuccessfully frozen %arg-1%" to player
  363. send "&cYou've been frozen." to arg-1
  364. make player execute "/msg %arg-1% You've been frozen by a staff member, please connect to our discord ASAP. Logging out will result in a permanent ban. https://discord.gg/bBTFgB"
  365. else:
  366. send "&cUnspecified argument: &n/halt <player>"
  367.  
  368. on any move:
  369. if {player::%uuid of player%::frozen} is true:
  370. cancel event
  371. send "&cYou've been frozen by a staff member, please connect to our discord ASAP. Logging out will result in a permanent ban. https://discord.gg/bBTFgB"
  372.  
  373. on join:
  374. if player has permission "server.helper":
  375. set join message to ""
  376. loop all players:
  377. if loop-player has permission "server.helper":
  378. send "&9[Staff] &b%player% has connected to the server." to loop-player
  379.  
  380. on disconnect:
  381. if player has permission "server.helper":
  382. set leave message to ""
  383. loop all players:
  384. if loop-player has permission "server.helper":
  385. send "&9[Staff] &b%player% has disconnected from the server." to loop-player
  386.  
  387. if {player::%player's uuid%::frozen} is true:
  388. loop all players:
  389. if loop-player has permission "server.helper":
  390. send "&c%player% has logged out whilst frozen." to loop-player
  391.  
  392. on damage:
  393. if {player::%uuid of victim%::frozen} is set:
  394. cancel event
  395. on rightclick on player:
  396. if {player::%uuid of clicked entity%::frozen} is set:
  397. if player has permission "server.helper":
  398. push player up at speed 1.2
  399. stop
  400.  
  401. command /gamemode [<text>] [<player>]:
  402. permission: server.modplus
  403. permission message: &cInsufficent permissions.
  404. aliases: /gm
  405. trigger:
  406. if argument 1 is set:
  407. if argument 1 is "0", "S" or "Survival":
  408. if argument 2 isn't set:
  409. send "&6&l[*] &rYou've set your gamemode to &esurvival."
  410. set gamemode of player to survival
  411.  
  412. else:
  413. if player has permission "server.jradmin":
  414. send "&6&l[*] &rYou've set %arg-2%'s gamemode to &esurvival." to player
  415. send "&6&l[*] &rYour gamemode was set to &esurvival &rby &e%player%." to arg-2
  416. set gamemode of arg-2 to survival
  417. else:
  418. send "&cYou don't have sufficent permissions to change other users gamemode."
  419. else if argument 1 is "1", "C" or "Creative":
  420. if argument 2 isn't set:
  421. send "&6&l[*] &rYou've set your gamemode to &ecreative."
  422. set gamemode of player to creative
  423.  
  424. else:
  425. if player has permission "server.jradmin":
  426. send "&6&l[*] &rYou've set %arg-2%'s gamemode to &ecreative." to player
  427. send "&6&l[*] &rYour gamemode was set to &ecreative &rby &e%player%." to arg-2
  428. set gamemode of arg-2 to creative
  429. else:
  430. send "&cYou don't have sufficent permissions to change other users gamemode."
  431.  
  432. else if argument 1 is "2", "A" or "Adventure":
  433. if argument 2 isn't set:
  434. send "&6&l[*] &rYou've set your gamemode to &aadventure."
  435. set gamemode of player to adventure
  436.  
  437. else:
  438. if player has permission "server.jradmin":
  439. send "&6&l[*] &rYou've set %arg-2%'s gamemode to &eadventure." to player
  440. send "&6&l[*] &rYour gamemode was set to &eadventure &rby &e%player%." to arg-2
  441. set gamemode of arg-2 to adventure
  442. else:
  443. send "&cYou don't have sufficent permissions to change other users gamemode."
  444. else:
  445. send "&cUnspecified argument(s): &n/gamemode <gamemode> [<player>]"
  446.  
  447. command /heal [<player>]:
  448. permission: server.modplus
  449. permission message: &cInsufficent permissions.
  450. trigger:
  451. if argument 1 isn't set:
  452. send "&6&l[*] &rYou've healed yourself."
  453. heal player
  454. set hunger of player to 20
  455.  
  456. else:
  457. send "&6&l[*] &rYou've healed &e%arg-1%." to player
  458. send "&6&l[*] &rYou've been healed by &e%player%" to argument 1
  459. heal arg-1
  460. set hunger of arg-1 to 20
  461.  
  462. command /teleport [<player>] [<player>]:
  463. permission: server.helper
  464. permission message: &cInsufficent permissions.
  465. aliases: /tp, /tport
  466. trigger:
  467. if argument 1 is set:
  468. if argument 2 isn't set:
  469. if argument 1 isn't player:
  470. send "&6&l[*] &rTeleporting yourself to &e%arg-1%." to player
  471. teleport player to argument 1
  472.  
  473. else:
  474. send "&cYou cannot teleport to yourself."
  475.  
  476. else if argument 2 is set:
  477. if player has permission "server.modplus":
  478. if argument 1 and argument 2 are player:
  479. send "&cYou cannot teleport to yourself."
  480.  
  481. else:
  482. send "&6&l[*] &rTeleporting &e%arg-1% &rto &e%arg-2%."
  483. teleport arg-1 to arg-2
  484. else:
  485. send "&cUnspecified argument(s): &n/teleport <player> [<player>]"
  486.  
  487. command /set [<offline player>] [<text>] [<text>]:
  488. permission: server.jradmin
  489. permission message: &cInsufficent permissions.
  490. trigger:
  491. if arg-1 is set:
  492. if arg-2 is set:
  493. if arg-2 is "coins":
  494. if arg-3 is set:
  495. set {player::%uuid of player%::game::coins} to arg-3 parsed as a number
  496. send "&6&l[*] &rSet %arg-1%'s coins to %arg-3%"
  497. else:
  498. send "&cUnspecified argument(s): &n/set <player <variable> <setting>"
  499. if arg-2 is "elo":
  500. if arg-3 is set:
  501. set {player::%uuid of player%::game::elo} to arg-3 parsed as a number
  502. send "&6&l[*] &rSet %arg-1%'s ELO to %arg-3%"
  503. else:
  504. send "&cUnspecified argument(s): &n/set <player <variable> <setting>"
  505. if arg-2 is "prefix":
  506. if arg-3 is set:
  507. set {player::%uuid of player%::rank::prefix} to colored arg-3
  508. send "&6&l[*] &rSet %arg-1%'s prefix to %arg-3%"
  509. else:
  510. send "&cUnspecified argument(s): &n/set <player <variable> <setting>"
  511. if arg-2 is "equip":
  512. if arg-3 is set:
  513. set {player::%uuid of player%::ranked::equip} to arg-3 parsed as a number
  514. send "&6&l[*] &rSet %arg-1%'s Equip Points to %arg-3%"
  515. else:
  516. send "&cUnspecified argument(s): &n/set <player <variable> <setting>"
  517. else if arg-2 isn't "elo", "coins", "equip" or "prefix":
  518. send "&cUnknown variable: &nElo, Coins, Equip & Prefix"
  519. else:
  520. send "&cUnspecified argument(s): &n/set <player> <variable> <setting>"
  521. else:
  522. send "&cUnspecified argument(s): &n/set <player> <variable> <setting>"
  523. on chat:
  524. if {player::%uuid of player%::chat::staff} is set:
  525. cancel event
  526. loop all players:
  527. if loop-player has permission "server.helper":
  528. send "&9[Staff] &b%player% &r» &7%message%"
  529. if {player::%uuid of player%::punishments::mute} is true:
  530. cancel event
  531. send "&cYou cannot speak whilst silenced."
  532. else:
  533. cancel event
  534. set tab list name of player to "%{player::%player's uuid%::rank::prefix}%%player%"
  535. broadcast "&7(%{player::%uuid of player%::game::elorank}%) %{player::%uuid of player%::rank::prefix}%%player% » &r%message%"
  536.  
  537. command /rank [<offline player>] [<text>]:
  538. permission: server.admin
  539. permission message: &cInsufficent permissions.
  540. aliases: /setrank
  541. trigger:
  542. if argument 1 is set:
  543. if argument 2 is set:
  544. if argument 2 is "admin":
  545.  
  546. set {player::%arg-1's uuid%::rank} to "Admin"
  547. set {player::%arg-1's uuid%::rank::prefix} to "&8[&4Admin&8] &4"
  548. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  549. send "&6&l[*] &rYou've updated &e%arg-1%'s &rrank to &eAdmin" to player
  550. send "&6&l[*] &rYour rank has been updated to &eAdmin &rby &e%player%" to argument 1
  551.  
  552. else if argument 2 is "jradmin" or "junioradmin":
  553.  
  554. set {player::%arg-1's uuid%::rank} to "Junior Admin"
  555. set {player::%arg-1's uuid%::rank::prefix} to "&8[&cJuniorAdmin&8] &c"
  556. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  557. send "&6&l[*] &rYou've updated &e%arg-1%'s &rrank to &eJunior Admin" to player
  558. send "&6&l[*] &rYour rank has been updated to &eJunior Admin &rby &e%player%" to argument 1
  559.  
  560. else if argument 2 is "modplus" or "mod+":
  561.  
  562. set {player::%arg-1's uuid%::rank} to "Mod Plus"
  563. set {player::%arg-1's uuid%::rank::prefix} to "&8[&9Moderator+&8] &9"
  564. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  565. send "&6&l[*] &rYou've updated &e%arg-1%'s &rrank to &eMod Plus" to player
  566. send "&6&l[*] &rYour rank has been updated to &eMod Plus &rby &e%player%" to argument 1
  567.  
  568. else if argument 2 is "mod":
  569.  
  570. set {player::%arg-1's uuid%::rank} to "Mod"
  571. set {player::%arg-1's uuid%::rank::prefix} to "&8[&5Mod&8] &5"
  572. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  573. send "&6&l[*] &rYou've updated &e%arg-1%'s &rrank to &eMod" to player
  574. send "&6&l[*] &rYour rank has been updated to &eMod &rby &e%player%" to argument 1
  575.  
  576. else if argument 2 is "helper":
  577.  
  578. set {player::%arg-1's uuid%::rank} to "Helper"
  579. set {player::%arg-1's uuid%::rank::prefix} to "&8[&dHelper&8] &d"
  580. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  581. send "&6&l[*] &rYou've updated &c%arg-1%'s &rrank to &eHelper" to player
  582. send "&6&l[*] &rYour rank has been updated to &eHelper &rby &e%player%" to argument 1
  583.  
  584. else if argument 2 is "builder":
  585.  
  586. set {player::%arg-1's uuid%::rank} to "Builder"
  587. set {player::%arg-1's uuid%::rank::prefix} to "&8[&aBuilder&8] &a"
  588. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  589. send "&6&l[*] &rYou've updated &e%arg-1%'s &rrank to &eBuilder" to player
  590. send "&6&l[*] &rYour rank has been updated to &eBuilder &rby &e%player%" to argument 1
  591.  
  592. else if argument 2 is "none" or "default":
  593.  
  594. set {player::%arg-1's uuid%::rank} to "None"
  595. set {player::%arg-1's uuid%::rank::prefix} to "&7"
  596. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  597. send "&6&l[*] &rYou've updated &e%arg-1%'s &rrank to &eNone" to player
  598. send "&6&l[*] &rYour rank has been updated to &eNone &rby &e%player%" to argument 1
  599.  
  600. else:
  601. send "&cInvalid group title: Admin, JrAdmin, ModPlus, Mod, Helper, Builder or None"
  602. else:
  603. send "&cUnspecified argument(s): &n/rank <player> <rank>"
  604. else:
  605. send "&cUnspecified argument(s): &n/rank <player> <rank>"
  606.  
  607. on first join:
  608. wait 3 ticks
  609. open chest with 1 row named "&8Terms and Conditions" to player
  610. format slot 4 of player with book named "" with lore "||&rBy playing on our server, you agree to the following: ||||&rAt any time we are allowed to freeze you and screenshare you||&rnot complying with us will result in a ban.||&rIf you purchase anything from our store, you agree||&rthat refunding will result in a blacklist from our server||&rif you purchase anything with another users name||&ryou cannot transfer it." to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement