ArtzifyHD

Skript

Jul 28th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.00 KB | None | 0 0
  1. ############################################################
  2. # #
  3. # ForcePvP #
  4. # By Dubbly_ and ElZaidG #
  5. # #
  6. ############################################################
  7. #----------READ!--------#
  8. #This is not easy to config at all, we recommend to change just some things to avoid mistakes.
  9. #To work correctly, place a ForcePvP mode in differents world/servers.
  10. #To config respawns correctly, change the world names to your world names, What is this?
  11. #Example:
  12. # if world of player is "UHC": #<---Example world, change that world name to your world name.
  13. # make player execute command "/fp-oitc leave"
  14. # set {ingame.%player%} to false
  15. #
  16. #
  17. #
  18. #Skript version: 1.1
  19.  
  20.  
  21. options:
  22. logo: &6&lForcePvP &7>>
  23. duels: &6&lDuels &7>>
  24.  
  25. on join:
  26. remove absorption from player
  27. remove regeneration from player
  28. set player's gamemode to survival
  29. set slot 0 of player's inventory to paper named "&aSelect FP mode"
  30. set slot 1 of player's inventory to diamond sword named "&eDuel"
  31. set slot 2 of player's inventory to head named "&9%player%'s &6Stats"
  32.  
  33. on skript start:
  34. send "-----------------------------------" to console
  35. send "" to console
  36. send "ForcePvP skript by Dubbly_ and ElZaidG" to console
  37. send "&8Version: &41.1" to console
  38. send "" to console
  39. send "-----------------------------------" to console
  40.  
  41. variables:
  42. online.bu = 0
  43.  
  44. on quit:
  45. if world of player is "UHC": #<---Example world
  46. remove 1 from {online.bu}
  47. if world of player is "Normal":
  48. remove 1 from {online.FFA}
  49. if world of player is "KB":
  50. remove 1 from {online.SG}
  51. #-------Change this worlds to your worlds-------#
  52.  
  53. command /fp-join:
  54. permission: fp.player
  55. aliases: forcepvp , join , fpvp
  56. trigger:
  57. open chest with 1 rows named "&4&k::&9&lForcePvP&4&k::" to player
  58. wait 3 ticks
  59. format slot 1 of player with lava bucket named "&a&lUHC" with lore "&e%{online.bu}% online players" to run [make player execute command "/fp-join-uhc"]
  60. format slot 0 of player with iron chestplate named "&a&lNormal" with lore "&e%{online.FFA}% online players" to run [make player execute command "/fp-join-normal"]
  61. format slot 2 of player with stick named "&a&lKnockback" with lore "&e%{online.SG}% online players" to run [make player execute command "/fp-join-kb"]
  62. format slot 7 of player with golden apple:1 named "&a&lOP &c&l(Coming Soon)" to close then run [send "{@logo} &6Gapple &cComing soon"]
  63. format slot 8 of player with potion:16453 named "&a&lNoDebuff &c&l(Coming soon)" to close then run [send "{@logo} &6Pot &cComing soon"]
  64.  
  65. command /fp-setspawn-duels:
  66. permission: fp.admin
  67. trigger:
  68. set {spawn.duels} to location of player
  69. send "{@logo} &aSpawn set!"
  70.  
  71. command /fp-setspawn-uhc:
  72. permission: fp.admin
  73. trigger:
  74. set {spawn.uhc} to location of player
  75. send "{@logo} &aSpawn set!"
  76.  
  77. command /fp-setspawn-normal:
  78. permission: fp.admin
  79. trigger:
  80. set {spawn.normal} to location of player
  81. send "{@logo} &aSpawn set!"
  82.  
  83. command /fp-setspawn-kb:
  84. permission: fp.admin
  85. trigger:
  86. set {spawn.kb} to location of player
  87. send "{@logo} &aSpawn set!"
  88.  
  89. command /fp [<text>] [<text>]:
  90. permission: fp.admin
  91. aliases: forcepvp , fpvp
  92. trigger:
  93. if arg-1 is not set:
  94. message "&8&l&m----------------&8[ &6&lForcePvP &8]&l&m----------------"
  95. message "&6/fp, /forcepvp&e - Help command"
  96. message "&6/fp-join-<mode>&e - Join to a specific mode"
  97. message "&6/fp-join&e - Open FP join menu"
  98. message "&6/fp-setspawn-<mode>&e - Set the FP spawn of a mode"
  99. message "&6/fp-setmainlobby&e - Set the main lobby"
  100. message "&6/fp-setleave&e - Set the leave spawn point"
  101. message "&6/fp-stats-<mode>&e - See your FP stats"
  102. message "&6/fp-duels&e - Duels help"
  103. message "&6/fp-help-spec&e - Spectator help"
  104. message "&6/fp-modes&e - See the FP modes"
  105. message "&6/leave, /salir &e- Leave commands"
  106. send "&8&l&m---------------------------------------------"
  107. if arg-1 is "remove":
  108. if player is op:
  109. set {spawn.prb} to location of player
  110. send "{@logo} &aSpawn set!"
  111. if arg-1 is "setserverip":
  112. if arg-2 is not set:
  113. if player has permission "fp.admin":
  114. send "&cPlease enter a server IP"
  115. if arg-2 is set:
  116. if player has permission "fp.admin":
  117. set {server.name} to "%colored arg-2%"
  118. send "&a&lSuccess!"
  119. if arg-1 is "sethologram":
  120. if arg-2 is not set:
  121. if player has permission "fp.admin":
  122. send "&c/fp sethologram stats"
  123. if arg-2 is "stats":
  124. if {Holo::Stats} is not set:
  125. if player has permission "fp.admin":
  126. send "&aCreating Hologram"
  127. make player execute command "/hd create fp-stats &aForcePvP&e Stats"
  128. make player execute command "/hd addline fp-stats &a"
  129. make player execute command "/hd addline fp-stats &c&m-------------------"
  130. make player execute command "/hd addline fp-stats &aKills: &6%{totalkills.%player%}%"
  131. make player execute command "/hd addline fp-stats &aDeaths: &6%{totaldeaths.%player%}%"
  132. make player execute command "/hd addline fp-stats &aStatus: &6Online"
  133. make player execute command "/hd addline fp-stats &aPing: &6%player's ping%"
  134. make player execute command "/hd addline fp-stats &c&m-------------------"
  135. make player execute command "/hd addline fp-stats &a"
  136. make player execute command "/hd addline fp-stats &6%{server.name}%"
  137. send "&a"
  138. send "&a"
  139. send "&a"
  140. send "&a"
  141. send "&a"
  142. send "&a"
  143. send "&a"
  144. send "&a"
  145. send "&a"
  146. send "&a"
  147. send "&a"
  148. send "&a"
  149. send "&a"
  150. send "&a"
  151. send "&a"
  152. send "&a"
  153. send "&a"
  154. send "&a"
  155. send "&a"
  156. send "&a"
  157. send "&a"
  158. send "&a"
  159. send "&a"
  160. send "&a"
  161. send "&a"
  162. send "&a"
  163. send "&a"
  164. send "&a"
  165. send "&a"
  166. send "&a"
  167. send "&a"
  168. send "&a"
  169. send "&a"
  170. send "&a"
  171. send "&a"
  172. send "&a"
  173. send "&a"
  174. send "&a&lSucessfully created hologram!"
  175. set {Holo::Stats} to true
  176. else:
  177. send "&aHologram is already created, type /fp removehologram to remove."
  178.  
  179. command /fp-join-normal:
  180. trigger:
  181. add 1 to {online.FFA}
  182. if has permission "fp.player":
  183. teleport player to {spawn.normal}
  184. set gamemode of player to survival
  185. clear player's inventory
  186. wait 3 tick
  187. set player's helmet to iron helmet
  188. set player's chestplate to iron chestplate
  189. set player's leggings to iron leggings
  190. set player's boots to iron boots
  191. give 1 iron sword to player
  192. give 1 bow to player
  193. give 1 fishing rod to player
  194. give 15 steak to player
  195. set slot 9 of player's inventory to 12 arrow
  196. else:
  197. teleport player to {spawn.normal}
  198. set gamemode of player to survival
  199. clear player's inventory
  200. wait 3 tick
  201. set player's helmet to iron helmet
  202. set player's chestplate to iron chestplate
  203. set player's leggings to iron leggings
  204. set player's boots to iron boots
  205. give 1 iron sword to player
  206. give 1 bow to player
  207. give 1 fishing rod to player
  208. give 15 steak to player
  209. set slot 9 of player's inventory to 12 arrow
  210.  
  211. command /fp-join-kb:
  212. trigger:
  213. add 1 to {online.SG}
  214. if has permission "fp.player":
  215. set gamemode of player to survival
  216. clear player's inventory
  217. wait 3 tick
  218. set player's leggings to leather leggings of protection 2
  219. give 1 stick of knockback 1 to player
  220. give 1 web to player
  221. teleport player to {spawn.kb}
  222. send "{@logo} &eYou have joined to &a&lForceKB!"
  223. send "{@logo} &cType /leave to leave."
  224. else:
  225. set gamemode of player to survival
  226. clear player's inventory
  227. wait 3 tick
  228. set player's leggings to leather leggings of protection 2
  229. give 1 stick of knockback 1 to player
  230. give 1 web to player
  231. teleport player to {spawn.kb}
  232. send "{@logo} &eYou have joined to &a&lForceKB!"
  233. send "{@logo} &cType /leave to leave."
  234.  
  235. command /fp-join-uhc:
  236. trigger:
  237. add 1 to {online.bu}
  238. if has permission "fp.player":
  239. set gamemode of player to survival
  240. clear player's inventory
  241. wait 3 tick
  242. set player's helmet to iron helmet of protection 2
  243. set player's chestplate to iron chestplate of projectile protection 2
  244. set player's leggings to iron leggings of protection 2
  245. set player's boots to iron boots of projectile protection 2
  246. give 1 iron sword of sharpness 1 to player
  247. give 1 bow of power 1 , infinity 1 to player
  248. give 64 steak to player
  249. give 1 golden apple to player
  250. give 1 golden apple to player
  251. give 1 ender pearl to player
  252. set slot 9 of player's inventory to 1 arrow
  253. teleport player to {spawn.uhc}
  254. send "{@logo} &eYou have joined to &a&lForceUHC!"
  255. send "{@logo} &cType /leave to leave."
  256. else:
  257. set gamemode of player to survival
  258. clear player's inventory
  259. wait 3 tick
  260. set player's helmet to iron helmet of protection 2
  261. set player's chestplate to iron chestplate of projectile protection 2
  262. set player's leggings to iron leggings of protection 2
  263. set player's boots to iron boots of projectile protection 2
  264. give 1 iron sword of sharpness 1 to player
  265. give 1 bow of power 1 , infinity 1 to player
  266. give 64 steak to player
  267. give 1 golden apple to player
  268. give 1 golden apple to player
  269. give 1 ender pearl to player
  270. set slot 9 of player's inventory to 1 arrow
  271. teleport player to {spawn.uhc}
  272. send "{@logo} &eYou have joined to &a&lForceUHC!"
  273. send "{@logo} &cType /leave to leave."
  274.  
  275. command /fp-setleave:
  276. permission: fp.admin
  277. trigger:
  278. set {spawn.leave} to location of player
  279. send "{@logo} &aSuccessfully set spawn &cLEAVE"
  280.  
  281. command /fp-leave:
  282. aliases: exit , hub , lobby , quit
  283. trigger:
  284. teleport player to {spawn.leave}
  285. send "{@logo} &aYou have left!"
  286. set gamemode of player to survival
  287. clear player's inventory
  288. remove absorption from player
  289. remove regeneration from player
  290. heal player
  291.  
  292. command /fp-modes:
  293. permission: fp.admin
  294. trigger:
  295. send "&a&lModes:"
  296. send "&6normal"
  297. send "&6uhc"
  298. send "&6kb"
  299. send "&6duels"
  300.  
  301. on eat of golden apple:
  302. if item is golden apple named "&6Golden Head":
  303. apply absorption 1 to the player for 105 seconds
  304. apply regeneration 2 to the player for 10 seconds
  305. remove 1 golden apple named "&6Golden Head" from the player's tool
  306.  
  307. on death of player:
  308. clear drops
  309.  
  310. on respawn:
  311. if world of player is "YourWorldUHC": #<-- Change this world name to your UHC world name
  312. if has permission "fp.player":
  313. set gamemode of player to survival
  314. clear player's inventory
  315. wait 3 tick
  316. set player's helmet to iron helmet of protection 2
  317. set player's chestplate to iron chestplate of protection 2
  318. set player's leggings to iron leggings of protection 2
  319. set player's boots to iron boots of projectile protection 2
  320. give 1 iron sword of sharpness 1 to player
  321. give 1 bow of power 1 , infinity 1 to player
  322. give 64 steak to player
  323. give 1 golden apple to player
  324. give 1 golden apple to player
  325. give 1 ender pearl to player
  326. set slot 9 of player's inventory to 1 arrow
  327. teleport player to {spawn.uhc}
  328. else:
  329. set gamemode of player to survival
  330. clear player's inventory
  331. wait 3 tick
  332. set player's helmet to iron helmet of protection 2
  333. set player's chestplate to iron chestplate of protection 2
  334. set player's leggings to iron leggings of protection 2
  335. set player's boots to iron boots of projectile protection 2
  336. give 1 iron sword of sharpness 1 to player
  337. give 1 bow of power 1 , infinity 1 to player
  338. give 64 steak to player
  339. give 1 golden apple to player
  340. give 1 golden apple to player
  341. give 1 ender pearl to player
  342. set slot 9 of player's inventory to 1 arrow
  343. teleport player to {spawn.uhc}
  344.  
  345. on respawn:
  346. if world of player is "YourWorldKB": #<-- Change this world name to your KB world name
  347. if has permission "fp.player":
  348. set gamemode of player to survival
  349. clear player's inventory
  350. wait 3 tick
  351. set player's leggings to leather leggings of protection 2
  352. give 1 stick of knocback 1 to player
  353. give 1 web to player
  354. teleport player to {spawn.kb}
  355. else:
  356. set gamemode of player to survival
  357. clear player's inventory
  358. wait 3 tick
  359. set player's leggings to leather leggings of protection 2
  360. give 1 stick of knockback 1 to player
  361. give 1 web to player
  362. teleport player to {spawn.kb}
  363.  
  364. on respawn:
  365. if world of player is "YourWorldNormal": #<-- Change this world name to your Normal world name
  366. if has permission "fp.player":
  367. set gamemode of player to survival
  368. clear player's inventory
  369. wait 3 tick
  370. set slot 0 of player's inventory to ender portal frame named "&aKits"
  371. set slot 0 of player's inventory to head named "&9Stats"
  372. teleport player to {spawn.normal}
  373. else:
  374. set gamemode of player to survival
  375. clear player's inventory
  376. wait 3 tick
  377. set slot 0 of player's inventory to ender portal frame named "&aKits"
  378. set slot 0 of player's inventory to head named "&9Stats"
  379. teleport player to {spawn.normal}
  380.  
  381. on inventory click:
  382. if world of player is "FFAUHC":
  383. if player has permission "fp.admin":
  384. else:
  385. cancel event
  386.  
  387. on place web:
  388. if world of player is "YourWorldKB": #<-- Change this world name to your KB world name
  389. wait 5 seconds
  390. set event-block to air
  391. stop
  392.  
  393. on drop:
  394. cancel event
  395.  
  396. #---------Stats---------#
  397.  
  398. command /fp-stats:
  399. permission: fp.player
  400. aliases: glostats , fpstats , stats
  401. trigger:
  402. send ""
  403. send "&8-----&6&lForcePvP&8-----"
  404. send ""
  405. send "&5Kills: &a%{totalkills.%player%}%"
  406. send "&5Deaths: &a%{totaldeaths.%player%}%"
  407. send ""
  408. send "&8---&6&lStats&8---"
  409. send ""
  410.  
  411. command /fp-stats-normal:
  412. permission: fp.player
  413. aliases: normalstats , fpnormalstats , fpnorstats , norstats
  414. trigger:
  415. send ""
  416. send "&8-----&6&lForceNormal&8-----"
  417. send ""
  418. send "&5Kills: &a%{killsFFA.%player%}%"
  419. send "&5Deaths: &a%{deathsFFA.%player%}%"
  420. send ""
  421. send "&8---&6&lStats&8---"
  422. send ""
  423.  
  424. command /fp-stats-kb:
  425. permission: fp.player
  426. aliases: kbstats , fpkbstats
  427. trigger:
  428. send ""
  429. send "&8-------&6&lForceKB&8-------"
  430. send ""
  431. send "&5Kills: &a%{killsSG.%player%}%"
  432. send "&5Deaths: &a%{deathsSG.%player%}%"
  433. send ""
  434. send "&8---&6&lStats&8---"
  435. send ""
  436.  
  437. command /fp-stats-uhc:
  438. permission: fp.player
  439. aliases: uhcstats , fpuhcstats
  440. trigger:
  441. send ""
  442. send "&8-----&6&lForceUHC&8-----"
  443. send ""
  444. send "&5Kills: &a%{killsbu.%player%}%"
  445. send "&5Deaths: &a%{deathsbu.%player%}%"
  446. send ""
  447. send "&8---&6&lStats&8---"
  448. send ""
  449.  
  450. #---------Signs----------#
  451.  
  452. on sign change:
  453. if has permission "fp.admim":
  454. if line 1 is "[forcepvp]":
  455. if line 2 is "join":
  456. set line 1 to "&8[&9&lForcePvP&8]"
  457. set line 2 to "&6Join"
  458. if line 2 is "leave":
  459. set line 1 to "&8[&9&lForcePvP&8]"
  460. set line 2 to "&6Leave"
  461. if line 2 is "stats":
  462. set line 1 to "&8[&9&lForcePvP&8]"
  463. set line 2 to "&6Stats"
  464. on click on sign:
  465. if line 1 is "&8[&9&lForcePvP&8]":
  466. if line 2 is "&6Join":
  467. make player execute "/fp-join"
  468. if line 2 is "&6Leave":
  469. make player execute "/fp-leave"
  470. if line 2 is "&6Stats":
  471. make player execute "/fp-stats"
  472.  
  473. #----------Menu----------#
  474.  
  475. on rightclick:
  476. if player's tool is paper named "&aSelect FP mode":
  477. open chest with 1 rows named "&aFP modes" to player
  478. wait 3 ticks
  479. format slot 1 of player with lava bucket named "&a&lUHC" with lore "&e%{online.bu}% online players" to run [make player execute command "/fp-join-uhc"]
  480. format slot 0 of player with iron chestplate named "&a&lNormal" with lore "&e%{online.FFA}% online players" to run [make player execute command "/fp-join-normal"]
  481. format slot 2 of player with stick named "&a&lKnockback" with lore "&e%{online.SG}% online players" to run [make player execute command "/fp-join-kb"]
  482. format slot 7 of player with golden apple:1 named "&a&lOP &c&l(Coming Soon)" to close then run [send "{@logo} &6Gapple &cComing soon"]
  483. format slot 8 of player with potion:16453 named "&a&lNoDebuff &c&l(Coming soon)" to close then run [send "{@logo} &6Pot &cComing soon"]
  484.  
  485. on rightclick:
  486. if player's tool is head named "&9%player%'s &6Stats":
  487. cancel event
  488. open chest with 3 rows named "&aStats" to player
  489. wait 2 ticks
  490. format slot 4 of player with lava bucket named "&a&lUHC" with lore "&5Kills: &a%{killsbu.%player%}%||&5Deaths: &a%{deathsbu.%player%}%" to close then run [make player execute command "/fp-stats-uhc"]
  491. format slot 1 of player with iron chestplate named "&a&lNormal" with lore "&5Kills: &a%{killsFFA.%player%}%||&5Deaths: &a%{deathsFFA.%player%}%" to close then run [make player execute command "/fp-stats-normal"]
  492. format slot 7 of player with stick named "&a&lKnockback" with lore "&5Kills: &a%{killsSG.%player%}%||&5Deaths: &a%{deathsSG.%player%}%" to close then run [make player execute command "/fp-stats-kb"]
  493. format slot 22 of player with nether star named "&a&lGlobal" with lore "&5Kills: &a%{totalkills.%player%}%||&5Deaths: &a%{totaldeaths.%player%}%" to close then run [make player execute command "/fp-stats-global"]
  494.  
  495. on rightclick:
  496. if player's tool is diamond sword named "&eDuel":
  497. open chest with 3 rows named "&aDuels" to player
  498. wait 2 ticks
  499. format slot 4 of player with duel named "&a&lDuels" with lore "&9Join to duels" to close then run [make player execute command "/duel"]
  500.  
  501. #----------Duels----------#
  502.  
  503. command /fp-duel:
  504. permission: "fp.admin"
  505. aliases: fp-duels
  506. trigger:
  507. message "&6&lForceDuels"
  508. message "&aCommands:"
  509. message "&6/duel <player>&f - Challenge/Accept a player"
  510. message "&6/fp-setspawn-duels1&f - Set the spawn point 1 of duels"
  511. message "&6/fp-setspawn-duels2&f - Set the spawn point 2 of duels"
  512.  
  513. command /fp-setspawn-duels1:
  514. permission: "fp.admin"
  515. trigger:
  516. set {1v11} to location of player
  517. message "{@logo} &6Successfully set the spawn point 1"
  518. command /fp-setspawn-duels2:
  519. permission: "fp.admin"
  520. trigger:
  521. set {1v12} to location of player
  522. message "{@logo} &6Successfully set the spawn point 2"
  523. on command:
  524. if {in1v1.%player%} is true:
  525. cancel event
  526. send "{@logo} &cYou can't use commands in a duel" to player
  527. command /duel [<player>]:
  528. permission: "fp.player"
  529. trigger:
  530. if arg 1 is player:
  531. send "{@logo} &cYou can't duel yourself."
  532. if arg 1 is not set:
  533. send "{@logo} &6Type /duel <player>"
  534. clear {requesting.%player%}
  535. else:
  536. if {1v1antispam.%player%} is false:
  537. if {requesting.%arg 1%} is player:
  538. if {arena1} is false:
  539. set {arena1} to true
  540. set {_1} to arg 1
  541. set {_2} to player
  542. clear {requesting.%{_1}%}
  543. clear {requesting.%{_2}%}
  544. set {in1v1.%{_1}%} to true
  545. set {in1v1.%{_2}%} to true
  546. execute console command "/gamemode 0 %{_1}%"
  547. execute console command "/gamemode 0 %{_2}%"
  548. message "&7-------------------------------------" to {_1}
  549. message "{@duels} &6Fighting %{_2}%" to {_1}
  550. message "&7-------------------------------------" to {_1}
  551. message "&7-------------------------------------" to {_2}
  552. message "{@duels} &6Fighting %{_1}%" to {_2}
  553. message "&7-------------------------------------" to {_2}
  554. execute console command "/clear %{_1}%"
  555. execute console command "/clear %{_2}%"
  556. teleport {_1} to {1v11}
  557. teleport {_2} to {1v12}
  558. execute console command "/effect %{_1}% clear"
  559. execute console command "/effect %{_2}% clear"
  560. apply speed 2 to {_1} for 999 days
  561. equip {_1} with all iron armor of protection 4
  562. give 1 iron sword of unbreaking 100 and sharpness 2 to {_1}
  563. give 12 golden apple to {_1}
  564. apply speed 2 to {_2} for 999 days
  565. equip {_2} with all iron armor of protection 4
  566. give 1 iron sword of unbreaking 100 and sharpness 2 to {_2}
  567. give 12 golden apple to {_2}
  568. broadcast "{@duels} &9%{_1}% &6vs &9%{_2}%"
  569. stop
  570. else:
  571. send "{@logo} &cArena in use, try again later." to player
  572. stop
  573. else:
  574. set {1v1antispam.%player%} to true
  575. set {requesting.%player%} to arg 1
  576. send "{@logo} &6You are resquesting %arg 1% to 1v1" to player
  577. send "{@logo} &6%player% has challenged you to a duel, use /duel %player% to accept" to arg 1
  578. wait 30 seconds
  579. set {1v1antispam.%player%} to false
  580. stop
  581. else:
  582. send "{@tag} No spam!" to player
  583. on join:
  584. set {1v1antispam.%player%} to false
  585. on quit:
  586. clear {requesting.%player%}
  587. command /zd-debugarena1:
  588. permission: op
  589. trigger:
  590. set {arena1} to false
  591. on death:
  592. if {in1v1.%victim%} is true:
  593. set {in1v1.%victim%} to false
  594. set {in1v1.%attacker%} to false
  595. set {arena1} to false
  596. teleport attacker to {}
  597. clear attacker's inventory
  598. heal attacker
  599. on quit:
  600. if {in1v1.%player%} is true:
  601. set {in1v1.%player%} to false
  602. set {arena1} to false
  603. loop all players:
  604. if {in1v1.%loop-player%} is true:
  605. teleport loop-player to {spawn.duels}
  606. set {in1v1.%loop-player%} to false
  607. clear loop-player's inventory
  608. heal loop-player
  609.  
  610. #----------Spect---------#
  611.  
  612. command /spec:
  613. aliases: spect , fp-spect , fp-spec
  614. trigger:
  615. if has permission "fp.spec":
  616. make server execute "minecraft:gamemode 3 %player%"
  617. clear player's inventory
  618. wait 3 tick
  619. send "{@logo} &6Spectator mode &aEnabled"
  620. else:
  621. make server execute "minecraft:gamemode 3 %player%"
  622. clear player's inventory
  623. wait 3 tick
  624. send "{@logo} &6Spectator mode &aEnabled"
  625.  
  626. command /surv:
  627. aliases: nospec , fp-surv , stopspec
  628. trigger:
  629. if has permission "fp.spec":
  630. set gamemode of player to survival
  631. wait 3 tick
  632. teleport player to {lobby.fp}
  633. send "{@logo} &6Spectator mode &cDisabled"
  634. else:
  635. set gamemode of player to survival
  636. wait 3 tick
  637. teleport player to {lobby.fp}
  638. send "{@logo} &6Spectator mode &cDisabled"
  639.  
  640. command /fp-help-spec:
  641. aliases: fp-help-spect , fp-help-spectator
  642. trigger:
  643. if has permission "fp.admin":
  644. send "{@logo} &6Spectators Help"
  645. send "&aCommands:"
  646. send "&e/spec, /fp-spec - Enable spectator mode"
  647. send "&e/surv, /fp-surv - Back to normal mode"
  648. send "&aPermission:"
  649. send "&efp.spec - Allow to spec/surv"
  650.  
  651. #----------Drops---------#
  652.  
  653. on death of player:
  654. clear drops
  655. drop golden apple at location of victim
  656.  
  657. #---------Lobby---------#
  658.  
  659. command /fp-setmainlobby:
  660. permission: fp.admin
  661. trigger:
  662. set {lobby.fp} to location of player
  663. send "{@logo} &aLobby set!"
  664.  
  665. command /fp-join-lobby:
  666. permission: fp.player
  667. aliases: fp-lobby , fplobby
  668. trigger:
  669. teleport player to {lobby.fp}
  670. set slot 0 of player's inventory to paper named "&aSelect FP mode"
  671. set slot 1 of player's inventory to diamond sword named "&eDuel"
  672. set slot 2 of player's inventory to head named "&9%player%'s &6Stats"
  673.  
  674. #------------------------------Thanks dor downloading------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment