Advertisement
AurasPrivate

Air

Aug 20th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.72 KB | None | 0 0
  1. on chat:
  2. cancel event
  3. set tab list name of player to "%{rank.%player's uuid%}%%player%"
  4. broadcast "%{rank.%player's uuid%}%%player% &8» &r%message%"
  5.  
  6.  
  7. command /¶rank [<offline player>] [<text>]:
  8. permission: air.rank
  9. trigger:
  10. if arg-1 isn't set:
  11. message "&cIncorrect usage."
  12. if arg-1 is set:
  13. if arg-2 is "admin":
  14. if player has permission "server.rank":
  15. set {rank.%arg-1's uuid%} to "&8[&cAdmin&8] &c"
  16. set {shortrank.%arg-1's uuid%} to "&rAdministrator"
  17. set tab list name of arg 1 to "&8[&cAdmin&8] &c%player%"
  18. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bAdmin &eprevious rank removed."
  19. send "&eYour server rank has been set to &bAdmin&e!" to arg 1
  20. if player doesn't have permission "server.manager":
  21. send "&cYou're not allowed to execute this command!"
  22. if arg-2 is "owner":
  23. if player has permission "server.rank":
  24. set {rank.%arg-1's uuid%} to "&8[&4Owner&8] &4"
  25. set {shortrank.%arg-1's uuid%} to "&rOwner"
  26. set tab list name of arg 1 to "&8[&4Owner&8] &4%player%"
  27. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bOwner &eprevious rank removed."
  28. send "&eYour server rank has been set to &bOwner&e!" to arg 1
  29. if player doesn't have permission "server.manager":
  30. send "&cYou're not allowed to execute this command!"
  31. if arg-2 is "mod":
  32. if player has permission "server.rank":
  33. set {rank.%arg-1's uuid%} to "&8[&5Mod&8] &5"
  34. set {shortrank.%arg-1's uuid%} to "&rMod"
  35. set tab list name of arg 1 to "&8[&5Mod&8] &5%player%"
  36. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bMod &eprevious rank removed."
  37. send "&eYour server rank has been set to &bMod&e!" to arg 1
  38. if player doesn't have permission "server.manager":
  39. send "&cYou're not allowed to execute this command!"
  40. if arg-2 is "manager":
  41. if player has permission "server.rank":
  42. set {rank.%arg-1's uuid%} to "&8[&bManager&8] &b"
  43. set {shortrank.%arg-1's uuid%} to "&rManager"
  44. set tab list name of arg 1 to "&8[&bManager&8] &b%player%"
  45. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bManager&eprevious rank removed."
  46. send "&eYour server rank has been set to &bManager&e!" to arg 1
  47. if player doesn't have permission "server.manager":
  48. send "&cYou're not allowed to execute this command!"
  49. if arg-2 is "user":
  50. if player has permission "server.rank":
  51. set {rank.%arg-1's uuid%} to "&7"
  52. set {shortrank.%arg-1's uuid%} to "&rUser"
  53. set tab list name of arg 1 to "&7%player%"
  54. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bUser &eprevious rank removed."
  55. send "&eYour server rank has been set to &bUser&e!" to arg 1
  56. if player doesn't have permission "server.manager":
  57. send "&cYou're not allowed to execute this command!"
  58. if arg-2 is "tmod":
  59. if player has permission "server.rank":
  60. set {rank.%arg-1's uuid%} to "&8[&dTrial Mod&8] &d"
  61. set {shortrank.%arg-1's uuid%} to "&rTrial Mod"
  62. set tab list name of arg 1 to "&8[&dTrial Mod&8] &d%player%"
  63. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bTrial Moderator &eprevious rank removed."
  64. send "&eYour server rank has been set to &bTrial Moderator&e!" to arg 1
  65. if player doesn't have permission "server.manager":
  66. send "&cYou're not allowed to execute this command!"
  67.  
  68. on first join:
  69. set {rank.%player's uuid%} to "&7"
  70. set {shortrank.%player's uuid%} to "&rUser"
  71.  
  72. command /rank [<offline player>]:
  73. permission: air.rank
  74. permission message: &cYou do not have the required permissions to execute this command.
  75. trigger:
  76. if arg-1 is not set:
  77. send "&cIncorrect usage format, /rank <player>"
  78. else if arg-1 is set:
  79. open chest with 5 rows named "&8Rank Selection &8(&n%arg-1%)" to player
  80. format slot 4 of player with arg-1's skull named "&bModifying %arg-1%" with lore "||&rIn this GUI you can modify||&r%arg-1%'s rank.||||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1's uuid%}%" to be unstealable
  81. format slot 22 of player with paper named "&bRanks" to be unstealable
  82. format slot 29 of player with book named "&4Owner" with lore "||&rClick to change %arg-1%'s rank||&rto owner." to close then run [make player execute "¶rank %arg-1% owner"]
  83. format slot 30 of player with book named "&bManager" with lore "||&rClick to change %arg-1%'s rank||&rto manager." to close then run [make player execute "¶rank %arg-1% manager"]
  84. format slot 31 of player with book named "&cAdmin" with lore "||&rClick to change %arg-1%'s rank||&rto administrator." to close then run [make player execute "¶rank %arg-1% admin"]
  85. format slot 32 of player with book named "&5Mod" with lore "||&rClick to change %arg-1%'s rank||&rto moderator." to close then run [make player execute "¶rank %arg-1% mod"]
  86. format slot 33 of player with book named "&dTrial Mod" with lore "||&rClick to change %arg-1%'s rank||&rto trial moderator." to close then run [make player execute "¶rank %arg-1% tmod"]
  87. format slot 40 of player with book named "&7User" with lore "||&rClick to change %arg-1%'s rank||&rto user." to close then run [make player execute "¶rank %arg-1% user"]
  88.  
  89. #===========================================================================================================================
  90.  
  91. command /location [<text>]:
  92. permission: air.location
  93. permission message: &cYou do not have the required permissions to execute this command.
  94. trigger:
  95. if arg-1 is set:
  96. if arg-1 is "ss" or "screenshare":
  97. set {screenshare} to location of player
  98. message "&eSuccessfully set the location of &6&lScreenshare &eto your location!" to player
  99. else if arg-1 is "hub" or "spawn":
  100. set {spawn} to location of player
  101. message "&eSuccessfully set the location of &6&lSpawn &eto your location!" to player
  102.  
  103.  
  104. command /ss [<player>]:
  105. description: Freeze the player and send them a request to join discord!
  106. permission: air.freeze
  107. permission message: &cYou do not have the required permissions to execute this command.
  108. executable by: players
  109. aliases: /ss, /screenshare, /freeze
  110. trigger:
  111. if arg 1 is not set:
  112. send "&cIncorrect usage format, /freeze <player>"
  113. if arg 1 is set:
  114. if {%arg-1%.ss} is true:
  115. teleport arg-1 to {spawn}
  116. send "&e%arg-1% &eis no longer frozen!" to player
  117. send "&eYou are no longer frozen!" to arg 1
  118. set {%arg-1%.ss} to false
  119. remove slowness from arg-1
  120. delete {_ss.coords.%arg-1%}
  121. stop trigger
  122. if {%arg-1%.ss} is not set:
  123. set {%arg-1%.ss} to true
  124. add 1 to {frozencounter.%arg-1%}
  125. teleport arg-1 to {screenshare}
  126. send "&aThis player has been frozen %{frozencounter.%arg-1%}% times."
  127. send "&a%arg-1% &ahas been frozen." to player
  128. send "&f█████████" to arg 1
  129. send "&f████&c█&f████" to arg 1
  130. send "&f███&c█&0█&c█&f███" to arg 1
  131. send "&f██&c█&6█&0█&6█&c█&f██" to arg 1
  132. send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member." to arg 1
  133. send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e." to arg 1
  134. send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord." to arg 1
  135. send "&c█&6███&0█&6███&c█ &7https://discord.gg/TZpBkkE" to arg 1
  136. send "&c█████████" to arg 1
  137. send "&f█████████" to arg 1
  138. apply slowness 999 to arg-1 for 1000 minutes
  139. set {_ss.coords.%arg-1%} to arg-1's location
  140. stop trigger
  141. if {%arg-1%.ss} is false:
  142. add 1 to {frozencounter.%arg-1%}
  143. teleport arg-1 to {screenshare}
  144. send "&aThis player has been frozen %{frozencounter.%arg-1%}% times."
  145. send "&a%arg-1% &ahas been frozen." to player
  146. send "&f█████████" to arg 1
  147. send "&f████&c█&f████" to arg 1
  148. send "&f███&c█&0█&c█&f███" to arg 1
  149. send "&f██&c█&6█&0█&6█&c█&f██" to arg 1
  150. send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member." to arg 1
  151. send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e." to arg 1
  152. send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord." to arg 1
  153. send "&c█&6███&0█&6███&c█ &7https://discord.gg/TZpBkkE" to arg 1
  154. send "&c█████████" to arg 1
  155. send "&f█████████" to arg 1
  156. set {%arg-1%.ss} to true
  157. apply slowness 999 to arg-1 for 1000 minutes
  158. set {_ss.coords.%arg-1%} to arg-1's location
  159. stop trigger
  160.  
  161. command /staffmode:
  162. description: Change into a moderation based gamemode!
  163. permission: air.staffmode
  164. permission message: &cYou do not have the required permissions to execute this command.
  165. executable by: players
  166. aliases: /staffmode, /staff, /h
  167. trigger:
  168. if {staffmode.%player%} is not set:
  169. message "&eStaff mode preperation..."
  170. set {staffmode.%player%} to true
  171. message "&eStaff mode &6&lEnabled"
  172. hide the player from all players
  173. set gamemode of player to creative
  174. clear player's inventory
  175. apply slowness 555 to player for 0.7 seconds
  176. set slot 0 of player to a compass named "&ePush"
  177. wait 1 tick
  178. set slot 1 of player to a book named "&eInspect Inventory"
  179. wait 1 tick
  180. set slot 2 of player to a anvil named "&eFreeze"
  181. wait 1 tick
  182. set slot 3 of player to a orange carpet named "&e"
  183. wait 1 tick
  184. set slot 7 of player to a head named "&eStaff List"
  185. wait 1 tick
  186. set slot 8 of player to a gray dye named "&eVisibility"
  187. else if {staffmode.%player%} is set:
  188. delete {staffmode.%player%}
  189. message "&eStaff mode &6&lDisabled"
  190. apply slowness 555 to player for 0.7 seconds
  191. reveal player to all players
  192. set gamemode of player to survival
  193. clear player's inventory
  194.  
  195. on join:
  196. wait 5 ticks
  197. make player execute "spawn"
  198.  
  199. on join:
  200. if player has permission "air.staff":
  201. loop all players:
  202. loop-player has permission "air.staff"
  203. send "&9[Staff] &b%player% joined the server." to loop-player
  204. on quit:
  205. if player has permission "air.staff":
  206. loop all players:
  207. loop-player has permission "air.staff"
  208. send "&9[Staff] &b%player% left the server." to loop-player
  209.  
  210. on rightclick:
  211. if {staffmode.%player%} is set:
  212. if player's tool is a compass named "&ePush":
  213. push player in direction of player at speed 1
  214.  
  215. on right click on a player:
  216. if {staffmode.%player%} is set:
  217. if player's tool is a book named "&eInspect Inventory":
  218. open the inventory of the clicked entity to the player
  219.  
  220. on right click on a player:
  221. if {staffmode.%player%} is set:
  222. if player's tool is a anvil named "&eFreeze":
  223. wait 5 ticks
  224. make player execute "ss %clicked entity%"
  225.  
  226. on right click:
  227. if {staffmode.%player%} is set:
  228. if player's tool is a head named "&eStaff List":
  229. wait 5 ticks
  230. make player execute command "air:stafflist"
  231.  
  232. on right click:
  233. if {staffmode.%player%} is set:
  234. if player's tool is a gray dye named "&eVisibility":
  235. set slot 8 of player to light green dye named "&eVisibility"
  236. reveal the player from all players
  237. send "&eYou have been revealed to all players." to the player
  238.  
  239. on left click:
  240. if {staffmode.%player%} is set:
  241. if player's tool is a light green dye named "&eVisibility":
  242. set slot 8 of player to gray dye named "&eVisibility"
  243. hide the player from all players
  244. send "&eYou have been hidden from all players." to the player
  245.  
  246. on place:
  247. if {staffmode.%player%} is true:
  248. if player doesn't have permission "air.admin":
  249. cancel event
  250. stop
  251. else:
  252. stop
  253. on break:
  254. if {staffmode.%player%} is true:
  255. if player doesn't have permission "air.admin":
  256. cancel event
  257. stop
  258. else:
  259. stop
  260.  
  261. on inventory click:
  262. if {staffmode.%player%} is true:
  263. if player doesn't have permission "air.admin":
  264. cancel event
  265. stop
  266. else:
  267. stop
  268.  
  269. on hunger bar change:
  270. if {staffmode.%player%} is true:
  271. set the player's food level to 10
  272.  
  273. on damage:
  274. if {staffmode.%victim%} is true:
  275. cancel event
  276. if {staffmode.%attacker%} is true:
  277. cancel event
  278.  
  279. on drop:
  280. if {staffmode.%player%} is true:
  281. cancel event
  282. #===========================================================================================================================
  283.  
  284. command /teleport [<player>] [<player>]:
  285. description: Teleport to a player
  286. permission: air.teleport
  287. permission message: &cYou do not have the required permissions to execute this command.
  288. executable by: players
  289. aliases: /teleport, /tp, /tport, /telep
  290. trigger:
  291. if arg-1 is set:
  292. if arg-2 is set:
  293. if arg-1 is player:
  294. teleport arg-1 to arg-2
  295. message "&eTeleporting to %arg-2%"
  296. else if arg-1 isn't player:
  297. teleport arg-1 to arg-2
  298. message "&eTeleported %arg-1% to %arg-2%"
  299. else if arg-2 isn't set:
  300. teleport player to arg-1
  301. message "&eTeleporting to %arg-1%"
  302. else:
  303. message "&cIncorrect usage format, /tp <player> [other player]"
  304.  
  305. command /tphere [<player>]:
  306. description: Teleport to a player to you
  307. permission: air.teleport
  308. permission message: &cYou do not have the required permissions to execute this command.
  309. executable by: players
  310. trigger:
  311. if arg-1 is set:
  312. if arg-1 is player:
  313. message "&cYou cannot teleport to yourself."
  314. else if arg-1 isn't player:
  315. teleport arg-1 to player
  316. message "&eTeleported %arg-1% to player"
  317. else:
  318. message "&cIncorrect usage format, /tphere <player>"
  319.  
  320. command /gm [<text>] [<player>]:
  321. description: Change your gamemode
  322. permission: air.gamemode
  323. permission message: &cYou do not have the required permissions to execute this command.
  324. executable by: players
  325. trigger:
  326. if arg-1 is set:
  327. if arg-2 is set:
  328. if arg-1 is "C", "1" or "Creative":
  329. set gamemode of arg-2 to creative
  330. message "&eSet the gamemode of %arg-2% to &6&lCreative" to player
  331. message "&eGamemode changed to &6&lCreative&e by %player%" to arg-2
  332. else if arg-1 is "S", "0" or "Survival":
  333. set gamemode of arg-2 to survival
  334. message "&eSet the gamemode of %arg-2% to &6&lSurvival" to player
  335. message "&eGamemode changed to &6&lSurvival&e by %player%" to arg-2
  336. else if arg-1 is "A", "2" or "Adventure":
  337. set gamemode of arg-2 to adventure
  338. message "&eSet the gamemode of %arg-2% to &6&lAdventure" to player
  339. message "&eGamemode changed to &6&lAdventure&e by %player%" to arg-2
  340. else if arg-2 isn't set:
  341. if arg-1 is "C", "1" or "Creative":
  342. set gamemode of player to creative
  343. message "&eSet your gamemode to &6&lCreative" to player
  344. else if arg-1 is "S", "0" or "Survival":
  345. set gamemode of player to survival
  346. message "&eSet your gamemode to &6&lSurvival" to player
  347. else if arg-1 is "A", "2" or "Adventure":
  348. set gamemode of player to adventure
  349. message "&eSet your gamemode to &6&lAdventure" to player
  350. else if arg-2 isn't "A", "2", "Adventure", "S", "0", "Survival", "C", "1" or "Creative":
  351. message "&cUnexpected error! gamemode.Type = false"
  352. message "&cPlease choose a valid gamemode!"
  353. message ""
  354. message "&4If you feel that this is incorrect, please contact your server developer."
  355. else:
  356. message "&cIncorrect usage format, /gm <gamemode> [player]"
  357.  
  358. on command "/gmc":
  359. cancel event
  360. make player execute "gm c"
  361.  
  362. on command "/gms":
  363. cancel event
  364. make player execute "gm s"
  365.  
  366. on command "/gma":
  367. cancel event
  368. make player execute "gm a"
  369.  
  370. on command "/gmsp":
  371. cancel event
  372. send "&cThis gamemode has been disabled by an administrator."
  373.  
  374. #===========================================================================================================================
  375.  
  376. command /air:stafflist:
  377. trigger:
  378. if player has permission "air.staff":
  379. loop all players:
  380. loop-player has permission "minezone.staff"
  381. add loop-player to {_online staff::*}
  382.  
  383. size of {_online staff::*} is 0:
  384. message "No staff currently online!"
  385. else:
  386. message "&e&m*------------------------------------------*"
  387. message "&7Staff &e» &r%{_online staff::*}%"
  388. message "&e&m*------------------------------------------*"
  389. else:
  390. message "&rUnknown command. Type ""/help"" for help."
  391.  
  392. #===========================================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement