Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tourney <text> <text> [<player>] [<player>] [<player>] [<player>] [<player>] [<player>] [<player>] [<player>]:
- permission: skript.op
- usage: /tourney <arena> <teamsize 1-4> <Team 1> <Team 2>
- trigger:
- if arg 2 is "1":
- broadcast "&8&l[&b&lTourney&8&l] - &6%arg-3%&b and &6%arg-4%&b are now fighting in Arena %arg-1%!"
- loop all players:
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 1.5 1"
- command "/warp a%arg-1%s1 %arg-3%"
- command "/warp a%arg-1%s2 %arg-4%"
- command "/heal %arg-3%"
- command "/feed %arg-3%"
- command "/ci %arg-3%"
- command "/heal %arg-4%"
- command "/feed %arg-4%"
- command "/ci %arg-4%"
- command "/scoreboard teams add FIGHT%arg-1%"
- if arg 1 is "1":
- command "/scoreboard teams option FIGHT%arg-1% color dark_red"
- else if arg 1 is "2":
- command "/scoreboard teams option FIGHT%arg-1% color dark_blue"
- else if arg 1 is "3":
- command "/scoreboard teams option FIGHT%arg-1% color dark_green"
- else if arg 1 is "4":
- command "/scoreboard teams option FIGHT%arg-1% color dark_purple"
- command "/scoreboard teams join FIGHT%arg-1% %arg-3%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-4%"
- equip arg-3 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-3 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-3 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-3 with 1 iron boots of protection 1 named "&bBoots"
- give arg-3 1 iron sword of sharpness 2 named "&bSword"
- give arg-3 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-3 16 steak named "&bFood"
- give arg-3 2 golden apples named "&bHealing"
- give arg-3 1 arrow named "&bArrow"
- equip arg-4 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-4 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-4 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-4 with 1 iron boots of protection 1 named "&bBoots"
- give arg-4 1 iron sword of sharpness 2 named "&bSword"
- give arg-4 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-4 16 steak named "&bFood"
- give arg-4 2 golden apples named "&bHealing"
- give arg-4 1 arrow named "&bArrow"
- command "/ff %arg-3% on"
- command "/ff %arg-4% on"
- wait 3 seconds
- broadcast "&8&l[&b&lTourney&8&l] - &bFight in Arena %arg-1% has now began - Good luck!"
- command "/ff %arg-3% off"
- command "/ff %arg-4% off"
- set {fighting::%arg-3%} to true
- set {fighting::%arg-4%} to true
- set {tourneyTeamSize} to arg-2
- #FOR TEAMS OF 2
- if arg 2 is "2":
- broadcast "&8&l[&b&lTourney&8&l] - &6%arg-3%&b and &6%arg-4%&b are now fighting &6%arg-5%&b and &6%arg-6%&b in Arena %arg-1%!"
- loop all players:
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 1.5 1"
- command "/warp a%arg-1%s1 %arg-3%"
- command "/warp a%arg-1%s1 %arg-4%"
- command "/warp a%arg-1%s2 %arg-5%"
- command "/warp a%arg-1%s2 %arg-6%"
- command "/scoreboard teams add FIGHT%arg-1%"
- if arg 1 is "1":
- command "/scoreboard teams option FIGHT%arg-1% color dark_red"
- else if arg 1 is "2":
- command "/scoreboard teams option FIGHT%arg-1% color dark_blue"
- else if arg 1 is "3":
- command "/scoreboard teams option FIGHT%arg-1% color dark_green"
- else if arg 1 is "4":
- command "/scoreboard teams option FIGHT%arg-1% color dark_purple"
- command "/scoreboard teams join FIGHT%arg-1% %arg-3%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-4%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-5%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-6%"
- equip arg-3 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-3 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-3 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-3 with 1 iron boots of protection 1 named "&bBoots"
- give arg-3 1 iron sword of sharpness 2 named "&bSword"
- give arg-3 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-3 16 steak named "&bFood"
- give arg-3 2 golden apples named "&bHealing"
- give arg-3 1 arrow named "&bArrow"
- equip arg-4 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-4 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-4 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-4 with 1 iron boots of protection 1 named "&bBoots"
- give arg-4 1 iron sword of sharpness 2 named "&bSword"
- give arg-4 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-4 16 steak named "&bFood"
- give arg-4 2 golden apples named "&bHealing"
- give arg-4 1 arrow named "&bArrow"
- equip arg-5 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-5 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-5 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-5 with 1 iron boots of protection 1 named "&bBoots"
- give arg-5 1 iron sword of sharpness 2 named "&bSword"
- give arg-5 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-5 16 steak named "&bFood"
- give arg-5 2 golden apples named "&bHealing"
- give arg-5 1 arrow named "&bArrow"
- equip arg-6 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-6 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-6 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-6 with 1 iron boots of protection 1 named "&bBoots"
- give arg-6 1 iron sword of sharpness 2 named "&bSword"
- give arg-6 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-6 16 steak named "&bFood"
- give arg-6 2 golden apples named "&bHealing"
- give arg-6 1 arrow named "&bArrow"
- command "/ff %arg-3% on"
- command "/ff %arg-4% on"
- command "/ff %arg-5% on"
- command "/ff %arg-6% on"
- wait 3 seconds
- broadcast "&8&l[&b&lTourney&8&l] - &bFight in Arena %arg-1% has now began - Good luck!"
- command "/ff %arg-3% off"
- command "/ff %arg-4% off"
- command "/ff %arg-5% off"
- command "/ff %arg-6% off"
- set {fighting::%arg-3%} to true
- set {fighting::%arg-4%} to true
- set {fighting::%arg-5%} to true
- set {fighting::%arg-6%} to true
- set {tourneyTeamSize} to arg-2
- #FOR TEAMS OF 3
- if arg 2 is "3":
- broadcast "&8&l[&b&lTourney&8&l] - &6%arg-3%&b, &6%arg-4%&b and &6%arg-5%&8 are now fighting &6%arg-6%&b, &6%arg-7%&b and &6%arg-8%&8 in Arena %arg-1%!"
- loop all players:
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 1.5 1"
- command "/warp a%arg-1%s1 %arg-3%"
- command "/warp a%arg-1%s1 %arg-4%"
- command "/warp a%arg-1%s1 %arg-5%"
- command "/warp a%arg-1%s2 %arg-6%"
- command "/warp a%arg-1%s2 %arg-7%"
- command "/warp a%arg-1%s2 %arg-8%"
- command "/scoreboard teams add FIGHT%arg-1%"
- if arg 1 is "1":
- command "/scoreboard teams option FIGHT%arg-1% color dark_red"
- else if arg 1 is "2":
- command "/scoreboard teams option FIGHT%arg-1% color dark_blue"
- else if arg 1 is "3":
- command "/scoreboard teams option FIGHT%arg-1% color dark_green"
- else if arg 1 is "4":
- command "/scoreboard teams option FIGHT%arg-1% color dark_purple"
- command "/scoreboard teams join FIGHT%arg-1% %arg-3%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-4%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-5%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-6%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-7%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-8%"
- equip arg-3 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-3 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-3 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-3 with 1 iron boots of protection 1 named "&bBoots"
- give arg-3 1 iron sword of sharpness 2 named "&bSword"
- give arg-3 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-3 16 steak named "&bFood"
- give arg-3 2 golden apples named "&bHealing"
- give arg-3 1 arrow named "&bArrow"
- equip arg-4 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-4 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-4 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-4 with 1 iron boots of protection 1 named "&bBoots"
- give arg-4 1 iron sword of sharpness 2 named "&bSword"
- give arg-4 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-4 16 steak named "&bFood"
- give arg-4 2 golden apples named "&bHealing"
- give arg-4 1 arrow named "&bArrow"
- equip arg-5 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-5 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-5 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-5 with 1 iron boots of protection 1 named "&bBoots"
- give arg-5 1 iron sword of sharpness 2 named "&bSword"
- give arg-5 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-5 16 steak named "&bFood"
- give arg-5 2 golden apples named "&bHealing"
- give arg-5 1 arrow named "&bArrow"
- equip arg-6 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-6 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-6 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-6 with 1 iron boots of protection 1 named "&bBoots"
- give arg-6 1 iron sword of sharpness 2 named "&bSword"
- give arg-6 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-6 16 steak named "&bFood"
- give arg-6 2 golden apples named "&bHealing"
- give arg-6 1 arrow named "&bArrow"
- equip arg-7 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-7 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-7 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-7 with 1 iron boots of protection 1 named "&bBoots"
- give arg-7 1 iron sword of sharpness 2 named "&bSword"
- give arg-7 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-7 16 steak named "&bFood"
- give arg-7 2 golden apples named "&bHealing"
- give arg-7 1 arrow named "&bArrow"
- equip arg-8 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-8 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-8 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-8 with 1 iron boots of protection 1 named "&bBoots"
- give arg-8 1 iron sword of sharpness 2 named "&bSword"
- give arg-8 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-8 16 steak named "&bFood"
- give arg-8 2 golden apples named "&bHealing"
- give arg-8 1 arrow named "&bArrow"
- command "/ff %arg-3% on"
- command "/ff %arg-4% on"
- command "/ff %arg-5% on"
- command "/ff %arg-6% on"
- command "/ff %arg-7% on"
- command "/ff %arg-8%on"
- wait 3 seconds
- broadcast "&8&l[&b&lTourney&8&l] - &bFight in Arena %arg-1% has now began - Good luck!"
- command "/ff %arg-3% off"
- command "/ff %arg-4% off"
- command "/ff %arg-5% off"
- command "/ff %arg-6% off"
- command "/ff %arg-7% off"
- command "/ff %arg-8% off"
- set {fighting::%arg-3%} to true
- set {fighting::%arg-4%} to true
- set {fighting::%arg-5%} to true
- set {fighting::%arg-6%} to true
- set {fighting::%arg-7%} to true
- set {fighting::%arg-8%} to true
- set {tourneyTeamSize} to arg-2
- #FOR TEAMS OF 4
- if arg 2 is "4":
- broadcast "&8&l[&b&lTourney&8&l] - &6%arg-3%&b, &6%arg-4%&b, &6%arg-5%&b and &6%arg-6%&b are now fighting &6%arg-7%&b, &6%arg-8%&b, &6%arg-9%&b and &6%arg-10%&8 in Arena %arg-1%!"
- loop all players:
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 1.5 1"
- command "/warp a%arg-1%s1 %arg-3%"
- command "/warp a%arg-1%s1 %arg-4%"
- command "/warp a%arg-1%s1 %arg-5%"
- command "/warp a%arg-1%s1%arg-6%"
- command "/warp a%arg-1%s2 %arg-7%"
- command "/warp a%arg-1%s2 %arg-8%"
- command "/warp a%arg-1%s2 %arg-9%"
- command "/warp a%arg-1%s2 %arg-10%"
- command "/scoreboard teams add FIGHT%arg-1%"
- if arg 1 is "1":
- command "/scoreboard teams option FIGHT%arg-1% color dark_red"
- else if arg 1 is "2":
- command "/scoreboard teams option FIGHT%arg-1% color dark_blue"
- else if arg 1 is "3":
- command "/scoreboard teams option FIGHT%arg-1% color dark_green"
- else if arg 1 is "4":
- command "/scoreboard teams option FIGHT%arg-1% color dark_purple"
- command "/scoreboard teams join FIGHT%arg-1% %arg-3%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-4%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-5%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-6%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-7%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-8%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-9%"
- command "/scoreboard teams join FIGHT%arg-1% %arg-10%"
- equip arg-3 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-3 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-3 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-3 with 1 iron boots of protection 1 named "&bBoots"
- give arg-3 1 iron sword of sharpness 2 named "&bSword"
- give arg-3 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-3 16 steak named "&bFood"
- give arg-3 2 golden apples named "&bHealing"
- give arg-3 1 arrow named "&bArrow"
- equip arg-4 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-4 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-4 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-4 with 1 iron boots of protection 1 named "&bBoots"
- give arg-4 1 iron sword of sharpness 2 named "&bSword"
- give arg-4 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-4 16 steak named "&bFood"
- give arg-4 2 golden apples named "&bHealing"
- give arg-4 1 arrow named "&bArrow"
- equip arg-5 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-5 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-5 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-5 with 1 iron boots of protection 1 named "&bBoots"
- give arg-5 1 iron sword of sharpness 2 named "&bSword"
- give arg-5 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-5 16 steak named "&bFood"
- give arg-5 2 golden apples named "&bHealing"
- give arg-5 1 arrow named "&bArrow"
- equip arg-6 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-6 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-6 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-6 with 1 iron boots of protection 1 named "&bBoots"
- give arg-6 1 iron sword of sharpness 2 named "&bSword"
- give arg-6 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-6 16 steak named "&bFood"
- give arg-6 2 golden apples named "&bHealing"
- give arg-6 1 arrow named "&bArrow"
- equip arg-7 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-7 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-7 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-7 with 1 iron boots of protection 1 named "&bBoots"
- give arg-7 1 iron sword of sharpness 2 named "&bSword"
- give arg-7 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-7 16 steak named "&bFood"
- give arg-7 2 golden apples named "&bHealing"
- give arg-7 1 arrow named "&bArrow"
- equip arg-8 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-8 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-8 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-8 with 1 iron boots of protection 1 named "&bBoots"
- give arg-8 1 iron sword of sharpness 2 named "&bSword"
- give arg-8 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-8 16 steak named "&bFood"
- give arg-8 2 golden apples named "&bHealing"
- give arg-8 1 arrow named "&bArrow"
- equip arg-9 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-9 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-9 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-9 with 1 iron boots of protection 1 named "&bBoots"
- give arg-9 1 iron sword of sharpness 2 named "&bSword"
- give arg-9 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-9 16 steak named "&bFood"
- give arg-9 2 golden apples named "&bHealing"
- give arg-9 1 arrow named "&bArrow"
- equip arg-10 with 1 iron helmet of projectile protection 1 named "&bHelmet"
- equip arg-10 with 1 iron chestplate of protection 1 named "&bChestplate"
- equip arg-10 with 1 iron leggings of projectile protection 1 named "&bLeggings"
- equip arg-10 with 1 iron boots of protection 1 named "&bBoots"
- give arg-10 1 iron sword of sharpness 2 named "&bSword"
- give arg-10 1 bow of power 1 and infinity 1 named "&bBow"
- give arg-10 16 steak named "&bFood"
- give arg-10 2 golden apples named "&bHealing"
- give arg-10 1 arrow named "&bArrow"
- command "/ff %arg-3% on"
- command "/ff %arg-4% on"
- command "/ff %arg-5% on"
- command "/ff %arg-6% on"
- command "/ff %arg-7% on"
- command "/ff %arg-8% on"
- command "/ff %arg-9% on"
- command "/ff %arg-10% on"
- wait 3 seconds
- broadcast "&8&l[&b&lTourney&8&l] - &bFight in Arena %arg-1% has now began - Good luck!"
- command "/ff %arg-3% off"
- command "/ff %arg-4% off"
- command "/ff %arg-5% off"
- command "/ff %arg-6% off"
- command "/ff %arg-7% off"
- command "/ff %arg-8% off"
- command "/ff %arg-9% off"
- command "/ff %arg-10% off"
- set {fighting::arg-3} to true
- set {fighting::arg-4} to true
- set {fighting::arg-5} to true
- set {fighting::arg-6} to true
- set {fighting::arg-8} to true
- set {fighting::arg-9} to true
- set {fighting::arg-10} to true
- set {tourneyTeamSize} to arg-2
- on death of player:
- {fighting:%victim%} is true
- {fighting:%attacker%} is true
- set death message to "&8&l[&b&lTourney&8&l] - &6%attacker%&b killed &6%victim%&b in their fight!"
- delete {fighting:%victim%}
- delete {fighting:%attacker%}
- command /tourneyclear:
- trigger:
- loop all players:
- command "/warp spawn %loop-player%"
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 1.5 1"
- broadcast "&8&l[&b&lTourney&8&l] - &bTourney has been reset!"
- command "/scoreboard teams remove FIGHT1"
- command "/scoreboard teams remove FIGHT2"
- command "/scoreboard teams remove FIGHT3"
- command "/scoreboard teams remove FIGHT4"
- delete {fighting::*}
- delete {tourneyTeamSize}
- command "/heal -a"
- command "/feed -a"
- command "/ci -a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement