Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.27 KB | None | 0 0
  1. options:
  2. logo: &8[&e&lFFA&8]&f
  3. adminperm: ffa.*
  4. noperm: &cSorry, you not have enough permission.
  5. setlobbyperm: ffa.setlobby
  6. setleaveperm: ffa.setleave
  7. setkitperm: ffa.setkit
  8. setstatsperm: ffa.setstats
  9. reloadperm: ffa.reload
  10.  
  11. command /ffa [<text>] [<text>] [<player>] [<integer>]:
  12. trigger:
  13. if arg 1 is not set:
  14. send "&6&l&m*&6&m-----------------&r &e&lFFA &6&m--------------------------&6&l&m*"
  15. send " &e/ffa help &f- Prints this message"
  16. send " &e/ffa join &f- To join FFA Lobby"
  17. send " &e/ffa leave &f- To leave from FFA Lobby"
  18. send " &e/ffa stats &f- See your stats"
  19. if player has permission "{@adminperm}":
  20. send "&6&lAdmin Commands:"
  21. send " &e/ffa setlobby &f- Setlobby in your location"
  22. send " &e/ffa setleave &f- Setleave in your location"
  23. send " &e/ffa setkit &f- Setkit from your inventory for FFA Game"
  24. send " &e/ffa set <kills:deaths> <player> <number> &f- Settings Stats"
  25. send " &e/ffa reload &f- Reload the FFA Plugin"
  26. send "&6&l&m*&6&m-------------------------------------------------&6&l&m*"
  27. if arg 1 is "help":
  28. send "&6&l&m*&6&m-----------------&r &e&lFFA &6&m--------------------------&6&l&m*"
  29. send " &e/ffa help &f- Prints this message"
  30. send " &e/ffa join &f- To join FFA Lobby"
  31. send " &e/ffa leave &f- To leave from FFA Lobby"
  32. send " &e/ffa stats &f- See your stats"
  33. if player has permission "{@adminperm}":
  34. send "&6&lAdmin Commands:"
  35. send " &e/ffa setlobby &f- Setlobby in your location"
  36. send " &e/ffa setleave &f- Setleave in your location"
  37. send " &e/ffa setkit &f- Setkit from your inventory for FFA Game"
  38. send " &e/ffa set <kills:deaths> <player> <number> &f- Settings Stats"
  39. send " &e/ffa reload &f- Reload the FFA Plugin"
  40. send "&6&l&m*&6&m-------------------------------------------------&6&l&m*"
  41. if arg 1 is "setlobby":
  42. if player has permission "{@setlobbyperm}" or "{@adminperm}":
  43. set {ffa.lobby} to location of player
  44. send "{@logo} Succesfully setlobby in your location"
  45. else:
  46. send "{@logo} {@noperm}"
  47. if arg 1 is "setleave":
  48. if player has permission "{@setleaveperm}" or "{@adminperm}":
  49. set {ffa.leave} to location of player
  50. send "{@logo} Succesfully setleave in your location"
  51. else:
  52. send "{@logo} {@noperm}"
  53. if arg 1 is "reload":
  54. if sender is console:
  55. execute console command "sk reload %script%"
  56. if sender is player:
  57. if player has permission "{@reloadperm}" or "{@adminperm}":
  58. make player execute command "/sk reload %script%"
  59. else:
  60. send "{@logo} {@noperm}"
  61. if arg 1 is "join":
  62. if {ingame.%player%} is true:
  63. send "{@logo} You are in game"
  64. else:
  65. if {ffa.lobby} is set:
  66. send "{@logo} Joined the lobby"
  67. teleport player to {ffa.lobby}
  68. set {ingame.%player%} to true
  69. heal player
  70. set player's hunger to 20
  71. if {ffa.kills.%uuid of player%} is not set:
  72. set {ffa.kills.%uuid of player%} to 0
  73. if {ffa.deaths.%uuid of player%} is not set:
  74. set {ffa.deaths.%uuid of player%} to 0
  75. if {ffa.level.%uuid of player%} is not set:
  76. set {ffa.level.%uuid of player%} to 0
  77. restore inventory of player from {kit.ffa}
  78. equip player with {kithelmet.ffa}
  79. equip player with {kitchestplate.ffa}
  80. equip player with {kitleggings.ffa}
  81. equip player with {kitboots.ffa}
  82. make console execute command "nte player %player% prefix &7[&e%{ffa.level.%uuid of player%}%&7]"
  83. set {ffa.status.%player%} to "&aIdling"
  84. else:
  85. send "{@logo} Lobby is not set"
  86. if arg 1 is "respawn":
  87. if {ingame.%player%} is true:
  88. teleport player to {ffa.lobby}
  89. restore inventory of player from {kit.ffa}
  90. equip player with {kithelmet.ffa}
  91. equip player with {kitchestplate.ffa}
  92. equip player with {kitleggings.ffa}
  93. equip player with {kitboots.ffa}
  94. if arg 1 is "leave":
  95. if {ingame.%player%} is true:
  96. if {ffa.leave} is set:
  97. send "{@logo} Leaved from lobby"
  98. delete {ingame.%player%}
  99. clear player's inventory
  100. heal player
  101. set player's hunger to 20
  102. teleport player to {ffa.leave}
  103. else:
  104. send "{@logo} Lobby leave is not set"
  105. else:
  106. send "{@logo} You are not in lobby"
  107. if arg 1 is "stats":
  108. if {ingame.%player%} is true:
  109. send "&6&l&m*&6&m------------------&r &e&lStats &6&m------------------&6&l&m*"
  110. send " &eYour Stats:"
  111. send " &8● &eKills: &f%{ffa.kills.%uuid of player%}%"
  112. send " &8● &eDeaths: &f%{ffa.deaths.%uuid of player%}%"
  113. send " &8● &eLevel: &8[&e%{ffa.level.%uuid of player%}%✫&8]"
  114. send "&6&l&m*&6&m-------------------------------------------&6&l&m*"
  115. else:
  116. send "{@logo} You are not in lobby"
  117. if arg 1 is "setkit":
  118. if player has permission "{@setkitperm}" or "{@adminperm}":
  119. set {kit.ffa} to player's serialized inventory
  120. set {kithelmet.ffa} to helmet of player
  121. set {kitchestplate.ffa} to chestplate of player
  122. set {kitleggings.ffa} to leggings of player
  123. set {kitboots.ffa} to boots of player
  124. send "{@logo} Succesfully setkit for &eFFA"
  125. make console execute command "nte player %player% clear"
  126. else:
  127. send "{@logo} {@noperm}"
  128. if arg 1 is "set":
  129. if player has permission "{@setstatsperm}" or "{@adminperm}":
  130. if arg 2 is not set:
  131. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  132. if arg 2 is "kills":
  133. if arg 3 is not set:
  134. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  135. else:
  136. if arg 4 is not set:
  137. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  138. else:
  139. set {ffa.kills.%uuid of arg 3%} to arg 4
  140. send "{@logo} Succesfully set &e%arg 3%&f's Kills to &e%arg 4%"
  141. if arg 2 is "deaths":
  142. if arg 3 is not set:
  143. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  144. else:
  145. if arg 4 is not set:
  146. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  147. else:
  148. set {ffa.deaths.%uuid of arg 3%} to arg 4
  149. send "{@logo} Succesfully set &e%arg 3%&f's Deaths to &e%arg 4%"
  150. if arg 2 is "level":
  151. if arg 3 is not set:
  152. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  153. else:
  154. if arg 4 is not set:
  155. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  156. else:
  157. set {ffa.level.%uuid of arg 3%} to arg 4
  158. send "{@logo} Succesfully set &e%arg 3%&f's Level to &e%arg 4%"
  159. if arg 2 is not "level" or "deaths" or "kills":
  160. send "{@logo} Use /ffa set <kills:deaths:level> <player> <number>"
  161. else:
  162. send "{@logo} {@noperm}"
  163.  
  164. on damage of player:
  165. if {ingame.%victim%} is true:
  166. if damage cause is fall:
  167. cancel event
  168. if damage cause is void:
  169. damage victim by 20
  170. if attacker is player:
  171. set {_sec.%victim%} to 10
  172. set {_sec.%attacker%} to 10
  173. if {ffa.status.%victim%} is "&aIdling":
  174. set {ffa.status.%victim%} to "&cFighting"
  175. while {ffa.status.%victim%} is "&cFighting":
  176. remove 1 from {_sec.%victim%}
  177. wait 1 seconds
  178. if {_sec.%victim%} is 0:
  179. set {ffa.%victim%.status} to "&aIdling"
  180.  
  181. if {ffa.status.%attacker%} is "&aIdling":
  182. set {ffa.status.%attacker%} to "&cFighting"
  183. while {ffa.status.%attacker%} is "&cFighting":
  184. remove 1 from {_sec.%attacker%}
  185. wait 1 seconds
  186. if {_sec.%attacker%} is 0:
  187. set {ffa.status.%uuid of attacker%} to "&aIdling"
  188.  
  189. on death of player:
  190. if {ingame.%victim%} is true:
  191. set death message to ""
  192. add 1 to {ffa.kills.%uuid of attacker%}
  193. add 1 to {ffa.deaths.%uuid of victim%}
  194. add 10 to {ffa.xp.%uuid of victim%}
  195. teleport victim to {ffa.lobby}
  196. restore inventory of victim from {kit.ffa}
  197. equip victim with {kithelmet.ffa}
  198. equip victim with {kitchestplate.ffa}
  199. equip victim with {kitleggings.ffa}
  200. equip victim with {kitboots.ffa}
  201. give golden apple to victim
  202. if {ffa.xp.%uuid of attacker%} >= {ffa.xp-need.%uuid of attacker%}:
  203. remove {ffa.xp-need.%uuid of attacker%} from {ffa.xp.%uuid of attacker%}
  204. set {_old} to {ffa.level.%uuid of attacker%}
  205. add 1 to {ffa.level.%{_uuid}%}
  206. make console execute command "nte player %attacker% prefix &7[&e%{ffa.level.%uuid of attacker%}%&7]"
  207. send "{@logo} &6&lLEVEL UP! &eCongrats %attacker%!" to {_p}
  208. send {_p} title "&6&lLEVEL UP!" with subtitle "&7[&e%{_old}%&7] &f-> &7[&e%{ffa.level.%uuid of attacker%}%&7]" for 3 seconds
  209. play "LEVEL_UP" to {_p} at volume 1
  210. if {ffa.level.%uuid of attacker%} < 10:
  211. add 50 to {ffa.xp-need.%uuid of attacker%}
  212. stop
  213. if {ffa.level.%uuid of attacker%} < 20:
  214. add 70 to {ffa.xp-need.%uuid of attacker%}
  215. stop
  216. if {ffa.level.%uuid of attacker%} < 30:
  217. add 80 to {ffa.xp-need.%uuid of attacker%}
  218. stop
  219. if {ffa.level.%uuid of attacker%} < 50:
  220. add 100 to {ffa.xp-need.%uuid of attacker%}
  221. stop
  222. else:
  223. add 120 to {ffa.xp-need.%uuid of attacker%}
  224. stop
  225.  
  226. on break:
  227. if {ingame.%player%} is true:
  228. if event-block is wood:
  229. cancel event
  230. set event-block to air
  231. if event-block is cobblestone:
  232. cancel event
  233. set event-block to air
  234.  
  235. on place:
  236. if {ingame.%player%} is true:
  237. if event-block is wood:
  238. wait 3 seconds
  239. set event-block to air
  240. if event-block is cobblestone:
  241. wait 3 seconds
  242. set event-block to air
  243. else:
  244. cancel event
  245.  
  246. every 80 ticks:
  247. loop all players:
  248. if {ingame.%loop-player%} is true:
  249. if stylish scoreboard "FFA-%loop-player%" does not exist:
  250. create new stylish scoreboard named "FFA-%loop-player%"
  251. loop 9 times:
  252. create a new id based score "FFA-%loop-player%Slot%loop-number%" with text "&%loop-number%" slot loop-number for stylish scoreboard "FFA-%loop-player%"
  253. wait 3 ticks
  254. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lFFA"
  255. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  256. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  257. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  258. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  259. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  260. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  261. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  262. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  263. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  264. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  265. wait 3 ticks
  266. set title of stylish scoreboard "FFA-%loop-player%" to "&6&lF&e&lFA"
  267. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  268. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  269. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  270. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  271. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  272. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  273. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  274. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  275. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  276. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  277. wait 3 ticks
  278. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lF&6&lF&e&lA"
  279. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  280. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  281. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  282. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  283. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  284. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  285. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  286. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  287. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  288. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  289. wait 3 ticks
  290. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lFF&6&lA"
  291. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  292. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  293. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  294. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  295. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  296. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  297. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  298. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  299. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  300. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  301. wait 3 ticks
  302. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lFFA"
  303. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  304. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  305. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  306. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  307. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  308. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  309. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  310. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  311. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  312. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  313. wait 3 ticks
  314. set title of stylish scoreboard "FFA-%loop-player%" to "&6&lF&e&lFA"
  315. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  316. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  317. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  318. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  319. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  320. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  321. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  322. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  323. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  324. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  325. wait 3 ticks
  326. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lF&6&lF&e&lA"
  327. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  328. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  329. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  330. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  331. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  332. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  333. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  334. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  335. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  336. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  337. wait 3 ticks
  338. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lFF&6&lA"
  339. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  340. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  341. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  342. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  343. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  344. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  345. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  346. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  347. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  348. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  349. wait 3 ticks
  350. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lFFA"
  351. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  352. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  353. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  354. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  355. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  356. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  357. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  358. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  359. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  360. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  361. wait 5 ticks
  362. set title of stylish scoreboard "FFA-%loop-player%" to "&6&lFFA"
  363. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  364. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  365. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  366. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  367. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  368. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  369. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  370. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  371. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  372. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  373. wait 5 ticks
  374. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lFFA"
  375. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  376. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  377. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  378. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  379. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  380. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  381. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  382. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  383. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  384. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  385. wait 5 ticks
  386. set title of stylish scoreboard "FFA-%loop-player%" to "&6&lFFA"
  387. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  388. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  389. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  390. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  391. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  392. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  393. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  394. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  395. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  396. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  397. wait 5 ticks
  398. set title of stylish scoreboard "FFA-%loop-player%" to "&e&lFFA"
  399. set stylish scoreboard of loop-player to "FFA-%loop-player%"
  400. set the text of id "FFA-%loop-player%Slot9" to "&7%now%"
  401. set the text of id "FFA-%loop-player%Slot8" to "&5&l"
  402. set the text of id "FFA-%loop-player%Slot7" to "&fKills: &a%{ffa.kills.%uuid of loop-player%}%"
  403. set the text of id "FFA-%loop-player%Slot6" to "&fDeaths: &a%{ffa.level.%uuid of loop-player%}%"
  404. set the text of id "FFA-%loop-player%Slot5" to "&fLevel: &a%{ffa.level.%uuid of loop-player%}%✫"
  405. set the text of id "FFA-%loop-player%Slot4" to "&1&f"
  406. set the text of id "FFA-%loop-player%Slot3" to "&fStatus: %{ffa.status.%loop-player%}%"
  407. set the text of id "FFA-%loop-player%Slot2" to "&1&l"
  408. set the text of id "FFA-%loop-player%Slot1" to "&eYOURSERVER.COM"
  409. else:
  410. if stylish scoreboard "FFA-%loop-player%" is set:
  411. delete stylish "FFA-%loop-player%"
  412.  
  413. on chat:
  414. if {ingame.%player%} is true:
  415. cancel event
  416. loop all players:
  417. if {ingame.%loop-player%} is true:
  418. send "&8[&e%{ffa.level.%uuid of loop-player%}%✫&8] %colored player's prefix%&7%player%: %message%" to loop-player
  419.  
  420. on quit:
  421. if {ingame.%player%} is true:
  422. delete {ingame.%player%}
  423. clear player's inventory
  424. heal player
  425. set player's hunger to 20
  426. make console execute command "nte player %player% clear"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement