# Maximina16
#
# /kredim | yazarak kredi kontrol edilebiliyor
# /kredi <oyuncu> | ile başkasının kredilerine bakabilirsin
# /kredigonder <oyuncu> <miktar> | kredi gönderebilirsin
# /kredisıfırla <oyuncu> | kredi sıfırlar craftpixelkredi.sk yetkisi gerekiyor
# /krediver <oyuncu> <miktar> | oyuncuya kredi verir craftpixelkredi.sk yetkisi lazım yine
# /kredidağıt | tüm oyunculara kredi verir craftpixelkredi.sk yetkisi
#
options:
Dünya: world #hangi dünyada kazanılabilsin
prefix: &8[&eCraftPixel&8] #sunucu ismi
variables:
{yosunlutaş.%player%} = 0
{craftpixelkredi.%player%} = 0
on break of mossy cobblestone:
if player's world is "{@Dünya}":
add 1 to {yosunlutaş.%player%}
cancel event
set block to air
if {yosunlutaş.%player%} is greater than or equal to 64:
remove 64 from {yosunlutaş.%player%}
add 64 to {craftpixelkredi.%player%}
send "{@prefix} &7> &a64 &7yosunlutaş kırdığın için &a64 Kredi &7verildi."
command /kredim:
trigger:
send "{@prefix} &7► &7Kredin: &a%{craftpixelkredi.%player%}%"
command /kredi [<player>]:
trigger:
if arg 1 is set:
send "{@prefix} &7► &a%arg-1% &7Kredisi: &a%{kredi.%arg-1%}%"
else:
send "{@prefix} &7► &7Dogru Kullanım: &a/kredi <oyuncu>"
command /kredigonder [<player>] [<number>]:
trigger:
if arg 1 is set:
if arg 2 is set:
if {craftpixelkredi.%player%} is greater than or equal to arg-2:
remove arg-2 from {craftpixelkredi.%player%}
add arg-2 to {kredi.%arg-1%}
send "{@prefix} &7► &a%player% &7oyuncu &a%arg-2% Kredi &7yolladı." to arg-1
send "{@prefix} &7► &7hesabından &c%arg-2% &7alındı" to player
else:
send "{@prefix} &7► &7yeterli kredi yok"
else:
send "{@prefix} &7► &7Dogru Kullanım: &a/kredigonder <oyuncu> <miktar>"
else:
send "{@prefix} &7► &7Dogru Kullanım: &a/kredigonder <oyuncu> <miktar>"
command /kredisıfırla [<player>]:
permission: craftpixelcraftpixelkredi.sk
trigger:
if arg 1 is set:
set {kredi.%arg-1%} to 0
send "{@prefix} &7► &a%player% &7yetkili tarafından kredin sıfırlandı" to arg-1
send "{@prefix} &7► &a%arg-1% &7adlı oyuncunu kredisi sıfırlandı" to player
else:
send "{@prefix} &7► &7Dogru Kullanım: &a/kredisıfırla <oyuncu>"
command /krediver [<player>] [<number>]:
permission: craftpixelkredi.sk
trigger:
if arg 1 is set:
if arg 2 is set:
add arg-2 to {kredi.%arg-1%}
send "{@prefix} &7► &a%player% &7yetkili sana &a%arg-2% Kredi &7verdi." to arg-1
send "{@prefix} &7► &a%arg-1% &7adlı oyuncuya &a%arg-2% Kredi &7verildi." to player
else:
send "{@prefix} &7► &7Dogru Kullanım: &a/krediver <oyuncu> <miktar>"
else:
send "{@prefix} &7► &7Dogru Kullanım: &a/krediver <oyuncu> <miktar>"
command /kredidağıt [<number>]:
permission: craftpixelkredi.sk
trigger:
if arg 1 is set:
loop all players:
add arg-1 to {kredi.%loop-player%}
send "{@prefix} &7► &a%player% &7yetkili &a%arg-1% Kredi &7dağıtı." to loop-player
else:
send "{@prefix} &7► &7Dogru Kullanım: &a/kredidağıt <miktar>"
command /psatınal [<text>]:
trigger:
if arg 1 is "V10":
if {craftpixelkredi.%player%} is greater than or equal to 15000:
remove 15000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a15.000 Kredi &7karşılığı &aV10 Kazma &7satın aldın."
give a diamond pickaxe of unbreaking 4 and efficiency 10 named "&aEdit Kazma &c[ &6Level &b1 &c]" with lore "&3Sıradışı" to player
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "V15":
if {craftpixelkredi.%player%} is greater than or equal to 25000:
remove 25000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a25.000 Kredi &7karşılığı &aV15 Kazma &7satın aldın."
give a diamond pickaxe of unbreaking 5 and efficiency 15 named "&aEdit Kazma &c[ &6Level &42 &c]" with lore "&dNadir" to player
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "V20":
if {craftpixelkredi.%player%} is greater than or equal to 35000:
remove 35000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a35.000 Kredi &7karşılığı &aV20 Kazma &7satın aldın."
give a diamond pickaxe of unbreaking 6 and efficiency 20 named "&aEdit Kazma &c[ &6Level &f3 &c]" with lore "&5Epik" to player
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "V25":
if {craftpixelkredi.%player%} is greater than or equal to 50000:
remove 50000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a50.000 Kredi &7karşılığı &aV25 Kazma &7satın aldın."
give a diamond pickaxe of unbreaking 7 and efficiency 25 named "&aEdit Kazma &c[ &6Level &94 &c]" with lore "&1Mistik" to player
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "DB":
if {craftpixelkredi.%player%} is greater than or equal to 5000:
remove 5000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a5.000 Kredi &7karşılığı &7Demir Blok Spawner&7satın aldın."
execute console command "itemsp ver %player% demirblok 1"
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "AB":
if {craftpixelkredi.%player%} is greater than or equal to 15000:
remove 15000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a15.000 Kredi &7karşılığı &6Altin Blok Spawner&7satın aldın."
execute console command "itemsp ver %player% altinblok 1"
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "EB":
if {craftpixelkredi.%player%} is greater than or equal to 23000:
remove 24000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a24.000 Kredi &7karşılığı &bElmas Blok Spawner&7satın aldın."
execute console command "itemsp ver %player% elmasblok 1"
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "ZB":
if {craftpixelkredi.%player%} is greater than or equal to 30000:
remove 30000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a30.000 Kredi &7karşılığı &aZumrut Blok Spawner&7satın aldın."
execute console command "itemsp ver %player% zumrutblok 1"
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"
if arg 1 is "CK":
if {craftpixelkredi.%player%} is greater than or equal to 10000:
remove 10000 from {craftpixelkredi.%player%}
send "{@prefix} Market &7► &a10.000 Kredi &7karşılığı &aÇiftlik Bloğu &7satın aldın."
execute console command "efa givefarmitem %player% 1"
else:
send "{@prefix} Market &7► &7Yeterince kredi Yok"