Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- P: &8[&bHyperDriveMC&8]
- C: &7
- H: &a
- Perm: skript.op
- World: duel
- command /startduel <player> <player> <player> <player>:
- permission: {@Perm}
- usage: /startduel <Player> <Player> <Player> <Player>
- trigger:
- set {duel} to true
- set {duel::%arg-1%} to true
- set {duel::%arg-2%} to true
- set {duel::%arg-3%} to true
- set {duel::%arg-4%} to true
- # First Player
- apply slowness 10 to arg-1 for 999 days
- apply resistance 10 to arg-1 for 999 days
- apply blindness 10 to arg-1 for 999 days
- equip arg-1 with a diamond helmet of protection 1 and unbreaking 10 named "&aHelmet"
- equip arg-1 with a iron chestplate of projectile protection 1 and unbreaking 10 named "&eChestPlate"
- equip arg-1 with a iron leggings of protection 1 and unbreaking 10 named "&3Leggings"
- equip arg-1 with a diamond boots of projectile protection 1 and unbreaking 10 named "&6Boots"
- give arg-1 a iron sword of sharpness 1 and unbreaking 10 named "&c&lSword"
- give arg-1 a bow of infinity 1 and power 1and unbreaking 10 named "&a&lBow"
- give arg-1 1 arrow named "&e&lArrow"
- give arg-1 346
- command "/warp duel1 %arg-1%"
- # Second Player
- apply slowness 10 to arg-2 for 999 days
- apply resistance 10 to arg-2 for 999 days
- apply blindness 10 to arg-2 for 999 days
- equip arg-2 with a diamond helmet of protection 1 and unbreaking 10 named "&aHelmet"
- equip arg-2 with a iron chestplate of projectile protection 1 and unbreaking 10 named "&eChestPlate"
- equip arg-2 with a iron leggings of protection 1 and unbreaking 10 named "&3Leggings"
- equip arg-2 with a diamond boots of projectile protection 1 and unbreaking 10 named "&6Boots"
- give arg-2 a iron sword of sharpness 1 and unbreaking 10 named "&c&lSword"
- give arg-2 a bow of infinity 1 and power 1 and unbreaking 10 named "&a&lBow"
- give arg-2 1 arrow named "&e&lArrow"
- give arg-2 346
- command "/warp duel1 %arg-2%"
- # Third Player
- apply slowness 10 to arg-3 for 999 days
- apply resistance 10 to arg-3 for 999 days
- apply blindness 10 to arg-3 for 999 days
- equip arg-3 with a diamond helmet of protection 1 and unbreaking 10 named "&aHelmet"
- equip arg-3 with a iron chestplate of projectile protection 1 and unbreaking 10 named "&eChestPlate"
- equip arg-3 with a iron leggings of protection 1 and unbreaking 10 named "&3Leggings"
- equip arg-3 with a diamond boots of projectile protection 1 and unbreaking 10 named "&6Boots"
- give arg-3 a iron sword of sharpness 1 and unbreaking 10 named "&c&lSword"
- give arg-3 a bow of infinity 1 and power 1 and unbreaking 10 named "&a&lBow"
- give arg-3 1 arrow named "&e&lArrow"
- give arg-3 346
- command "/warp duel2 %arg-3%"
- # Fourth Player
- apply slowness 10 to arg-4 for 999 days
- apply resistance 10 to arg-4 for 999 days
- apply blindness 10 to arg-4 for 999 days
- equip arg-4 with a diamond helmet of protection 1 and unbreaking 10 named "&aHelmet"
- equip arg-4 with a iron chestplate of projectile protection 1 and unbreaking 10 named "&eChestPlate"
- equip arg-4 with a iron leggings of protection 1 and unbreaking 10 named "&3Leggings"
- equip arg-4 with a diamond boots of projectile protection 1 and unbreaking 10 named "&6Boots"
- give arg-4 a iron sword of sharpness 1 and unbreaking 10 named "&c&lSword"
- give arg-4 a bow of infinity 1 and power 1 and unbreaking 10 named "&a&lBow"
- give arg-4 1 arrow named "&e&lArrow"
- give arg-4 346
- command "/warp duel2 %arg-4%"
- broadcast "{@P}{@C} Duel Starting Between {@H}%arg-1% {@C}And {@H}%arg-2%{@C} Are Against {@H}%arg-3% {@C}And {@H}%arg-4%{@C}!”
- wait 10 ticks
- broadcast "{@P}{@C} Duel Starting In &a3{@C}..."
- loop all players:
- execute console command "/playsound random.click %loop-player% ~ ~ ~ 1 1 1"
- wait 1 second
- broadcast "{@P}{@C} Duel Starting In &a2{@C}..."
- loopall players:
- execute console command "/playsound random.click %loop-player% ~ ~ ~ 1 1 1"
- wait 1 second
- broadcast "{@P}{@C} Duel Starting In &a1{@C}..."
- loop all players:
- execute console command "/playsound random.click %loop-player% ~ ~ ~ 1 1 1"
- wait 1 second
- broadcast "{@P}{@C} Duel Between {@H}%arg-1% {@C}{@H}%arg-2% And {@H}%arg-3% {@H}%arg-4% Has Started {@C}Started!"
- loop all players:
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- command "/effect %arg-1% clear"
- command "/effect %arg-2% clear"
- command “/effect %arg-3% clear"
- command “/effect %arg-4% clear"
- command /endduel <player> <player>:
- permission: {@Perm}
- usage: /endduel <Winner> <Winner>
- trigger:
- heal arg-1
- clear the inventory of arg-1
- command "/effect %arg-1% clear"
- command "/effect %arg-2% clear"
- command "/warp duelspawn %arg-1% %arg-2%”
- broadcast "{@P}{@H} %arg-1% and %arg-2% {@C}Won The Duel!"
- delete {duel}
- delete {duel::*}
- command /stopduel:
- permission: {@Perm}
- trigger:
- loop all players:
- command "/warp duelspawn %loop-player%"
- clear the inventory of loop-player
- heal loop-player
- command "/effect %loop-player% clear"
- delete {duel}
- delete {duel::*}
- broadcast "{@P}{@C} Duel Stopped!"
- command /duelhelp:
- permission: skript.option
- trigger:
- message "&8-----------------------------"
- message "{@H}/startduel <player> <player> &8- {@C}Start a duel against 2 players!"
- message "{@H}/endduel &8-{@C} End a duel and broadcast the winner!"
- message "{@H}/stopduel &8-{@C} Tab the wrong person? Stop the duel and tp all players to the duel spawn point."
- message "&cRemember&8-{@C} Set a warp named 'duelspawn' where you want the players to spawn. You also need to setwarps 'duel1' and 'duel2' for spawnpoints for players."
- message "&8-----------------------------"
- on death of player:
- if {duel} is true:
- clear drops
- command "/endduel %attacker%"
- on join:
- if {duel} is true:
- command "/warp duelspawn %player%"
- command "/effect %player% clear"
- heal player
- clear the inventory of player
- on quit:
- if {duel::%player%} is true:
- broadcast "{@P}{@H} Duelling Player Logged Out!"
- command "/stopduel"
- on damage:
- damage was caused by fall
- victim is a player
- victim is in the world "{@World}"
- {duel} is true
- cancel the event
- on hunger meter change:
- player is in world "{@World}"
- set player's hunger meter to 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement