Kod:
options:
wanditem: wood axe
command /wand:
trigger:
if player has permission "koy.oyuncu":
set {_sayi} to 640
else if player has permission "koy.vip":
set {_sayi} to 640
else if player has permission "koy.vip+":
set {_sayi} to 640
else if player has permission "koy.+vip+":
set {_sayi} to 640
else if player has permission "koy.mvip":
set {_sayi} to 640
else if player has permission "koy.mvip+":
set {_sayi} to 640
if {koy::hak::%player%} is set:
set {_sayi} to {koy::hak::%player%}
give 1 {@wanditem} named "&cİsland Edit" with lore "||&e&nBir kerede dizebileceğin||&e&nmaximum block sayısı:||||&6%{_sayi}% Block" to player
on left click with {@wanditem}:
set {_owner} to asb island at location of player owner
if "%{_owner}%" is equal to "%player%":
if clicked block is set:
if targeted block is not air:
cancel event
set {koy::skybalta:::%player%::1} to location of event-block
if player has permission "koy.oyuncu":
set {_sayi} to 640
else if player has permission "koy.vip":
set {_sayi} to 640
else if player has permission "koy.vip+":
set {_sayi} to 640
else if player has permission "koy.+vip+":
set {_sayi} to 640
else if player has permission "koy.mvip":
set {_sayi} to 640
else if player has permission "koy.mvip+":
set {_sayi} to 640
if {koy::hak::%player%} is set:
set {_sayi} to {koy::hak::%player%}
if {koy::skybalta:::%player%::2} is set:
loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
add 1 to {_n}
if {_n} is smaller than or equal to {_sayi}:
send "&aToplamda &c%{_n}% &ablock seçtiniz. &7(&e/koy [<block id>]&7)"
else:
send "&cKoyabileceğiniz max. sınırı aşıyorsunuz !"
delete {koy::skybalta:::%player%::1}
else:
send "&aBölge &e1 &aseçildi. Lütfen Bölge &e2'yide &aseçiniz. &7(&6İptal için &e/koy iptal&7)"
else:
send "&cBu ada senin değil !"
on right click with {@wanditem}:
set {_owner} to asb island at location of player owner
if "%{_owner}%" is equal to "%player%":
if clicked block is set:
if targeted block is not air:
cancel event
set {koy::skybalta:::%player%::2} to location of event-block
if player has permission "koy.oyuncu":
set {_sayi} to 640
else if player has permission "koy.vip":
set {_sayi} to 640
else if player has permission "koy.vip+":
set {_sayi} to 640
else if player has permission "koy.+vip+":
set {_sayi} to 640
else if player has permission "koy.mvip":
set {_sayi} to 640
else if player has permission "koy.mvip+":
set {_sayi} to 640
if {koy::hak::%player%} is set:
set {_sayi} to {koy::hak::%player%}
if {koy::skybalta:::%player%::1} is set:
loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
add 1 to {_n}
if {_n} is smaller than or equal to {_sayi}:
send "&aToplamda &c%{_n}% &ablock seçtiniz. &7(&e/koy [<block id>]&7)"
else:
send "&cKoyabileceğiniz max. sınırı aşıyorsunuz !"
delete {koy::skybalta:::%player%::2}
else:
send "&aBölge &e1 &aseçildi. Lütfen Bölge &e2'yide &aseçiniz. &7(&6İptal için &e/koy iptal&7)"
else:
send "&cBu ada senin değil !"
command /koy [<text>]:
trigger:
set {_block} to arg 1 parsed as a item type
if arg 1 is set:
if {_block} is a item type:
if {_block} is not air:
if {koy::skybalta:::%player%::1} is set:
if {koy::skybalta:::%player%::2} is set:
loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
add 1 to {_n}
if player has {_n} of {_block}:
remove {_n} of {_block} from player's inventory
else:
set {_amount} to amount of {_block} in player's inventory
send "&cYeterli bloğun envanterinde yok. &7(&eGereken &6%{_n}-{_amount}%&7)"
stop
loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
add 1 to {_lag}
set loop-blocks to {_block}
if {_lag} is greater than or equal to 100:
wait 1 ticks
delete {_lag}
delete {koy::skybalta:::%player%::*}
else:
send "&cLütfen &a2. &cbölgeyi &esağ &ctıklayarak seçiniz !"
else:
send "&cLütfen &a1. &cbölgeyi &esol &ctıklayarak seçiniz !"
else:
if {koy::skybalta:::%player%::1} is set:
if {koy::skybalta:::%player%::2} is set:
loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
add 1 to {_lag}
give loop-blocks to player
set loop-blocks to {_block}
if {_lag} is greater than or equal to 100:
wait 1 ticks
delete {_lag}
delete {koy::skybalta:::%player%::*}
else:
send "&cLütfen &a2. &cbölgeyi &esağ &ctıklayarak seçiniz !"
else:
send "&cLütfen &a1. &cbölgeyi &esol &ctıklayarak seçiniz !"
if arg 1 is "iptal":
delete {koy::skybalta:::%player%::*}
send "&cSeçili alanlar kaldırıldı !"
command /blockver [<player>] [<number>]:
permission: op
permission message: &cYeterli yetkiniz yok !
trigger:
if arg 1 is set:
if arg 2 is set:
set {koy::hak::%arg 1%} to arg 2
send "&aYeni block koyma hakkın = &5%{koy::hak::%arg 1%}%" to arg 1
send "&e%arg 1% &aAdlı oyuncunun yeni block koyma hakkı = &5%{koy::hak::%arg 1%}%" to player
else:
send "&cLütfen bir sayı belirle !"
else:
send "&cLütfen bir kişi belirle !"
Gönderi otomatik olarak birleştirildi:
yayrdım edinn
Son düzenleme: