Options:
p: &3Test&6Server &e»
perm-mesaj: &cBu komut kullanabilmek için yeterli yetkin yok!
Command /arenapvpbelirle [<Text>] [<int>]:
permission: arenapvpbelirle.admin
permission message: {@p} {@perm-mesaj}
trigger:
if executor is "Fatih_TR67": # ----> Bu komutu kimin kullanabileceiğini ayarlayabilirsin.
if world of player is "arenapvp": # ----> Bu komut sadece hangi dünyada işleyeceğini ayarlayabilirsin.
if arg 1 is not set:
send "{@p} &b/arenapvpbelirle &7(&cEkle&7,&cÇıkar&7,&cTemizle&7) &7(&cInt&7)"
stop
if arg 1 is "Ekle":
if arg 2 is not set:
send "{@p} &aBir sayı girmelisin!"
stop
else:
if {RandomTP.Aktif.%arg 2%} is true:
send "{@p} &cBu yer zaten ekli başka sayı girin!"
stop
else:
set {RandomTP.%arg 2%} to location of player
set {RandomTP.Aktif.%arg 2%} to true
set {RandomTPspawn::%location of player%} to location of player
send "{@p} &eBu bölge artık ışınlanıcak yerler arasında!"
stop
if arg 1 is "Çıkar":
if arg 2 is not set:
send "{@p} &aBir sayı girmelisin!"
stop
else:
if {RandomTP.Aktif.%arg 2%} is true:
remove {RandomTP.%arg 2%} from {RandomTPspawn::*}
delete {RandomTP.%arg 2%}
delete {RandomTP.Aktif.%arg 2%}
send "{@p} &eBu bölge artık ışınlanıcak yerler arasından kaldırıldı!"
stop
else:
send "{@p} &cBu yer zaten ekli değil!"
stop
if arg 1 is "Temizle":
if amount of {RandomTPspawn::*} < 1:
send "{@p} &cHenüz bir yer eklememişsin!"
stop
else:
loop {RandomTPspawn::*}:
delete {RandomTP.%loop-index%}
set {RandomTP.Aktif.%loop-index%} to false
remove loop-value from {RandomTPspawn::*}
clear {RandomTPspawn::*}
send "{@p} &aListe temizlendi!"
stop
else:
send "{@p} &cBu komutu sadece &eArenaPvP &cdünyasında kullanabilirsin."
else:
send "{@p} &cBu komutu sadece &4Fatih_TR67 &ckullanabilir."
on step on bedrock:
if player's world is "world": # ---> Hangi dünyada katmankayasına basılıp ışınlanacak dünya ayarlayabilirsin.
{RandomTPspawn::*} is set:
wait 2 tick
set {_spawn.%player%} to random element of {RandomTPspawn::*}
teleport player to {_spawn.%player%}
delete {_spawn.%player%}
set the player's gamemode to survival
remove invisibility and speed and haste and regeneration and absorption and strength from player
else:
send "{@p} &cYer belirlenmemiş!"