options:
tag: &5[&bSunucu adın&5]
command /set1v1spawn1:
permission: "1vs1.yetki"
trigger:
set {1v11} to location of player
message "{@tag} &a&lBAŞARILI&c»&e1V1 1. Yerini başarıyla ayarladınız !"
command /set1v1spawn2:
permission: "1vs1.yetki.2"
trigger:
set {1v12} to location of player
message "{@tag} &a&lBAŞARILI&c»&71V1 2. Yerini başarıyla ayarladınız !"
on command:
if {in1v1.%player%} is true:
cancel event
send "{@tag} &4&lHATA&c»&e1v1'de komut çalıştırılamadı" to player
command /1v1 [<player>]:
trigger:
if arg 1 is player:
send "{@tag} &4&lHATA&c»&e1v1 isteği atılamıyor"
if arg 1 is not set:
send "{@tag} &4&lHATA&c»&eŞuanda 1v1 isteği atamazsınız!"
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} &8&lSAVAŞ&c»&6Şuanda savaştasınız! %{_2}%" to {_1}
message "&7-------------------------------------" to {_1}
message "&7-------------------------------------" to {_2}
message "{@tag} &8&lSAVAŞ&c»&6Şuanda savaştasınız! %{_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 64 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} &8&lSAVAŞ&c»&6&4%{_1}% &6vs &4%{_2}%"
stop
else:
send "{@tag} &4&lHATA&c»&eArane dolu &a&l2 DAKİKA tekrar deneyiniz" 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% sizle 1v1 atmak istiyor kabul etmek için /1v1 %player%" 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