Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &7[&4&lTNT&c&lDUELS&7]
- command /set1v1spawn1:
- permission: "duel.admin"
- trigger:
- set {1v11} to location of player
- message "{@tag} &aYou have successfully set 1v1 spawn 1 !"
- command /set1v1spawn2:
- permission: "duel.admin"
- trigger:
- set {1v12} to location of player
- message "{@tag} &aYou have successfully set 1v1 spawn 2 !"
- on command:
- if {in1v1.%player%} is true:
- cancel event
- send "{@tag} &cYou can't execute commands in 1v1" to player
- command /1v1 [<player>]:
- trigger:
- if arg 1 is player:
- send "{@tag} &cYou can't 1v1 yourself"
- if arg 1 is not set:
- send "{@tag} &5You no longer requesting anyone to 1v1."
- clear {requesting.%player%}
- else:
- if {1v1antispam.%player%} is false:
- if {requesting.%arg 1%} is player:
- if {arena1} is false:
- set {arena1} to true
- set {_1} to arg 1
- set {_2} to player
- clear {requesting.%{_1}%}
- clear {requesting.%{_2}%}
- set {in1v1.%{_1}%} to true
- set {in1v1.%{_2}%} to true
- execute console command "/gamemode 0 %{_1}%"
- execute console command "/gamemode 0 %{_2}%"
- message "&7-------------------------------------" to {_1}
- message "{@tag} &6You are now fighting %{_2}%" to {_1}
- message "&7-------------------------------------" to {_1}
- message "&7-------------------------------------" to {_2}
- message "{@tag} &6You are now fighting %{_1}%" to {_2}
- message "&7-------------------------------------" to {_2}
- execute console command "/clear %{_1}%"
- execute console command "/clear %{_2}%"
- teleport {_1} to {1v11}
- teleport {_2} to {1v12}
- execute console command "/effect %{_1}% clear"
- execute console command "/effect %{_2}% clear"
- apply speed 2 to {_1} for 999 days
- equip {_1} with all iron armor of protection 4
- give 1 iron sword of unbreaking 100 and sharpness 2 to {_1}
- give 3 enchanted golden apple to {_1}
- apply speed 2 to {_2} for 999 days
- equip {_2} with all iron armor of protection 4
- give 1 iron sword of unbreaking 100 and sharpness 2 to {_2}
- give 64 enchanted golden apple to {_2}
- broadcast "{@tag} &4%{_1}% &6vs &4%{_2}%"
- stop
- else:
- send "{@tag} &6Arena is in use, try again later" to player
- stop
- else:
- set {1v1antispam.%player%} to true
- set {requesting.%player%} to arg 1
- send "{@tag} &6You are resquesting %arg 1% to 1v1" to player
- send "{@tag} &6%player% want to 1v1 you, use /1v1 %player% to accept" to arg 1
- wait 30 seconds
- set {1v1antispam.%player%} to false
- stop
- else:
- send "{@tag} don't spam the 1v1 command" to player
- on join:
- set {1v1antispam.%player%} to false
- on quit:
- clear {requesting.%player%}
- command /debugarena1:
- permission: op
- trigger:
- set {arena1} to false
- on death:
- if {in1v1.%victim%} is true:
- set {in1v1.%victim%} to false
- set {in1v1.%attacker%} to false
- set {arena1} to false
- teleport attacker to {spawn}
- clear attacker's inventory
- heal attacker
- on quit:
- if {in1v1.%player%} is true:
- set {in1v1.%player%} to false
- set {arena1} to false
- loop all players:
- if {in1v1.%loop-player%} is true:
- teleport loop-player to {spawn}
- set {in1v1.%loop-player%} to false
- clear loop-player's inventory
- heal loop-player
Advertisement
Add Comment
Please, Sign In to add comment