command /kafa [<player>]:
trigger:
if arg-1 is set:
if {kafa::%player%} is set:
set {_zaman} to difference between {kafa::%player%} and now
if {_zaman} is greater than or equal to 3600:
set {_tm} to true
else:
set {_tm} to true
if {_tm} is true:
execute console command "give %player% minecraft:skull 1 3 {SkullOwner: %arg-1%}"
send "başarıyla aldın kafayı" to player
else:
send "15 saniyede bir kere kullanabilirsin" to player
else:
send "/kafa <isim> olarak dene" to player
command /kafa [<player>]:
trigger:
if arg-1 is set:
if {kafa::%player%} is set:
set {_zaman} to difference between {kafa::%player%} and now
if {_zaman} is greater than or equal to 3600:
set {_tm} to true
else:
set {_tm} to true
if {_tm} is true:
execute console command "give %player% minecraft:skull 1 3 {SkullOwner: %arg-1%}"
send "başarıyla aldın kafayı" to player
set {kafa::%player%} to now
else:
send "1 saatte bir kere kullanabilirsin" to player
else:
send "/kafa <isim> olarak dene" to player
command /kafa [<player>]:
trigger:
if arg-1 is set:
if {kafa::%player%} is set:
set {_zaman} to difference between {kafa::%player%} and now
if {_zaman} is greater than or equal to 3600:
set {_tm} to true
else:
set {_tm} to true
if {_tm} is true:
execute console command "give %player% minecraft:skull 1 3 {SkullOwner: %arg-1%}"
send "başarıyla aldın kafayı" to player
set {kafa::%player%} to now
else:
set {_dif} to difference between {kafa::%player%} and now
if {_dif} is less than 3600:
set {_dif2} to difference between 3600 and {_dif}
cancel event
send "%{_dif2}% sonra kullanabilirsin" to player
else:
send "/kafa <isim> olarak dene" to player
options:
sure: 60 minute
command /kafa [<player>]:
trigger:
if arg-1 is set:
set {_sure} to difference between {kafa::%player%} and now
if {_sure} is less than {@sure}:
set {_test} to translateTimespan(difference between {@sure} and {_sure})
send "&eTekrar kullanabilmek için &f%{_test}% &ebeklemen gerekli."
else:
set {_oyuncu} to "%arg-1%" parsed as offline player
give {_oyuncu}'s skull to player
set {kafa::%player%} to now
send "&eKafa'yı başarıyla aldın."
else:
send "/kafa <isim>"
function translateTimespan(t: timespan) :: text:
set {_t} to "%{_t}%"
replace all "and" with "ve" in {_t}
replace all "seconds" and "second" with "saniye" in {_t}
replace all "minutes" and "minute" with "dakika" in {_t}
replace all "hours" and "hour" with "saat" in {_t}
replace all "days" and "day" with "gün" in {_t}
return {_t}