options:
prefix: &c&lSavaş &7»
noperm: Bu komut için yetkin yok!
command /savaş:
trigger:
open virtual chest with size 1 named "&4Savaş Arenaları" to player
make gui slot 0 of player with diamond sword named "&bArena 1" with lore "&cBu arenaya girmeden önce üstünüzdeki itemleri çıkarınız!||Aksi takdirde üstünüzdeki zırhlar gidebilir!" to close then run console command "takımseç %player%"
command /takımseç [<player>]:
executable by: console
trigger:
open virtual chest with size 1 named "&cTakımlar:" to arg 1
make gui slot 0 of arg 1 with red wool block named "&4Kırmızı Takım" with lore "&f%size of {kırmızıtakım::*}%" to close then run console command "takım %arg 1% kırmızı"
make gui slot 1 of arg 1 with blue wool block named "&bMavi Takım" with lore "&f%size of {mavitakım::*}%" to close then run console command "takım %arg 1% mavi"
command /takım [<player>] [<text>]:
trigger:
if arg 2 is "kırmızı":
if size of {kırmızıtakım::*} is smaller than 4:
if {takım.%arg 1%} is not set:
set {takım.%arg 1%} to red
execute console command "effect %arg 1% clear"
heal arg 1
clear arg 1's inventory
add arg 1 to {kırmızıtakım::*}
teleport arg 1 to {kırmızı}
make arg 1 wear all leather armour
dye arg 1's helmet red
dye arg 1's chestplate red
dye arg 1's leggings red
dye arg 1's boots red
give 1 stone sword to arg 1
send "{@prefix} &4Kırmızı takıma geçtin" to arg 1
else:
send "{@prefix} &4Zaten bir takımın var!" to arg 1
else:
send "{@prefix} &aBu takım dolu!" to arg 1
if arg 2 is "mavi":
if size of {mavitakım::*} is smaller than 4:
if {takım.%arg 1%} is not set:
set {takım.%arg 1%} to blue
execute console command "effect %arg 1% clear"
heal arg 1
clear arg 1's inventory
add arg 1 to {mavitakım::*}
teleport arg 1 to {mavi}
make arg 1 wear all leather armour
dye arg 1's helmet blue
dye arg 1's chestplate blue
dye arg 1's leggings blue
dye arg 1's boots blue
give 1 stone sword to arg 1
send "{@prefix} &1Mavi takıma geçtin!" to arg 1
else:
send "{@prefix} &4Zaten bir takımın var!" to arg 1
else:
send "{@prefix} &aBu takım dolu!" to arg 1
command /savaşyer [<text>]:
permission: OP
permission message: {@prefix} {@noperm}
trigger:
if arg 1 is "kırmızı":
set {kırmızı} to location of player
send "{@prefix} &4Kırmızıların &abölgesi belirlendi!"
if arg 1 is "mavi":
set {mavi} to location of player
send "{@prefix} &bMavilerin &abölgesi belirlendi!"
command /arenaçık:
trigger:
delete {takım.%player%}
remove player from {kırmızıtakım::*}
remove player from {mavitakım::*}
send "{@prefix} &aBaşarıyla çıktın!"
execute console command "spawn %player%"
clear player's inventory
on respawn:
if {takım.%player%} is set:
if {takım.%player%} is red:
loop {kırmızıtakım::*}:
wait 1 second
teleport player to {kırmızı}
make player wear all leather armour
dye player's helmet red
dye player's chestplate red
dye player's leggings red
dye player's boots red
give 1 stone sword to player
if {takım.%player%} is blue:
loop {mavitakım::*}:
wait 1 second
teleport player to {mavi}
clear player's inventory
make player wear all leather armour
dye player's helmet blue
dye player's chestplate blue
dye player's leggings blue
dye player's boots blue
give 1 stone sword to player
on damage of player:
if victim is player:
if attacker is player:
if {takım.%victim%} is {takım.%attacker%}:
loop {kırmızıtakım::*}:
cancel event
send "&a%victim% &cadlı takım arkadaşına vuramazsın." to loop-value
if {takım.%victim%} is {takım.%attacker%}:
loop {mavitakım::*}:
cancel event
send "&a%victim% &cadlı takım arkadaşına vuramazsın." to loop-value
on chat:
if {takım.%player%} is set:
if {takım.%player%} is red:
loop {kırmızıtakım::*}:
cancel event
send "&6[&4Kırmızı Takım&6] &4%player% &8> &7%message%" to loop-value
if {takım.%player%} is blue:
loop {mavitakım::*}:
cancel event
send "&6[&bMavi Takım&6] &b%player% &8> &7%message%" to loop-value
on quit:
if {takım.%player%} is set:
delete {takım.%player%}
clear player's inventory
remove player from {kırmızıtakım::*}
remove player from {mavitakım::*}
on command:
if {takım.%player%} is set:
if command is not "arenaçık":
cancel event
send "{@prefix} &cSavaştan sadece &8(&c/arenaçık&8) &ckomutunu kullanabilirsin!"