Prawnus

Untitled

Oct 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.19 KB | None | 0 0
  1. # ========================================== #
  2. # ×××××××××××××××××××××××××××××××××××××××××× #
  3. # Spleef #
  4. # by SaMaGamers #
  5. # ×××××××××××××××××××××××××××××××××××××××××× #
  6. # ========================================== #
  7.  
  8. # ============> version: 4.2 <============== #
  9.  
  10. # ========================================== #
  11. # Configuration #
  12. # ========================================== #
  13.  
  14. options:
  15. maxspleefsnowplayers: 8 # The max players that can join by Snow: NOT 1! IF YOU SET IT TO 1, THERE ARE BUGS!!!
  16. maxspleefpizzaplayers: 8 # The max players that can join by Pizza: NOT 1! IF YOU SET IT TO 1, THERE ARE BUGS!!!
  17. prefix: &8[&3Spl&fee&3f&8]&r # The prefix will be shown in every message
  18.  
  19. # ========================================== #
  20. # Skript (Don't touch!) #
  21. # ========================================== #
  22.  
  23. On rightclick on sign:
  24. line 1 of event-block is "&3[Spleef]":
  25. line 2 of event-block is "&a&lJoin":
  26. line 3 of event-block is "&7Snow" or "&7snow":
  27. make player execute command "/join snow"
  28. make console execute command "/eco take %player% %line 4 of event-block%"
  29. line 3 of event-block is "&4Pizza" or "&4pizza":
  30. make player execute command "/join pizza"
  31. make console execute command "/eco take %player% %line 4 of event-block%"
  32.  
  33. On break of sign:
  34. line 1 of event-block is "&3[Spleef]":
  35. line 2 of event-block is "&a&lJoin":
  36. line 3 of event-block is "&7Snow" or "&7snow" or "&4Pizza" or "&4pizza":
  37. player is sneaking:
  38. message "{@prefix} &3Sign Removed!"
  39. stop
  40. else:
  41. message "{@prefix} &cSneak for break a Spleef-sign!"
  42. cancel event
  43.  
  44. on load:
  45. {spleef.game.snow.list} is not set:
  46. set {spleef.game.snow.list} to 0
  47. {spleef.game.snow.ingame} is not set:
  48. set {spleef.game.snow.ingame} to false
  49. {spleef.game.pizza.list} is not set:
  50. set {spleef.game.pizza.list} to 0
  51. {spleef.game.pizza.ingame} is not set:
  52. set {spleef.game.pizza.ingame} to false
  53.  
  54. on right click holding a tnt:
  55. if {player.%player%.playing} is true:
  56. make the player shoot a tnt at speed 1
  57. remove 1 tnt from player
  58.  
  59. on join:
  60. set {player.%player%.waiting} to false
  61. set {player.%player%.status} to "null"
  62. set {player.%player%.playing} to false
  63. {player.%player%.wins} is not set:
  64. set {player.%player%.wins} to 0
  65. {player.%player%.games} is not set:
  66. set {player.%player%.games} to 0
  67.  
  68. on block damage:
  69. {player.%player%.status} is not "null":
  70. wait 1 second
  71. make player break the event-block
  72.  
  73. on place:
  74. event-block is a sign named "&7Snow &6Join-sign":
  75. set line 1 of the event-block to "&3[Spleef]"
  76. set line 2 of the event-block to "&a&lJoin"
  77. set line 3 of the event-block to "&7Snow"
  78. event-block is a sign named "&4Pizza &6Join-sign":
  79. set line 1 of the event-block to "&3[Spleef]"
  80. set line 2 of the event-block to "&a&lJoin"
  81. set line 3 of the event-block to "&4Pizza"
  82.  
  83.  
  84. on break:
  85. {player.%player%.status} is not "null":
  86. set player's food level to 2 + player's food level
  87. event-block is snow block:
  88. {player.%player%.status} is "snow":
  89. add location of event-block to {spleef.blocks.snow.locations::*}
  90. event-block is obsidian:
  91. {player.%player%.status} is "pizza":
  92. add location of event-block to {spleef.blocks.pizza.locations::*}
  93. add location of event-block to {spleef.blocks.pizza.locations.obsidian::*}
  94. apply blindness 2 to {spleef.game.pizza.list::*} for 4 seconds
  95. remove blindness from the player
  96. message "{@prefix} &e%player% &3blinded everywhone!" to {spleef.game.pizza.list::*}
  97. event-block is gold block:
  98. {player.%player%.status} is "pizza":
  99. add location of event-block to {spleef.blocks.pizza.locations::*}
  100. add location of event-block to {spleef.blocks.pizza.locations.gold::*}
  101. poison {spleef.game.pizza.list::*} for 8 seconds
  102. cure the player from poison
  103. message "{@prefix} &e%player% &3poisoned everywhone!" to {spleef.game.pizza.list::*}
  104. event-block is redstone block:
  105. {player.%player%.status} is "pizza":
  106. add location of event-block to {spleef.blocks.pizza.locations::*}
  107. add location of event-block to {spleef.blocks.pizza.locations.redstone::*}
  108. apply speed 3 to player for 6 seconds
  109. event-block is glass:
  110. {player.%player%.status} is "pizza":
  111. add location of event-block to {spleef.blocks.pizza.locations::*}
  112. add location of event-block to {spleef.blocks.pizza.locations.glass::*}
  113. apply invisibility to player for 8 seconds
  114. event-block is wool:5:
  115. {player.%player%.status} is "pizza":
  116. add location of event-block to {spleef.blocks.pizza.locations::*}
  117. add location of event-block to {spleef.blocks.pizza.locations.wool::*}
  118. apply jump boost to player for 6 seconds
  119. event-block is planks:1:
  120. {player.%player%.status} is "pizza":
  121. add location of event-block to {spleef.blocks.pizza.locations::*}
  122. add location of event-block to {spleef.blocks.pizza.locations.planks::*}
  123. give player 1 tnt
  124. event-block is soul sand:
  125. {player.%player%.status} is "pizza":
  126. add location of event-block to {spleef.blocks.pizza.locations::*}
  127. add location of event-block to {spleef.blocks.pizza.locations.soul::*}
  128. apply nausea 2 to {spleef.game.pizza.list::*} for 4 seconds
  129. remove nausea from the player
  130. message "{@prefix} &e%player% &3maked everywhone drunk!" to {spleef.game.pizza.list::*}
  131. event-block is stained hardened clay:0:
  132. {player.%player%.status} is "pizza":
  133. add location of event-block to {spleef.blocks.pizza.locations::*}
  134. add location of event-block to {spleef.blocks.pizza.locations.clay0::*}
  135. event-block is stained hardened clay:1:
  136. {player.%player%.status} is "pizza":
  137. add location of event-block to {spleef.blocks.pizza.locations::*}
  138. add location of event-block to {spleef.blocks.pizza.locations.clay1::*}
  139. event-block is stained hardened clay:2:
  140. {player.%player%.status} is "pizza":
  141. add location of event-block to {spleef.blocks.pizza.locations::*}
  142. add location of event-block to {spleef.blocks.pizza.locations.clay2::*}
  143. event-block is stained hardened clay:3:
  144. {player.%player%.status} is "pizza":
  145. add location of event-block to {spleef.blocks.pizza.locations::*}
  146. add location of event-block to {spleef.blocks.pizza.locations.clay3::*}
  147. event-block is stained hardened clay:4:
  148. {player.%player%.status} is "pizza":
  149. add location of event-block to {spleef.blocks.pizza.locations::*}
  150. add location of event-block to {spleef.blocks.pizza.locations.clay4::*}
  151. event-block is stained hardened clay:5:
  152. {player.%player%.status} is "pizza":
  153. add location of event-block to {spleef.blocks.pizza.locations::*}
  154. add location of event-block to {spleef.blocks.pizza.locations.clay5::*}
  155. event-block is stained hardened clay:6:
  156. {player.%player%.status} is "pizza":
  157. add location of event-block to {spleef.blocks.pizza.locations::*}
  158. add location of event-block to {spleef.blocks.pizza.locations.clay6::*}
  159. event-block is stained hardened clay:7:
  160. {player.%player%.status} is "pizza":
  161. add location of event-block to {spleef.blocks.pizza.locations::*}
  162. add location of event-block to {spleef.blocks.pizza.locations.clay7::*}
  163. event-block is stained hardened clay:8:
  164. {player.%player%.status} is "pizza":
  165. add location of event-block to {spleef.blocks.pizza.locations::*}
  166. add location of event-block to {spleef.blocks.pizza.locations.clay8::*}
  167. event-block is stained hardened clay:9:
  168. {player.%player%.status} is "pizza":
  169. add location of event-block to {spleef.blocks.pizza.locations::*}
  170. add location of event-block to {spleef.blocks.pizza.locations.clay9::*}
  171. event-block is stained hardened clay:10:
  172. {player.%player%.status} is "pizza":
  173. add location of event-block to {spleef.blocks.pizza.locations::*}
  174. add location of event-block to {spleef.blocks.pizza.locations.clay10::*}
  175. event-block is stained hardened clay:11:
  176. {player.%player%.status} is "pizza":
  177. add location of event-block to {spleef.blocks.pizza.locations::*}
  178. add location of event-block to {spleef.blocks.pizza.locations.clay11::*}
  179. event-block is stained hardened clay:12:
  180. {player.%player%.status} is "pizza":
  181. add location of event-block to {spleef.blocks.pizza.locations::*}
  182. add location of event-block to {spleef.blocks.pizza.locations.clay12::*}
  183. event-block is stained hardened clay:13:
  184. {player.%player%.status} is "pizza":
  185. add location of event-block to {spleef.blocks.pizza.locations::*}
  186. add location of event-block to {spleef.blocks.pizza.locations.clay13::*}
  187. event-block is stained hardened clay:14:
  188. {player.%player%.status} is "pizza":
  189. add location of event-block to {spleef.blocks.pizza.locations::*}
  190. add location of event-block to {spleef.blocks.pizza.locations.clay14::*}
  191. event-block is stained hardened clay:15:
  192. {player.%player%.status} is "pizza":
  193. add location of event-block to {spleef.blocks.pizza.locations::*}
  194. add location of event-block to {spleef.blocks.pizza.locations.clay15::*}
  195.  
  196. sub "Spleef.RegenBlocks.Snow":
  197. wait 1 tick
  198. set {spleef.blocks.snow.locations::*} to snow block
  199. loop {spleef.blocks.snow.locations::*}:
  200. remove loop-value from {spleef.blocks.snow.locations::*}
  201.  
  202. sub "Spleef.RegenBlocks.Pizza":
  203. wait 1 tick
  204. set {spleef.blocks.pizza.locations.obsidian::*} to obsidian
  205. set {spleef.blocks.pizza.locations.gold::*} to gold block
  206. set {spleef.blocks.pizza.locations.redstone::*} to redstone block
  207. set {spleef.blocks.pizza.locations.glass::*} to glass
  208. set {spleef.blocks.pizza.locations.wool::*} to wool:5
  209. set {spleef.blocks.pizza.locations.planks::*} to planks:1
  210. set {spleef.blocks.pizza.locations.soul::*} to soul sand
  211. set {spleef.blocks.pizza.locations.clay0::*} to stained hardened clay:0
  212. set {spleef.blocks.pizza.locations.clay1::*} to stained hardened clay:1
  213. set {spleef.blocks.pizza.locations.clay2::*} to stained hardened clay:2
  214. set {spleef.blocks.pizza.locations.clay3::*} to stained hardened clay:3
  215. set {spleef.blocks.pizza.locations.clay4::*} to stained hardened clay:4
  216. set {spleef.blocks.pizza.locations.clay5::*} to stained hardened clay:5
  217. set {spleef.blocks.pizza.locations.clay6::*} to stained hardened clay:6
  218. set {spleef.blocks.pizza.locations.clay7::*} to stained hardened clay:7
  219. set {spleef.blocks.pizza.locations.clay8::*} to stained hardened clay:8
  220. set {spleef.blocks.pizza.locations.clay9::*} to stained hardened clay:9
  221. set {spleef.blocks.pizza.locations.clay10::*} to stained hardened clay:10
  222. set {spleef.blocks.pizza.locations.clay11::*} to stained hardened clay:11
  223. set {spleef.blocks.pizza.locations.clay12::*} to stained hardened clay:12
  224. set {spleef.blocks.pizza.locations.clay13::*} to stained hardened clay:13
  225. set {spleef.blocks.pizza.locations.clay14::*} to stained hardened clay:14
  226. set {spleef.blocks.pizza.locations.clay15::*} to stained hardened clay:15
  227. loop {spleef.blocks.pizza.locations::*}:
  228. remove loop-value from {spleef.blocks.pizza.locations::*}
  229. loop {spleef.blocks.pizza.locations.obsidian::*}:
  230. remove loop-value from {spleef.blocks.pizza.locations.obsidian::*}
  231. loop {spleef.blocks.pizza.locations.gold::*}:
  232. remove loop-value from {spleef.blocks.pizza.locations.gold::*}
  233. loop {spleef.blocks.pizza.locations.redstone::*}:
  234. remove loop-value from {spleef.blocks.pizza.locations.redstone::*}
  235. loop {spleef.blocks.pizza.locations.glass::*}:
  236. remove loop-value from {spleef.blocks.pizza.locations.glass::*}
  237. loop {spleef.blocks.pizza.locations.wool::*}:
  238. remove loop-value from {spleef.blocks.pizza.locations.wool::*}
  239. loop {spleef.blocks.pizza.locations.planks::*}:
  240. remove loop-value from {spleef.blocks.pizza.locations.planks::*}
  241. loop {spleef.blocks.pizza.locations.soul::*}:
  242. remove loop-value from {spleef.blocks.pizza.locations.soul::*}
  243. loop {spleef.blocks.pizza.locations.clay0::*}:
  244. remove loop-value from {spleef.blocks.pizza.locations.clay0::*}
  245. loop {spleef.blocks.pizza.locations.clay1::*}:
  246. remove loop-value from {spleef.blocks.pizza.locations.clay1::*}
  247. loop {spleef.blocks.pizza.locations.clay2::*}:
  248. remove loop-value from {spleef.blocks.pizza.locations.clay2::*}
  249. loop {spleef.blocks.pizza.locations.clay3::*}:
  250. remove loop-value from {spleef.blocks.pizza.locations.clay3::*}
  251. loop {spleef.blocks.pizza.locations.clay4::*}:
  252. remove loop-value from {spleef.blocks.pizza.locations.clay4::*}
  253. loop {spleef.blocks.pizza.locations.clay5::*}:
  254. remove loop-value from {spleef.blocks.pizza.locations.clay5::*}
  255. loop {spleef.blocks.pizza.locations.clay6::*}:
  256. remove loop-value from {spleef.blocks.pizza.locations.clay6::*}
  257. loop {spleef.blocks.pizza.locations.clay7::*}:
  258. remove loop-value from {spleef.blocks.pizza.locations.clay7::*}
  259. loop {spleef.blocks.pizza.locations.clay8::*}:
  260. remove loop-value from {spleef.blocks.pizza.locations.clay8::*}
  261. loop {spleef.blocks.pizza.locations.clay9::*}:
  262. remove loop-value from {spleef.blocks.10pizza.locations.clay9::*}
  263. loop {spleef.blocks.pizza.locations.clay10::*}:
  264. remove loop-value from {spleef.blocks.pizza.locations.clay10::*}
  265. loop {spleef.blocks.pizza.locations.clay11::*}:
  266. remove loop-value from {spleef.block.pizza.locations.clay11::*}
  267. loop {spleef.blocks.pizza.locations.clay12::*}:
  268. remove loop-value from {spleef.blocks.pizza.locations.clay12::*}
  269. loop {spleef.blocks.pizza.locations.clay13::*}:
  270. remove loop-value from {spleef.blocks.pizza.locations.clay13::*}
  271. loop {spleef.blocks.pizza.locations.clay14::*}:
  272. remove loop-value from {spleef.blocks.pizza.locations.clay14::*}
  273. loop {spleef.blocks.pizza.locations.clay15::*}:
  274. remove loop-value from {spleef.blocks.pizza.locations.clay15::*}
  275.  
  276.  
  277. command /stats [<player>] [<text>]:
  278. aliases: /st
  279. trigger:
  280. arg 1 is not set:
  281. arg 2 is not set:
  282. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  283. message "&3Games played: &2%{player.%player%.games}%"
  284. message "&3Wins: &e%{player.%player%.wins}%"
  285. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  286. arg 1 is set:
  287. arg 2 is not set:
  288. player has permission "spleef.stats.otherplayers" or "spleef.*":
  289. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  290. message "&3Games played: &2%{player.%arg 1%.games}%"
  291. message "&3Wins: &e%{player.%arg 1%.wins}%"
  292. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  293. else:
  294. message "{@prefix} &cYou don't have the permission to do that!"
  295. stop
  296. arg 2 is "reset" or "delete" or "remove":
  297. player has permission "spleef.stats.otherplayers" or "spleef.*":
  298. set {player.%arg-2%.wins} to 0
  299. set {player.%arg-2%.games} to 0
  300. message "{@prefix} &aSuccesfully removed the stats from &e%arg-2%&a!"
  301. else:
  302. message "{@prefix} &cYou don't have the permission to do that!"
  303. stop
  304.  
  305. Command /spleef [<text>] [<text>] [<number>]:
  306. aliases: /s, /sp, /spl
  307. description: The main SpleefPro command
  308. trigger:
  309. arg 1 is "help":
  310. player has permission "spleef.help" or "spleef.*":
  311. arg 2 is not set:
  312. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  313. message "&3/spleef help [page]&6: Get this message"
  314. message "13/spleef info&6: Get info about the plugin"
  315. message "&3/spleef createspleef (spleef_type)&6: Create a spleef. It sets the spawn location"
  316. message "&3/spleef reload&6: Reload the Skript"
  317. message "&3/spleef setup&6: A GUI for setup Spleef-games"
  318. message "&3/spleef setmainhub&6: Set the mainhub"
  319. message "&3/spleef setwaitlobby (spleef_type)&6: Set the waitlobby"
  320. message "&3/join (spleef_type)&6: Join a game"
  321. message "&3/leave&6: Leave a game"
  322. message "&3/spleef mainhub&6: Teleport to the mainhub"
  323. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  324. arg 2 is "1":
  325. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  326. message "&3/spleef help&6: Get this message"
  327. message "13/spleef info&6: Get info about the plugin"
  328. message "&3/spleef createspleef (spleef_type)&6: Create a spleef. It sets the spawn location"
  329. message "&3/spleef reload&6: Reload the Skript"
  330. message "&3/spleef setup&6: A GUI for setup Spleef-games"
  331. message "&3/spleef setmainhub&6: Set the mainhub"
  332. message "&3/spleef setwaitlobby (spleef_type)&6: Set the waitlobby"
  333. message "&3/join (spleef_type)&6: Join a game"
  334. message "&3/leave&6: Leave a game"
  335. message "&3/spleef mainhub&6: Teleport to the mainhub"
  336. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  337. arg 2 is "2":
  338. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  339. message "&3/spleef waitlobby (spleef_type)&6: Teleport to the waitlobby"
  340. message "&3/spleef joinsign (spleef_type) [money_to_pay]&6: Get a join sign."
  341. message "&3/spleef kickspleef (spleef_type)&6: Kick all the players for a specific game"
  342. message ""
  343. message "&3You kan also do &5/s&3, &5/sp&3 or &5/spl"
  344. message ""
  345. message "&3The current spleeftypes are: &fSnow&3, &4Pizza"
  346. message ""
  347. message "&3Skript made by &5SaMaGamers"
  348. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  349. arg 2 is not "1":
  350. arg 2 is not "2":
  351. arg 2 is set:
  352. message "{@prefix} &cThat page does'nt exists!"
  353. else:
  354. message "{@prefix} &cYou don't have the permission to do that!"
  355. arg 1 is "info":
  356. player has permission "spleef.info" or "spleef.*":
  357. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  358. message "&3maker: &6SaMaGamers"
  359. message "&3version: &64.2"
  360. message "&7Free Version"
  361. message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
  362. else:
  363. message "{@prefix} &cYou don't have the permission to do that!"
  364. arg 1 is "setup":
  365. player has permission "spleef.setup" or "spleef.*":
  366. open chest with 1 row named "&3Spleef" to player
  367. wait 1 tick
  368. format slot 0 of player with beacon named "&6Mainhub" to close then run [make player execute the command "spleef setmainhub"]
  369. format slot 3 of player with crafting table named "&6Waitlobby&3-Snow" to close then run [make player execute the command "spleef setwaitlobby snow"]
  370. format slot 4 of player with crafting table named "&6Waitlobby&3-Pizza" to close then run [make player execute the command "spleef setwaitlobby pizza"]
  371. format slot 6 of player with diamond block named "&6Create Game &3Snow" to close then run [make player execute the command "spleef createspleef snow"]
  372. format slot 7 of player with diamond block named "&6Create Game &3Pizza" to close then run [make player execute the command "spleef createspleef pizza"]
  373. stop
  374. else:
  375. message "{@prefix} &cYou don't have the permission to do that!"
  376. arg 1 is "joinsign":
  377. player has permission "spleef.joinsign" or "spleef.*":
  378. arg 3 is not set:
  379. arg 2 is "snow":
  380. give sign named "&7Snow &6Join-sign" to player
  381. message "{@prefix} &3You got a &7Snow &3Join-sign"
  382. arg 2 is "pizza":
  383. give sign named "&4Pizza &6Join-sign" to player
  384. message "{@prefix} &3You got a &4Pizza &3Join-sign"
  385. arg 2 is not "snow":
  386. arg 2 is not "pizza":
  387. arg 2 is set:
  388. message "{@prefix} &cThat spleef-type does'nt exists!"
  389. arg 3 is set:
  390. arg 2 is "snow":
  391. give sign named "&7Snow &6Join-sign" with lore "%arg 3%" to player
  392. message "{@prefix} &3You got a &7Snow &3Join-sign"
  393. arg 2 is "pizza":
  394. give sign named "&4Pizza &6Join-sign" with lore "%arg 3%" to player
  395. message "{@prefix} &3You got a &4Pizza &3Join-sign"
  396. arg 2 is not "snow":
  397. arg 2 is not "pizza":
  398. arg 2 is set:
  399. message "{@prefix} &cThat spleef-type does'nt exists!"
  400. else:
  401. message "{@prefix} &cYou don't have the permission to do that!"
  402. arg 1 is "mainhub":
  403. player has permission "spleef.mainhub" or "spleef.*":
  404. {spleef.location.mainhub} is set:
  405. teleport player to {spleef.location.mainhub}
  406. else:
  407. message "{@prefix} &3Set the mainhub location first with &o/spleef setmainhub&r&3!" to player
  408. else:
  409. message "{@prefix} &cYou don't have the permission to do that!"
  410. arg 1 is "waitlobby":
  411. arg 2 is "snow":
  412. player has permission "spleef.waitlobby.snow" or "spleef.*":
  413. {spleef.location.waitlobby.snow} is set:
  414. teleport player to {spleef.location.waitlobby.snow}
  415. else:
  416. message "{@prefix} &3Set the waitlobby location first with &o/spleef setwaitlobby (spleef_type)&r&3!" to player
  417. else:
  418. message "{@prefix} &cYou don't have the permission to do that!"
  419. arg 2 is "pizza":
  420. player has permission "spleef.waitlobby.pizza" or "spleef.*":
  421. {spleef.location.waitlobby.pizza} is set:
  422. teleport player to {spleef.location.waitlobby.pizza}
  423. else:
  424. message "{@prefix} &3Set the waitlobby location first with &o/spleef setwaitlobby (spleef_type)&r&3!" to player
  425. else:
  426. message "{@prefix} &cYou don't have the permission to do that!"
  427. arg 2 is not "snow" or "pizza":
  428. message "{@prefix} &3Specify a spleeftype!"
  429. arg 1 is not set:
  430. message "{@prefix} &3Do &6&o/spleef help &r&3for a list of commands" to player
  431. arg 1 is "setmainhub":
  432. player has permission "spleef.setup" or "spleef.*":
  433. set {spleef.location.mainhub} to location of player
  434. message "{@prefix} &3You set the mainhub to your current location!" to player
  435. else:
  436. message "{@prefix} &cYou don't have the permission to do that!"
  437. arg 1 is "setwaitlobby":
  438. arg 2 is "snow":
  439. player has permission "spleef.setup" or "spleef.*":
  440. set {spleef.location.waitlobby.snow} to location of player
  441. message "{@prefix} &3You set the waitlobby for SNOW to your current location!" to player
  442. else:
  443. message "{@prefix} &cYou don't have the permission to do that!"
  444. arg 2 is "pizza":
  445. player has permission "spleef.setup" or "spleef.*":
  446. set {spleef.location.waitlobby.pizza} to location of player
  447. message "{@prefix} &3You set the waitlobby for PIZZA to your current location!" to player
  448. else:
  449. message "{@prefix} &cYou don't have the permission to do that!"
  450. arg 2 is not "snow" or "pizza":
  451. message "{@prefix} &3Specify a spleeftype!"
  452. arg 1 is "createspleef":
  453. arg 2 is "snow":
  454. player has permission "spleef.setup" or "spleef.*":
  455. {spleef.location.waitlobby.snow} is set:
  456. {spleef.location.mainhub} is set:
  457. set {spleef.location.snow} to location of player
  458. set {spleef.game.snow.created} to true
  459. message "{@prefix} &3You have created the arena snow!&o&7 Make sure that this is an area of snow! The spawn location is put on your current location!" to player
  460. stop
  461. else:
  462. message "{@prefix} &3Set the mainhub first!"
  463. stop
  464. else:
  465. message "{@prefix} &3Set the waitlobby first!"
  466. stop
  467. else:
  468. message "{@prefix} &cYou don't have the permission to do that!"
  469. stop
  470. arg 2 is "pizza":
  471. player has permission "spleef.setup" or "spleef.*":
  472. {spleef.location.waitlobby.pizza} is set:
  473. {spleef.location.mainhub} is set:
  474. set {spleef.location.pizza} to location of player
  475. set {spleef.game.pizza.created} to true
  476. message "{@prefix} &3You have created the arena &4Pizza&3!&o&7 Make sure you have only use this blocks:" to player
  477. message "{@prefix} &eObsidian (49), Gold Block (41), Redstone Block (152), Glass, (20)" to player
  478. message "&eLime Wool (35:5), Spruce Wood (5:1), Soul Sand (88) and any Hardened Clay Block (159:0-15)&3!" to player
  479. message "{@prefix} &3The spawn location is put on your current location!" to player
  480. stop
  481. else:
  482. message "{@prefix} &3Set the mainhub first!"
  483. stop
  484. else:
  485. message "{@prefix} &3Set the waitlobby first!"
  486. stop
  487. else:
  488. message "{@prefix} &cYou don't have the permission to do that!"
  489. stop
  490. arg 2 is not "snow" or "pizza":
  491. message "{@prefix} &3Specify a spleeftype!"
  492. stop
  493. arg 1 is "setnoplaying":
  494. player has permission "spleef.setnoplaying":
  495. if arg-2 is set:
  496. set {player.%arg 2%.playing} to false
  497. message "{@prefix} &3There may be bugs!"
  498. else:
  499. message "{@prefix} &3Specify an online player!"
  500. stop
  501. else:
  502. message "{@prefix} &cYou don't have the permission!"
  503. stop
  504. arg 1 is "reload":
  505. player has permission "spleef.reload" or "spleef.*":
  506. make console execute the command "sk reload Spleef"
  507. message "{@prefix} &3Succesfully reloaded &eSpleef.sk"
  508. arg 1 is "kickspleef":
  509. arg 2 is "snow":
  510. player has permission "spleef.kickspleef" or "spleef.*":
  511. {spleef.game.snow.created} is true:
  512. set {spleef.game.snow.list} to 0
  513. loop {spleef.game.snow.list::*}:
  514. teleport loop-value to {spleef.location.mainhub}
  515. set {player.%loop-value%.playing} to false
  516. set {player.%loop-value%.waiting} to false
  517. clear player's inventory
  518. invoke "Inv.Give" from loop-value
  519. message "{@prefix} &cYou are kicked from the game by %player%" to loop-value
  520. set {spleef.game.snow.ingame} to false
  521. remove loop-value from {spleef.game.snow.list::*}
  522. arg 2 is "pizza":
  523. player has permission "spleef.kickspleef" or "spleef.*":
  524. {spleef.game.pizza.created} is true:
  525. set {spleef.game.pizza.list} to 0
  526. loop {spleef.game.pizza.list::*}:
  527. teleport loop-value to {spleef.location.mainhub}
  528. set {player.%loop-value%.playing} to false
  529. set {player.%loop-value%.waiting} to false
  530. clear player's inventory
  531. invoke "Inv.Give" from loop-value
  532. message "{@prefix} &cYou are kicked from the game by %player%" to loop-value
  533. set {spleef.game.pizza.ingame} to false
  534. remove loop-value from {spleef.game.pizza.list::*}
  535. arg 1 is not "kickspleef" or "setnoplaying" or "createspleef" or "help" or "info" or "setwaitlobby" or "waitlobby" or "setmainhub" or "mainhub" or "setup" or "reload" or "joinsign":
  536. message "{@prefix} &4ERROR&c: Invalid Syntax &4> &3/spleef help"
  537.  
  538. command /join <text>:
  539. aliases: /splj, /sj, /spj
  540. executable by: players
  541. trigger:
  542. arg 1 is "snow":
  543. {spleef.game.snow.created} is true:
  544. {player.%player%.status} is "null":
  545. {spleef.game.snow.list} is not equal to {@maxspleefsnowplayers}:
  546. {player.%player%.waiting} is false:
  547. {spleef.game.snow.ingame} is false:
  548. set {player.%player%.status} to "snow"
  549. heal the player
  550. invoke "Inv.Save" from loop-value
  551. clear player's inventory
  552. set player's health to 20
  553. set player's hunger to 20
  554. set {player.%player%.waiting} to true
  555. set level of player to 0
  556. set player's gamemode to survival
  557. add 1 to {spleef.game.snow.list}
  558. add player to {spleef.game.snow.list::*}
  559. teleport player to {spleef.location.waitlobby.snow}
  560. message "{@prefix} &3You joined the queue!"
  561. wait 5 ticks
  562. message "{@prefix} &3%player% has joined the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  563. {spleef.game.snow.list} = {@maxspleefsnowplayers}:
  564. loop {spleef.game.snow.list::*}:
  565. message "{@prefix} &3The game bigins in &510 seconds" to loop-value
  566. wait 5 seconds
  567. message "{@prefix} &3The game begins in &55 seconds" to loop-value
  568. wait 2 seconds
  569. message "{@prefix} &3The game begins in &53 seconds" to loop-value
  570. wait 1 second
  571. message "{@prefix} &3The game begins in &52 seconds" to loop-value
  572. wait 1 second
  573. message "{@prefix} &3The game begins in &51 seconds" to loop-value
  574. wait 1 second
  575. message "{@prefix} &3The game begins!!!" to loop-value
  576. teleport loop-value to {spleef.location.snow}
  577. give {spleef.game.snow.list::*} a diamond spade
  578. set {player.%player%.status} to "snow"
  579. set {player.%loop-value%.status} to "snow"
  580. set {player.%player%.playing} to true
  581. set {player.%loop-value%.playing} to true
  582. set {player.%player%.waiting} to false
  583. set {player.%loop-value%.waiting} to false
  584. set {spleef.game.snow.ingame} to true
  585. add 1 to {player.%player%.games}
  586. add 1 to {player.%loop-value%.games}
  587. else:
  588. message "{@prefix} &6This game is &2Ingame&6!"
  589. stop
  590. else:
  591. message "{@prefix} &6You are already playing!"
  592. stop
  593. else:
  594. message "{@prefix} &6This game is full!"
  595. stop
  596. else:
  597. message "{@prefix} &6You are already playing!"
  598. stop
  599. else:
  600. message "{@prefix} &6The Snow-arena is not created!"
  601. stop
  602. arg 1 is "pizza":
  603. {spleef.game.pizza.created} is true:
  604. {player.%player%.status} is "null":
  605. {spleef.game.pizza.list} is not equal to {@maxspleefpizzaplayers}:
  606. {player.%player%.waiting} is false:
  607. {spleef.game.pizza.ingame} is false:
  608. set {player.%player%.status} to "pizza"
  609. heal the player
  610. invoke "Inv.Save" from loop-value
  611. clear player's inventory
  612. set player's health to 20
  613. set player's hunger to 20
  614. set {player.%player%.waiting} to true
  615. set level of player to 0
  616. set player's gamemode to survival
  617. add 1 to {spleef.game.pizza.list}
  618. add player to {spleef.game.pizza.list::*}
  619. teleport player to {spleef.location.waitlobby.pizza}
  620. message "{@prefix} &3You joined the queue!"
  621. wait 5 ticks
  622. message "{@prefix} &3%player% has joined the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  623. {spleef.game.pizza.list} = {@maxspleefpizzaplayers}:
  624. loop {spleef.game.pizza.list::*}:
  625. message "{@prefix} &3The game bigins in &510 seconds" to loop-value
  626. wait 5 seconds
  627. message "{@prefix} &3The game begins in &55 seconds" to loop-value
  628. wait 2 seconds
  629. message "{@prefix} &3The game begins in &53 seconds" to loop-value
  630. wait 1 second
  631. message "{@prefix} &3The game begins in &52 seconds" to loop-value
  632. wait 1 second
  633. message "{@prefix} &3The game begins in &51 seconds" to loop-value
  634. wait 1 second
  635. message "{@prefix} &3The game begins!!!" to loop-value
  636. teleport loop-value to {spleef.location.pizza}
  637. give {spleef.game.pizza.list::*} a diamond pickaxe
  638. set {player.%player%.status} to "pizza"
  639. set {player.%loop-value%.status} to "pizza"
  640. set {player.%player%.playing} to true
  641. set {player.%loop-value%.playing} to true
  642. set {player.%player%.waiting} to false
  643. set {player.%loop-value%.waiting} to false
  644. set {spleef.game.pizza.ingame} to true
  645. add 1 to {player.%player%.games}
  646. add 1 to {player.%loop-value%.games}
  647. else:
  648. message "{@prefix} &6This game is &2Ingame&6!"
  649. stop
  650. else:
  651. message "{@prefix} &6You are already playing!"
  652. stop
  653. else:
  654. message "{@prefix} &6This game is full!"
  655. stop
  656. else:
  657. message "{@prefix} &6You are already playing!"
  658. stop
  659. else:
  660. message "{@prefix} &6The Pizza-arena is not created!"
  661. stop
  662. arg 1 is not "snow" or "pizza":
  663. message "{@prefix} &6You can't join that arena!" to player
  664. stop
  665.  
  666. command /lobby:
  667. aliases: /spll, /leave
  668. trigger:
  669. {player.%player%.status} is "snow":
  670. {player.%player%.playing} is true:
  671. {spleef.game.snow.list} is not 2 or 1:
  672. remove player from {spleef.game.snow.list::*}
  673. remove 1 from {spleef.game.snow.list}
  674. clear player's inventory
  675. invoke "Inv.Give" from player
  676. teleport player to {spleef.location.mainhub}
  677. set {player.%player%.playing} to false
  678. set {player.%player%.status} to "null"
  679. wait 5 ticks
  680. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  681. {spleef.game.snow.list} is 1:
  682. message "{@prefix} &cYou're the last man standing"
  683. message "{@prefix} &cWait a second and you will be teleported back!"
  684. {spleef.game.snow.list} is 2:
  685. remove player from {spleef.game.snow.list::*}
  686. set {spleef.game.snow.list} to 0
  687. clear player's inventory
  688. invoke "Inv.Give" from player
  689. teleport player to {spleef.location.mainhub}
  690. set {player.%player%.status} to "null"
  691. loop {spleef.game.snow.list::*}:
  692. message "{@prefix} &2You won the game!!!" to loop-value
  693. wait 1 tick
  694. launch creeper firework colored blue at loop-value with duration 1
  695. wait 1 tick
  696. launch creeper firework colored yellow at loop-value with duration 1
  697. wait 1 tick
  698. launch creeper firework colored purple at loop-value with duration 1
  699. wait 1 tick
  700. launch creeper firework colored green at loop-value with duration 1
  701. wait 1 tick
  702. launch creeper firework colored pink at loop-value with duration 1
  703. wait 1 tick
  704. launch creeper firework colored red at loop-value with duration 1
  705. wait 1 tick
  706. launch creeper firework colored blue at loop-value with duration 1
  707. wait 1 tick
  708. launch creeper firework colored yellow at loop-value with duration 1
  709. wait 1 tick
  710. launch creeper firework colored purple at loop-value with duration 1
  711. wait 1 tick
  712. launch creeper firework colored green at loop-value with duration 1
  713. wait 1 tick
  714. launch creeper firework colored blue at loop-value with duration 1
  715. wait 60 ticks
  716. launch creeper firework colored yellow at loop-value with duration 1
  717. wait 1 tick
  718. launch creeper firework colored purple at loop-value with duration 1
  719. wait 1 tick
  720. launch creeper firework colored green at loop-value with duration 1
  721. wait 1 tick
  722. launch creeper firework colored pink at loop-value with duration 1
  723. wait 1 tick
  724. launch creeper firework colored red at loop-value with duration 1
  725. wait 1 tick
  726. launch creeper firework colored blue at loop-value with duration 1
  727. wait 1 tick
  728. launch creeper firework colored yellow at loop-value with duration 1
  729. wait 1 tick
  730. launch creeper firework colored purple at loop-value with duration 1
  731. wait 1 tick
  732. launch creeper firework colored green at loop-value with duration 1
  733. wait 2 seconds
  734. message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
  735. wait 5 seconds
  736. teleport loop-value to {spleef.location.mainhub}
  737. set {player.%loop-value%.playing} to false
  738. add 1 to {player.%loop-value%.wins}
  739. remove loop-value from {spleef.game.snow.list::*}
  740. set {player.%loop-value%.status} to "null"
  741. set {player.%player%.playing} to false
  742. message "{@prefix} &cYou leave the game"
  743. wait 5 ticks
  744. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  745. invoke "Spleef.RegenBlocks.Snow"
  746. wait 10 seconds
  747. set {spleef.game.snow.ingame} to false
  748. {player.%player%.waiting} is true:
  749. remove player from {spleef.game.snow.list::*}
  750. remove 1 from {spleef.game.snow.list}
  751. clear player's inventory
  752. invoke "Inv.Give" from player
  753. teleport player to {spleef.location.mainhub}
  754. set {player.%player%.waiting} to false
  755. message "{@prefix} &cYou leave the queue"
  756. set {player.%player%.status} to "null"
  757. wait 5 ticks
  758. message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  759. {spleef.%player%.playing} is false:
  760. {spleef.%player%.waiting} is false:
  761. message "{@prefix} &3You are not playing a game of Spleef!"
  762. {player.%player%.status} is "pizza":
  763. {player.%player%.playing} is true:
  764. {spleef.game.pizza.list} is not 2 or 1:
  765. remove player from {spleef.game.pizza.list::*}
  766. remove 1 from {spleef.game.pizza.list}
  767. clear player's inventory
  768. invoke "Inv.Give" from player
  769. teleport player to {spleef.location.mainhub}
  770. set {player.%player%.playing} to false
  771. set {player.%player%.status} to "null"
  772. wait 5 ticks
  773. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  774. {spleef.game.pizza.list} is 1:
  775. message "{@prefix} &cYou're the last man standing"
  776. message "{@prefix} &cWait a second and you will be teleported back!"
  777. {spleef.game.pizza.list} is 2:
  778. remove player from {spleef.game.pizza.list::*}
  779. set {spleef.game.pizza.list} to 0
  780. clear player's inventory
  781. invoke "Inv.Give" from player
  782. teleport player to {spleef.location.mainhub}
  783. set {player.%player%.status} to "null"
  784. loop {spleef.game.pizza.list::*}:
  785. message "{@prefix} &2You won the game!!!" to loop-value
  786. wait 1 tick
  787. launch creeper firework colored blue at loop-value with duration 1
  788. wait 1 tick
  789. launch creeper firework colored yellow at loop-value with duration 1
  790. wait 1 tick
  791. launch creeper firework colored purple at loop-value with duration 1
  792. wait 1 tick
  793. launch creeper firework colored green at loop-value with duration 1
  794. wait 1 tick
  795. launch creeper firework colored pink at loop-value with duration 1
  796. wait 1 tick
  797. launch creeper firework colored red at loop-value with duration 1
  798. wait 1 tick
  799. launch creeper firework colored blue at loop-value with duration 1
  800. wait 1 tick
  801. launch creeper firework colored yellow at loop-value with duration 1
  802. wait 1 tick
  803. launch creeper firework colored purple at loop-value with duration 1
  804. wait 1 tick
  805. launch creeper firework colored green at loop-value with duration 1
  806. wait 1 tick
  807. launch creeper firework colored blue at loop-value with duration 1
  808. wait 60 ticks
  809. launch creeper firework colored yellow at loop-value with duration 1
  810. wait 1 tick
  811. launch creeper firework colored purple at loop-value with duration 1
  812. wait 1 tick
  813. launch creeper firework colored green at loop-value with duration 1
  814. wait 1 tick
  815. launch creeper firework colored pink at loop-value with duration 1
  816. wait 1 tick
  817. launch creeper firework colored red at loop-value with duration 1
  818. wait 1 tick
  819. launch creeper firework colored blue at loop-value with duration 1
  820. wait 1 tick
  821. launch creeper firework colored yellow at loop-value with duration 1
  822. wait 1 tick
  823. launch creeper firework colored purple at loop-value with duration 1
  824. wait 1 tick
  825. launch creeper firework colored green at loop-value with duration 1
  826. wait 2 seconds
  827. message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
  828. wait 5 seconds
  829. teleport loop-value to {spleef.location.mainhub}
  830. set {player.%loop-value%.playing} to false
  831. add 1 to {player.%loop-value%.wins}
  832. remove loop-value from {spleef.game.pizza.list::*}
  833. set {player.%loop-value%.status} to "null"
  834. set {player.%player%.playing} to false
  835. message "{@prefix} &cYou leave the game"
  836. wait 5 ticks
  837. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  838. invoke "Spleef.RegenBlocks.Pizza"
  839. wait 10 seconds
  840. set {spleef.game.pizza.ingame} to false
  841. {player.%player%.waiting} is true:
  842. remove player from {spleef.game.pizza.list::*}
  843. remove 1 from {spleef.game.pizza.list}
  844. clear player's inventory
  845. invoke "Inv.Give" from player
  846. teleport player to {spleef.location.mainhub}
  847. set {player.%player%.waiting} to false
  848. message "{@prefix} &cYou leave the queue"
  849. set {player.%player%.status} to "null"
  850. wait 5 ticks
  851. message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  852. {spleef.%player%.playing} is false:
  853. {spleef.%player%.waiting} is false:
  854. message "{@prefix} &3You are not playing a game of Spleef!"
  855.  
  856. On quit:
  857. {player.%player%.status} is "snow":
  858. {player.%player%.playing} is true:
  859. {spleef.game.snow.list} is not 2 or 1:
  860. remove player from {spleef.game.snow.list::*}
  861. remove 1 from {spleef.game.snow.list}
  862. clear player's inventory
  863. invoke "Inv.Give" from player
  864. teleport player to {spleef.location.mainhub}
  865. set {player.%player%.playing} to false
  866. set {player.%player%.status} to "null"
  867. wait 5 ticks
  868. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  869. {spleef.game.snow.list} is 1:
  870. message "{@prefix} &cYou're the last man standing"
  871. message "{@prefix} &cWait a second and you will be teleported back!"
  872. {spleef.game.snow.list} is 2:
  873. remove player from {spleef.game.snow.list::*}
  874. set {spleef.game.snow.list} to 0
  875. clear player's inventory
  876. invoke "Inv.Give" from player
  877. teleport player to {spleef.location.mainhub}
  878. set {player.%player%.status} to "null"
  879. loop {spleef.game.snow.list::*}:
  880. message "{@prefix} &2You won the game!!!" to loop-value
  881. wait 1 tick
  882. launch creeper firework colored blue at loop-value with duration 1
  883. wait 1 tick
  884. launch creeper firework colored yellow at loop-value with duration 1
  885. wait 1 tick
  886. launch creeper firework colored purple at loop-value with duration 1
  887. wait 1 tick
  888. launch creeper firework colored green at loop-value with duration 1
  889. wait 1 tick
  890. launch creeper firework colored pink at loop-value with duration 1
  891. wait 1 tick
  892. launch creeper firework colored red at loop-value with duration 1
  893. wait 1 tick
  894. launch creeper firework colored blue at loop-value with duration 1
  895. wait 1 tick
  896. launch creeper firework colored yellow at loop-value with duration 1
  897. wait 1 tick
  898. launch creeper firework colored purple at loop-value with duration 1
  899. wait 1 tick
  900. launch creeper firework colored green at loop-value with duration 1
  901. wait 1 tick
  902. launch creeper firework colored blue at loop-value with duration 1
  903. wait 60 ticks
  904. launch creeper firework colored yellow at loop-value with duration 1
  905. wait 1 tick
  906. launch creeper firework colored purple at loop-value with duration 1
  907. wait 1 tick
  908. launch creeper firework colored green at loop-value with duration 1
  909. wait 1 tick
  910. launch creeper firework colored pink at loop-value with duration 1
  911. wait 1 tick
  912. launch creeper firework colored red at loop-value with duration 1
  913. wait 1 tick
  914. launch creeper firework colored blue at loop-value with duration 1
  915. wait 1 tick
  916. launch creeper firework colored yellow at loop-value with duration 1
  917. wait 1 tick
  918. launch creeper firework colored purple at loop-value with duration 1
  919. wait 1 tick
  920. launch creeper firework colored green at loop-value with duration 1
  921. wait 2 seconds
  922. message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
  923. wait 5 seconds
  924. teleport loop-value to {spleef.location.mainhub}
  925. set {player.%loop-value%.playing} to false
  926. add 1 to {player.%loop-value%.wins}
  927. remove loop-value from {spleef.game.snow.list::*}
  928. set {player.%loop-value%.status} to "null"
  929. set {player.%player%.playing} to false
  930. message "{@prefix} &cYou leave the game"
  931. wait 5 ticks
  932. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  933. invoke "Spleef.RegenBlocks.Snow"
  934. wait 10 seconds
  935. set {spleef.game.snow.ingame} to false
  936. {player.%player%.waiting} is true:
  937. remove player from {spleef.game.snow.list::*}
  938. remove 1 from {spleef.game.snow.list}
  939. clear player's inventory
  940. invoke "Inv.Give" from player
  941. teleport player to {spleef.location.mainhub}
  942. set {player.%player%.waiting} to false
  943. message "{@prefix} &cYou leave the queue"
  944. set {player.%player%.status} to "null"
  945. wait 5 ticks
  946. message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  947. {spleef.%player%.playing} is false:
  948. {spleef.%player%.waiting} is false:
  949. message "{@prefix} &3You are not playing a game of Spleef!"
  950. {player.%player%.status} is "pizza":
  951. {player.%player%.playing} is true:
  952. {spleef.game.pizza.list} is not 2 or 1:
  953. remove player from {spleef.game.pizza.list::*}
  954. remove 1 from {spleef.game.pizza.list}
  955. clear player's inventory
  956. invoke "Inv.Give" from player
  957. teleport player to {spleef.location.mainhub}
  958. set {player.%player%.playing} to false
  959. set {player.%player%.status} to "null"
  960. wait 5 ticks
  961. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  962. {spleef.game.pizza.list} is 1:
  963. message "{@prefix} &cYou're the last man standing"
  964. message "{@prefix} &cWait a second and you will be teleported back!"
  965. {spleef.game.pizza.list} is 2:
  966. remove player from {spleef.game.pizza.list::*}
  967. set {spleef.game.pizza.list} to 0
  968. clear player's inventory
  969. invoke "Inv.Give" from player
  970. teleport player to {spleef.location.mainhub}
  971. set {player.%player%.status} to "null"
  972. loop {spleef.game.pizza.list::*}:
  973. message "{@prefix} &2You won the game!!!" to loop-value
  974. wait 1 tick
  975. launch creeper firework colored blue at loop-value with duration 1
  976. wait 1 tick
  977. launch creeper firework colored yellow at loop-value with duration 1
  978. wait 1 tick
  979. launch creeper firework colored purple at loop-value with duration 1
  980. wait 1 tick
  981. launch creeper firework colored green at loop-value with duration 1
  982. wait 1 tick
  983. launch creeper firework colored pink at loop-value with duration 1
  984. wait 1 tick
  985. launch creeper firework colored red at loop-value with duration 1
  986. wait 1 tick
  987. launch creeper firework colored blue at loop-value with duration 1
  988. wait 1 tick
  989. launch creeper firework colored yellow at loop-value with duration 1
  990. wait 1 tick
  991. launch creeper firework colored purple at loop-value with duration 1
  992. wait 1 tick
  993. launch creeper firework colored green at loop-value with duration 1
  994. wait 1 tick
  995. launch creeper firework colored blue at loop-value with duration 1
  996. wait 60 ticks
  997. launch creeper firework colored yellow at loop-value with duration 1
  998. wait 1 tick
  999. launch creeper firework colored purple at loop-value with duration 1
  1000. wait 1 tick
  1001. launch creeper firework colored green at loop-value with duration 1
  1002. wait 1 tick
  1003. launch creeper firework colored pink at loop-value with duration 1
  1004. wait 1 tick
  1005. launch creeper firework colored red at loop-value with duration 1
  1006. wait 1 tick
  1007. launch creeper firework colored blue at loop-value with duration 1
  1008. wait 1 tick
  1009. launch creeper firework colored yellow at loop-value with duration 1
  1010. wait 1 tick
  1011. launch creeper firework colored purple at loop-value with duration 1
  1012. wait 1 tick
  1013. launch creeper firework colored green at loop-value with duration 1
  1014. wait 2 seconds
  1015. message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
  1016. wait 5 seconds
  1017. teleport loop-value to {spleef.location.mainhub}
  1018. set {player.%loop-value%.playing} to false
  1019. add 1 to {player.%loop-value%.wins}
  1020. remove loop-value from {spleef.game.pizza.list::*}
  1021. set {player.%loop-value%.status} to "null"
  1022. set {player.%player%.playing} to false
  1023. message "{@prefix} &cYou leave the game"
  1024. wait 5 ticks
  1025. message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  1026. invoke "Spleef.RegenBlocks.Pizza"
  1027. wait 10 seconds
  1028. set {spleef.game.pizza.ingame} to false
  1029. {player.%player%.waiting} is true:
  1030. remove player from {spleef.game.pizza.list::*}
  1031. remove 1 from {spleef.game.pizza.list}
  1032. clear player's inventory
  1033. invoke "Inv.Give" from player
  1034. teleport player to {spleef.location.mainhub}
  1035. set {player.%player%.waiting} to false
  1036. message "{@prefix} &cYou leave the queue"
  1037. set {player.%player%.status} to "null"
  1038. wait 5 ticks
  1039. message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  1040. {spleef.%player%.playing} is false:
  1041. {spleef.%player%.waiting} is false:
  1042. message "{@prefix} &3You are not playing a game of Spleef!"
  1043.  
  1044. On death:
  1045. {player.%victim%.status} is "snow":
  1046. {player.%victim%.playing} is true:
  1047. {spleef.game.snow.list} is not 2 or 1:
  1048. remove victim from {spleef.game.snow.list::*}
  1049. remove 1 from {spleef.game.snow.list}
  1050. clear victim's inventory
  1051. invoke "Inv.Give" from victim
  1052. teleport victim to {spleef.location.mainhub}
  1053. set {player.%victim%.playing} to false
  1054. set {player.%victim%.status} to "null"
  1055. wait 5 ticks
  1056. message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  1057. {spleef.game.snow.list} is 1:
  1058. message "{@prefix} &cYou're the last man standing"
  1059. message "{@prefix} &cWait a second and you will be teleported back!"
  1060. {spleef.game.snow.list} is 2:
  1061. remove victim from {spleef.game.snow.list::*}
  1062. set {spleef.game.snow.list} to 0
  1063. clear victim's inventory
  1064. invoke "Inv.Give" from victim
  1065. teleport victim to {spleef.location.mainhub}
  1066. set {player.%victim%.status} to "null"
  1067. loop {spleef.game.snow.list::*}:
  1068. message "{@prefix} &2You won the game!!!" to loop-value
  1069. wait 1 tick
  1070. launch creeper firework colored blue at loop-value with duration 1
  1071. wait 1 tick
  1072. launch creeper firework colored yellow at loop-value with duration 1
  1073. wait 1 tick
  1074. launch creeper firework colored purple at loop-value with duration 1
  1075. wait 1 tick
  1076. launch creeper firework colored green at loop-value with duration 1
  1077. wait 1 tick
  1078. launch creeper firework colored pink at loop-value with duration 1
  1079. wait 1 tick
  1080. launch creeper firework colored red at loop-value with duration 1
  1081. wait 1 tick
  1082. launch creeper firework colored blue at loop-value with duration 1
  1083. wait 1 tick
  1084. launch creeper firework colored yellow at loop-value with duration 1
  1085. wait 1 tick
  1086. launch creeper firework colored purple at loop-value with duration 1
  1087. wait 1 tick
  1088. launch creeper firework colored green at loop-value with duration 1
  1089. wait 1 tick
  1090. launch creeper firework colored blue at loop-value with duration 1
  1091. wait 60 ticks
  1092. launch creeper firework colored yellow at loop-value with duration 1
  1093. wait 1 tick
  1094. launch creeper firework colored purple at loop-value with duration 1
  1095. wait 1 tick
  1096. launch creeper firework colored green at loop-value with duration 1
  1097. wait 1 tick
  1098. launch creeper firework colored pink at loop-value with duration 1
  1099. wait 1 tick
  1100. launch creeper firework colored red at loop-value with duration 1
  1101. wait 1 tick
  1102. launch creeper firework colored blue at loop-value with duration 1
  1103. wait 1 tick
  1104. launch creeper firework colored yellow at loop-value with duration 1
  1105. wait 1 tick
  1106. launch creeper firework colored purple at loop-value with duration 1
  1107. wait 1 tick
  1108. launch creeper firework colored green at loop-value with duration 1
  1109. wait 2 seconds
  1110. message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
  1111. wait 5 seconds
  1112. teleport loop-value to {spleef.location.mainhub}
  1113. set {player.%loop-value%.playing} to false
  1114. add 1 to {player.%loop-value%.wins}
  1115. remove loop-value from {spleef.game.snow.list::*}
  1116. set {player.%loop-value%.status} to "null"
  1117. set {player.%victim%.playing} to false
  1118. message "{@prefix} &cYou leave the game"
  1119. wait 5 ticks
  1120. message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  1121. invoke "Spleef.RegenBlocks.Snow"
  1122. wait 10 seconds
  1123. set {spleef.game.snow.ingame} to false
  1124. {player.%victim%.waiting} is true:
  1125. remove victim from {spleef.game.snow.list::*}
  1126. remove 1 from {spleef.game.snow.list}
  1127. clear victim's inventory
  1128. invoke "Inv.Give" from victim
  1129. teleport victim to {spleef.location.mainhub}
  1130. set {player.%victim%.waiting} to false
  1131. message "{@prefix} &cYou leave the queue"
  1132. set {player.%victim%.status} to "null"
  1133. wait 5 ticks
  1134. message "{@prefix} &3%victim% leaved the queue! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
  1135. {spleef.%victim%.playing} is false:
  1136. {spleef.%victim%.waiting} is false:
  1137. message "{@prefix} &3You are not playing a game of Spleef!"
  1138. {player.%victim%.status} is "pizza":
  1139. {player.%victim%.playing} is true:
  1140. {spleef.game.pizza.list} is not 2 or 1:
  1141. remove victim from {spleef.game.pizza.list::*}
  1142. remove 1 from {spleef.game.pizza.list}
  1143. clear victim's inventory
  1144. invoke "Inv.Give" from victim
  1145. teleport victim to {spleef.location.mainhub}
  1146. set {player.%victim%.playing} to false
  1147. set {player.%victim%.status} to "null"
  1148. wait 5 ticks
  1149. message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  1150. {spleef.game.pizza.list} is 1:
  1151. message "{@prefix} &cYou're the last man standing"
  1152. message "{@prefix} &cWait a second and you will be teleported back!"
  1153. {spleef.game.pizza.list} is 2:
  1154. remove victim from {spleef.game.pizza.list::*}
  1155. set {spleef.game.pizza.list} to 0
  1156. clear victim's inventory
  1157. invoke "Inv.Give" from victim
  1158. teleport victim to {spleef.location.mainhub}
  1159. set {player.%victim%.status} to "null"
  1160. loop {spleef.game.pizza.list::*}:
  1161. message "{@prefix} &2You won the game!!!" to loop-value
  1162. wait 1 tick
  1163. launch creeper firework colored blue at loop-value with duration 1
  1164. wait 1 tick
  1165. launch creeper firework colored yellow at loop-value with duration 1
  1166. wait 1 tick
  1167. launch creeper firework colored purple at loop-value with duration 1
  1168. wait 1 tick
  1169. launch creeper firework colored green at loop-value with duration 1
  1170. wait 1 tick
  1171. launch creeper firework colored pink at loop-value with duration 1
  1172. wait 1 tick
  1173. launch creeper firework colored red at loop-value with duration 1
  1174. wait 1 tick
  1175. launch creeper firework colored blue at loop-value with duration 1
  1176. wait 1 tick
  1177. launch creeper firework colored yellow at loop-value with duration 1
  1178. wait 1 tick
  1179. launch creeper firework colored purple at loop-value with duration 1
  1180. wait 1 tick
  1181. launch creeper firework colored green at loop-value with duration 1
  1182. wait 1 tick
  1183. launch creeper firework colored blue at loop-value with duration 1
  1184. wait 60 ticks
  1185. launch creeper firework colored yellow at loop-value with duration 1
  1186. wait 1 tick
  1187. launch creeper firework colored purple at loop-value with duration 1
  1188. wait 1 tick
  1189. launch creeper firework colored green at loop-value with duration 1
  1190. wait 1 tick
  1191. launch creeper firework colored pink at loop-value with duration 1
  1192. wait 1 tick
  1193. launch creeper firework colored red at loop-value with duration 1
  1194. wait 1 tick
  1195. launch creeper firework colored blue at loop-value with duration 1
  1196. wait 1 tick
  1197. launch creeper firework colored yellow at loop-value with duration 1
  1198. wait 1 tick
  1199. launch creeper firework colored purple at loop-value with duration 1
  1200. wait 1 tick
  1201. launch creeper firework colored green at loop-value with duration 1
  1202. wait 2 seconds
  1203. message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
  1204. wait 5 seconds
  1205. teleport loop-value to {spleef.location.mainhub}
  1206. set {player.%loop-value%.playing} to false
  1207. add 1 to {player.%loop-value%.wins}
  1208. remove loop-value from {spleef.game.pizza.list::*}
  1209. set {player.%loop-value%.status} to "null"
  1210. set {player.%victim%.playing} to false
  1211. message "{@prefix} &cYou leave the game"
  1212. wait 5 ticks
  1213. message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  1214. invoke "Spleef.RegenBlocks.Pizza"
  1215. wait 10 seconds
  1216. set {spleef.game.pizza.ingame} to false
  1217. {player.%victim%.waiting} is true:
  1218. remove victim from {spleef.game.pizza.list::*}
  1219. remove 1 from {spleef.game.pizza.list}
  1220. clear victim's inventory
  1221. invoke "Inv.Give" from victim
  1222. teleport victim to {spleef.location.mainhub}
  1223. set {player.%victim%.waiting} to false
  1224. message "{@prefix} &cYou leave the queue"
  1225. set {player.%victim%.status} to "null"
  1226. wait 5 ticks
  1227. message "{@prefix} &3%victim% leaved the queue! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
  1228.  
  1229. sub "Inv.Save":
  1230. set {_value} to parameter 1
  1231. set {_uuid} to "%uuid of {_value}%"
  1232. set {_count} to 0
  1233. loop 36 times:
  1234. set {inv.%{_uuid}%.%{_count}%.main} to slot {_count} of {_value}'s inventory
  1235. add 1 to {_count}
  1236. set {inv.%{_uuid}%.helmet.main} to {_value}'s helmet
  1237. set {inv.%{_uuid}%.chest.main} to {_value}'s chestplate
  1238. set {inv.%{_uuid}%.legs.main} to {_value}'s leggings
  1239. set {inv.%{_uuid}%.feet.main} to {_value}'s boots
  1240.  
  1241. sub "Inv.Give":
  1242. set {_value} to parameter 1
  1243. set {_uuid} to "%uuid of {_value}%"
  1244. set {_count} to 0
  1245. loop 36 times:
  1246. set slot {_count} of {_value}'s inventory to {inv.%{_uuid}%.%{_count}%.main}
  1247. add 1 to {_count}
  1248. set the helmet of {_value} to {inv.%{_uuid}%.helmet.main}
  1249. set the chestplate of {_value} to {inv.%{_uuid}%.chest.main}
  1250. set the leggings of {_value} to {inv.%{_uuid}%.legs.main}
  1251. set the boots of {_value} to {inv.%{_uuid}%.feet.main}
  1252.  
  1253. every 1 tick:
  1254. {spleef.game.snow.list} is -1:
  1255. set {spleef.game.snow.list} to 0
  1256. stop
  1257.  
  1258. every 2 seconds:
  1259. loop all players:
  1260. {player.%loop-player%.status} is not "null":
  1261. set the loop-player's food level to player's food level - 3
  1262.  
  1263. every 15 minutes:
  1264. loop all players:
  1265. message "{@prefix} &7This server use the plugin &6Spleef &7from &6SpigotMc&7!" to loop-player
  1266. loop-player is op:
  1267. message "{@prefix} &2Don't want to receive this &emessage&2? Ask the developer &eSaMaGamers &2for a special version without promotion!" to loop-player
  1268. stop
Add Comment
Please, Sign In to add comment