command /pet [<text>]:
aliases: çağır, cagir, pet
trigger:
arg 1 isn't set:
send "&4--- &2[&aBabaPET&2] &4---"
send "&9/pet tavuk"
send "&9/pet leopar"
send "&9/pet kurt"
send "&4--- &2[&aBabaPET&2] &4---"
if arg 1 is "tavuk":
if player has permission "pet.tavuk":
if {as::beklemesuresi::%player%} was less than 30 seconds ago:
message "&2[&aBabaPET&2] &c30 saniyede bir pet çağırabilirsiniz."
stop
else:
spawn 1 chicken named "&4%player%'n &8Peti" at player-location
if arg 1 is "kurt":
if player has permission "pet.kurt"
if {as::beklemesuresi::%player%} was less than 30 seconds ago:
message "&2[&aBabaPET&2] &c30 saniyede bir pet çağırabilirsiniz."
stop
else:
spawn 1 wolf named "&4%player%'n &8Peti" at player-location
if arg 1 is "leopar":
if player has permission "pet.leopar":
if {as::beklemesuresi::%player%} was less than 30 seconds ago:
message "&2[&aBabaPET&2] &c30 saniyede bir pet çağırabilirsiniz"
stop
else:
spawn 1 ocelot named "&4%player%'n &8Peti" at player-location
if arg 1 is "yardim":
if player has permission "pet.yardim"
send "&4--- &2[&aBabaPET&2] &4---"
send "&9/pet tavuk"
send "&9/pet leopar"
send "&9/pet kurt"
send "&4--- &2[&aBabaPET&2] &4---"
on rightclick on wolf:
loop all players in radius 5 of player:
send "&2[&aKöpek-PET&2] &bHav Hav Hav Hav"
cancel event
on rightclick on chicken:
loop all players in radius 5 of player:
send "&2[&aTavuk-PET&2] &bGıt gıt gıdak"
on rightclick on ocelot:
loop all players in radius 5 of player:
send "&2[&aLeopar-PET&2] &bBen konuşamıyorum ya"
on damage:
victim is a chicken:
message "&f&l|&6&lPET&f&l| &bPet'lere Vuramazsın!" to attacker
cancel event
victim is a wolf:
message "&f&l|&6&lPET&f&l| &bPet'lere Vuramazsın!" to attacker
cancel event
victim is a ocelot:
message "&f&l|&6&lPET&f&l| &bPet'lere Vuramazsın!" to attacker
cancel event