Entities

Untitled

Oct 17th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.98 KB | None | 0 0
  1. on first join:
  2. make player execute ":scoreboard:"
  3. set {rank.%player's uuid%} to "&7"
  4. set {userrank.%player's uuid%} to "None"
  5. set {rankcost.%player's uuid%} to 50000
  6. set {mined.%player's uuid%} to 0
  7. set {level.%player's uuid%} to 1
  8. set {points.%player's uuid%} to 0
  9. set {prestige.%player's uuid%} to 0
  10. set {staffuser.%player's uuid%} to false
  11.  
  12. on join:
  13. make player execute ":scoreboard:"
  14.  
  15.  
  16.  
  17. command /:scoreboard:
  18. trigger:
  19. wipe player's sidebar
  20. set name of sidebar of player to "&cBLOCKED &7PRISONS"
  21. set score "&8&m-----------*-----------" in sidebar of player to 13
  22. set score "&cRank:" in sidebar of player to 12
  23. set score "&7%{userrank.%player's uuid%}%" in sidebar of player to 11
  24. set score "&1" in sidebar of player to 10
  25. set score "&cPrestige:" in sidebar of player to 9
  26. set score "&7%{prestige.%player's uuid%}%" in sidebar of player to 8
  27. set score "&8&m----------*-*----------" in sidebar of player to 7
  28. set score "&cUser:" in sidebar of player to 6
  29. set score "&7Name: &7%player%" in sidebar of player to 5
  30. set score "&7Level: &7%{level.%player's uuid%}%" in sidebar of player to 4
  31. set score "&7Points: &7%{points.%player's uuid%}%" in sidebar of player to 3
  32. set score "&8&m--------*-----*--------" in sidebar of player to 1
  33.  
  34. command /group [<offline player>] [<text>]:
  35. permission: server.set
  36. permission message: &cInsufficent permissions.
  37. trigger:
  38. if argument 1 is set:
  39. if argument 2 is set:
  40. if argument 2 is "owner":
  41.  
  42. set {userrank.%arg-1's uuid%} to "Owner"
  43. set {rank.%arg-1's uuid%} to "&8(&cOwner&8) &c"
  44. set {colour.%arg-1's uuid%} to "&c"
  45. set {staffuser.%arg-1's uuid%} to true
  46. make argument 1 execute ":scoreboard"
  47.  
  48. message "&cBLOCKED &8» &7Set &c%argument 1%'s &7group to &c%{userrank.%arg-1's uuid%}%" to player
  49. message "&cBLOCKED &8» &7Your group has been set to &c%{userrank.%arg-1's uuid%}% &7by &c%player%"
  50. if argument 2 is "dev":
  51.  
  52. set {userrank.%arg-1's uuid%} to "Developer"
  53. set {rank.%arg-1's uuid%} to "&8(&cDeveloper&8) &c"
  54. set {colour.%arg-1's uuid%} to "&c"
  55. set {staffuser.%arg-1's uuid%} to true
  56. make argument 1 execute ":scoreboard"
  57.  
  58. message "&cBLOCKED &8» &7Set &c%argument 1%'s &7group to &c%{userrank.%arg-1's uuid%}%" to player
  59. message "&cBLOCKED &8» &7Your group has been set to &c%{userrank.%arg-1's uuid%}% &7by &c%player%"
  60. if argument 2 is "admin":
  61.  
  62. set {userrank.%arg-1's uuid%} to "Admin"
  63. set {rank.%arg-1's uuid%} to "&8(&bAdmin&8) &b"
  64. set {colour.%arg-1's uuid%} to "&b"
  65. set {staffuser.%arg-1's uuid%} to true
  66. make argument 1 execute ":scoreboard"
  67.  
  68. message "&cBLOCKED &8» &7Set &c%argument 1%'s &7group to &c%{userrank.%arg-1's uuid%}%" to player
  69. message "&cBLOCKED &8» &7Your group has been set to &c%{userrank.%arg-1's uuid%}% &7by &c%player%"
  70. if argument 2 is "mod":
  71.  
  72. set {userrank.%arg-1's uuid%} to "Mod"
  73. set {rank.%arg-1's uuid%} to "&8(&dMod&8) &d"
  74. set {colour.%arg-1's uuid%} to "&d"
  75. set {staffuser.%arg-1's uuid%} to true
  76. make argument 1 execute ":scoreboard"
  77.  
  78. message "&cBLOCKED &8» &7Set &c%argument 1%'s &7group to &c%{userrank.%arg-1's uuid%}%" to player
  79. message "&cBLOCKED &8» &7Your group has been set to &c%{userrank.%arg-1's uuid%}% &7by &c%player%"
  80. if argument 2 is "helper":
  81.  
  82. set {userrank.%arg-1's uuid%} to "Helper"
  83. set {rank.%arg-1's uuid%} to "&8(&aHelper&8) &a"
  84. set {colour.%arg-1's uuid%} to "&a"
  85. set {staffuser.%arg-1's uuid%} to true
  86. make argument 1 execute ":scoreboard"
  87.  
  88. message "&cBLOCKED &8» &7Set &c%argument 1%'s &7group to &c%{userrank.%arg-1's uuid%}%" to player
  89. message "&cBLOCKED &8» &7Your group has been set to &c%{userrank.%arg-1's uuid%}% &7by &c%player%"
  90. if argument 2 is "none":
  91.  
  92. set {userrank.%arg-1's uuid%} to "None"
  93. set {rank.%arg-1's uuid%} to "&7"
  94. set {colour.%arg-1's uuid%} to "&7"
  95. set {staffuser.%arg-1's uuid%} to false
  96. make argument 1 execute ":scoreboard"
  97.  
  98. message "&cBLOCKED &8» &7Set &c%argument 1%'s &7group to &c%{userrank.%arg-1's uuid%}%" to player
  99. message "&cBLOCKED &8» &7Your group has been set to &c%{userrank.%arg-1's uuid%}% &7by &c%player%"
  100. else if argument 2 isn't "owner", "dev", "admin", "mod", "helper" or "none":
  101. message "&cIncorrect group title:"
  102. message "&cGroups: Owner, Dev, Admin, Mod, Helper and None"
  103. else:
  104. message "&cIncorrest usage:"
  105. message "&c/group <player> <group title>"
  106. else:
  107. message "&cIncorrest usage:"
  108. message "&c/group <player> <group title>"
  109.  
  110. command /reset-user [<offline player>]:
  111. permission: server.resetuser
  112. permission message: &cInsufficent permissions.
  113. trigger:
  114. if argument 1 is set:
  115. set {rank.%arg-1's uuid%} to "&7"
  116. set {userrank.%arg-1's uuid%} to "None"
  117. set {mined.%arg-1's uuid%} to 0
  118. set {level.%arg-1's uuid%} to 1
  119. set {points.%arg-1's uuid%} to 0
  120. set {prestige.%player's uuid%} to 0
  121. set {staffuser.%player's uuid%} to false
  122. make argument 1 execute ":scoreboard"
  123. if argument 1 is player:
  124. message "&cBLOCKED &8» &7Successfully reset your user data."
  125. else:
  126. message "&cBLOCKED &8» &7Successfully reset user &c%argument 1%'s &7data." to player
  127. message "&cBLOCKED &8» &7Your user data has been reset by &c%player%&7." to argument 1
  128.  
  129. on chat:
  130. cancel event
  131. if {staffchat.%player's uuid%} is set:
  132. loop all players:
  133. if {staffuser.%loop-player's uuid%} is true:
  134. message "&3Staff &b%player% &7» &r%message%" to loop-player
  135. else:
  136. set tab list name of player to "%{colour.%player's uuid%}%%player%"
  137. broadcast "&8(&7%{prestige.%player's uuid%}%&8) &8(&7%{level.%player's uuid%}%&8) %{rank.%player's uuid%}%%player% » &7%message%"
  138. make player execute ":scoreboard"
  139.  
  140. command /rankup:
  141. trigger:
  142. if {level.%player's uuid%} isn't 50:
  143. if {points.%player's uuid%} parsed as a number > {rankcost.%player's uuid%}:
  144. add 1 to {level.%player's uuid%}
  145. remove {rankcost.%player's uuid%} from {points.%player's uuid%}
  146. add 50000 to {rankcost.%player's uuid%}
  147. message "&cyou've ranked up to %{level.%player's uuid%}%"
  148. else:
  149. message "&cInsufficent currency:"
  150. message ""
  151. message "&cYour points: %{points.%player's uuid%}%"
  152. message "&cRequired points: &l%{rankcost.%player's uuid%}%"
  153. else:
  154. message "&cYou are level 50, prestige with /prestige!"
  155.  
  156.  
  157. command /test <integer>:
  158. trigger:
  159. set {level.%player's uuid%} to arg 1
  160. set {rankcost.%player's uuid%} to 50000
  161.  
  162. command /eco [<offline player>] [<integer>]:
  163. trigger:
  164. if player has permission "server.eco.set":
  165. if argument 1 is set:
  166. if argument 2 is set:
  167. if argument 1 is player:
  168. set {points.%player's uuid%} to argument 2
  169. message "&cBLOCKED &8» &7Set your balance to &c%argument 2%"
  170. make player execute ":scoreboard:"
  171. else:
  172. set {points.%arg-1's uuid%} to argument 2
  173. message "&cBLOCKED &8» &7Set %argument 1%'s balance to &c%argument 2%" to player
  174. message "&cBLOCKED &8» &7Your balance was set to &c%argument 2% &7by %player%" to argument 1
  175. make argument 1 execute ":scoreboard:"
  176. else:
  177. message "&cIncorrect usage:"
  178. message "&c/eco <player> <points>"
  179. else:
  180. message "&cIncorrect usage:"
  181. message "&c/eco <player> <points>"
  182. else:
  183. message "&cBLOCKED &8» &7Points: %{points.%player's uuid%}%"
  184.  
  185. on mine of stone:
  186. add 2 to {points.%player's uuid%}
  187. on mine of coal ore:
  188. add 6 to {points.%player's uuid%}
  189. on mine of iron ore:
  190. add 10 to {points.%player's uuid%}
  191. on mine of gold ore:
  192. add 16 to {points.%player's uuid%}
  193. on mine of diamond ore:
  194. add 22 to {points.%player's uuid%}
  195.  
  196. #
  197. #
  198. # (Warping system)
  199. #
  200. #
  201.  
  202.  
  203.  
  204. command /setmine [<integer>]:
  205. permission: server.admin
  206. permission message: &cInsufficent permissions.
  207. trigger:
  208. if arg-1 isn't set:
  209. send "&cInvalid argument: /location <1-50>"
  210. if arg-1 is "1":
  211. set {server.location.mine1} to player's location
  212. send "&6&l[*] &rSet location of mine1 to your location."
  213. else if arg-1 is "2":
  214. set {server.location.mine2} to player's location
  215. send "&6&l[*] &rSet location of mine2 to your location."
  216. else if arg-1 is "3":
  217. set {server.location.mine3} to player's location
  218. send "&6&l[*] &rSet location of mine3 to your location."
  219. if arg-1 is "4":
  220. set {server.location.mine4} to player's location
  221. send "&6&l[*] &rSet location of mine4 to your location."
  222. else if arg-1 is "5":
  223. set {server.location.mine5} to player's location
  224. send "&6&l[*] &rSet location of mine5 to your location."
  225. else if arg-1 is "6":
  226. set {server.location.mine6} to player's location
  227. send "&6&l[*] &rSet location of mine6 to your location."
  228. if arg-1 is "7":
  229. set {server.location.mine7} to player's location
  230. send "&6&l[*] &rSet location of mine7 to your location."
  231. else if arg-1 is "8":
  232. set {server.location.mine8} to player's location
  233. send "&6&l[*] &rSet location of mine8 to your location."
  234. else if arg-1 is "9":
  235. set {server.location.mine9} to player's location
  236. send "&6&l[*] &rSet location of mine9 to your location."
  237. if arg-1 is "10":
  238. set {server.location.mine10} to player's location
  239. send "&6&l[*] &rSet location of mine10 to your location."
  240. else if arg-1 is "11":
  241. set {server.location.mine11} to player's location
  242. send "&6&l[*] &rSet location of mine11 to your location."
  243. else if arg-1 is "12":
  244. set {server.location.mine12} to player's location
  245. send "&6&l[*] &rSet location of mine12 to your location."
  246. if arg-1 is "13":
  247. set {server.location.mine13} to player's location
  248. send "&6&l[*] &rSet location of mine13 to your location."
  249. else if arg-1 is "14":
  250. set {server.location.mine14} to player's location
  251. send "&6&l[*] &rSet location of mine14 to your location."
  252. else if arg-1 is "15":
  253. set {server.location.mine15} to player's location
  254. send "&6&l[*] &rSet location of mine15 to your location."
  255. if arg-1 is "16":
  256. set {server.location.mine16} to player's location
  257. send "&6&l[*] &rSet location of mine16 to your location."
  258. else if arg-1 is "17":
  259. set {server.location.mine17} to player's location
  260. send "&6&l[*] &rSet location of mine17 to your location."
  261. else if arg-1 is "18":
  262. set {server.location.mine18} to player's location
  263. send "&6&l[*] &rSet location of mine18 to your location."
  264. if arg-1 is "19":
  265. set {server.location.mine19} to player's location
  266. send "&6&l[*] &rSet location of mine19 to your location."
  267. else if arg-1 is "20":
  268. set {server.location.mine20} to player's location
  269. send "&6&l[*] &rSet location of mine20 to your location."
  270. else if arg-1 is "21":
  271. set {server.location.mine21} to player's location
  272. send "&6&l[*] &rSet location of mine21 to your location."
  273. if arg-1 is "22":
  274. set {server.location.mine22} to player's location
  275. send "&6&l[*] &rSet location of mine22 to your location."
  276. else if arg-1 is "23":
  277. set {server.location.mine23} to player's location
  278. send "&6&l[*] &rSet location of mine23 to your location."
  279. else if arg-1 is "24":
  280. set {server.location.mine24} to player's location
  281. send "&6&l[*] &rSet location of mine24 to your location."
  282. if arg-1 is "25":
  283. set {server.location.mine25} to player's location
  284. send "&6&l[*] &rSet location of mine25 to your location."
  285. else if arg-1 is "26":
  286. set {server.location.mine26} to player's location
  287. send "&6&l[*] &rSet location of mine26 to your location."
  288. else if arg-1 is "27":
  289. set {server.location.mine27} to player's location
  290. send "&6&l[*] &rSet location of mine27 to your location."
  291. if arg-1 is "28":
  292. set {server.location.mine28} to player's location
  293. send "&6&l[*] &rSet location of mine28 to your location."
  294. else if arg-1 is "29":
  295. set {server.location.mine29} to player's location
  296. send "&6&l[*] &rSet location of mine29 to your location."
  297. else if arg-1 is "30":
  298. set {server.location.mine30} to player's location
  299. send "&6&l[*] &rSet location of mine30 to your location."
  300. if arg-1 is "31":
  301. set {server.location.mine31} to player's location
  302. send "&6&l[*] &rSet location of mine31 to your location."
  303. else if arg-1 is "32":
  304. set {server.location.mine32} to player's location
  305. send "&6&l[*] &rSet location of mine32 to your location."
  306. else if arg-1 is "33":
  307. set {server.location.mine33} to player's location
  308. send "&6&l[*] &rSet location of mine33 to your location."
  309. if arg-1 is "34":
  310. set {server.location.mine34} to player's location
  311. send "&6&l[*] &rSet location of mine34 to your location."
  312. else if arg-1 is "35":
  313. set {server.location.mine35} to player's location
  314. send "&6&l[*] &rSet location of mine35 to your location."
  315. else if arg-1 is "36":
  316. set {server.location.mine36} to player's location
  317. send "&6&l[*] &rSet location of mine36 to your location."
  318. if arg-1 is "37":
  319. set {server.location.mine37} to player's location
  320. send "&6&l[*] &rSet location of mine37 to your location."
  321. else if arg-1 is "38":
  322. set {server.location.mine38} to player's location
  323. send "&6&l[*] &rSet location of mine38 to your location."
  324. else if arg-1 is "39":
  325. set {server.location.mine39} to player's location
  326. send "&6&l[*] &rSet location of mine39 to your location."
  327. if arg-1 is "40":
  328. set {server.location.mine40} to player's location
  329. send "&6&l[*] &rSet location of mine40 to your location."
  330. else if arg-1 is "41":
  331. set {server.location.mine41} to player's location
  332. send "&6&l[*] &rSet location of mine41 to your location."
  333. else if arg-1 is "42":
  334. set {server.location.mine42} to player's location
  335. send "&6&l[*] &rSet location of mine42 to your location."
  336. if arg-1 is "43":
  337. set {server.location.mine43} to player's location
  338. send "&6&l[*] &rSet location of mine43 to your location."
  339. else if arg-1 is "44":
  340. set {server.location.mine44} to player's location
  341. send "&6&l[*] &rSet location of mine44 to your location."
  342. else if arg-1 is "45":
  343. set {server.location.mine45} to player's location
  344. send "&6&l[*] &rSet location of mine45 to your location."
  345. if arg-1 is "46":
  346. set {server.location.mine46} to player's location
  347. send "&6&l[*] &rSet location of mine46 to your location."
  348. else if arg-1 is "47":
  349. set {server.location.mine47} to player's location
  350. send "&6&l[*] &rSet location of mine47 to your location."
  351. else if arg-1 is "48":
  352. set {server.location.mine48} to player's location
  353. send "&6&l[*] &rSet location of mine48 to your location."
  354. else if arg-1 is "49":
  355. set {server.location.mine49} to player's location
  356. send "&6&l[*] &rSet location of mine49 to your location."
  357. else if arg-1 is "50":
  358. set {server.location.mine50} to player's location
  359. send "&6&l[*] &rSet location of mine50 to your location."
  360.  
  361. command /warp [<integer>]:
  362. permission: serv.warp
  363. trigger:
  364. if arg-1 isn't set:
  365. send "&cInvalid argument: /warp <1-50>"
  366. else
  367. if {level.%player's uuid%} is %arg-1%:
  368. wait 10 ticks
  369. teleport player to {server::location::mine%arg-1%}
Add Comment
Please, Sign In to add comment