#======================================
# KASA SKRIPTI
# BY ENVER (iSpecialForces)
#======================================
on rightclick on trapped chest:
if tool's name is "&bKasa &aAnahtari":
cancel event
send "&7[&aKasa&eSK&7] &b----------"
send "&7[&aKasa&eSK&7] &2Aciliyor..."
send "&7[&aKasa&eSK&7] &b----------"
wait 1 second
if chance of 10%:
give 64 diamond to player
send "&7[&aKasa&eSK&7] &3DIAMOND &7Kazandin!"
set event-block to air
else if chance of 40%:
give 64 iron ingot to player
send "&7[&aKasa&eSK&7] &fIRON &7Kazandin!"
set event-block to air
else if chance of 50%:
give 64 gold ingot to player
send "&7[&aKasa&eSK&7] &eGOLD &7Kazandin!"
set event-block to air
else:
cancel event
send "&7[&aKasa&eSK&7] &cAnahtarin Yok!"
command /anahtar [<player>]:
trigger:
if player has permission "sandik.sk":
if arg 1 isn't set:
send "&7[&aKasa&eSK&7] &cBir isim gir!" to player
if arg 1 is player:
give tripwire hook named "&bKasa &aAnahtari" to arg 1