options:
prefix: &8[&a&l!&8]
command /claimmarket:
usage: &7/claimmarket
trigger:
create a gui with virtual chest with 1 rows named "&8Claim Market":
make gui 0 with golden_shovel named "&fMiktar: &e75 Claim" with lore "&fFiyat: &e20K":
close player's inventory view
execute player command "/claimsatinal claim1"
make gui 3 with golden_shovel named "&fMiktar: &e150 Claim" with lore "&fFiyat: &e40K":
close player's inventory view
execute player command "/claimsatinal claim2"
make gui 5 with golden_shovel named "&fMiktar: &e300 Claim" with lore "&fFiyat: &e80K":
close player's inventory view
execute player command "/claimsatinal claim3"
make gui 8 with golden_shovel named "&fMiktar: &e425 Claim" with lore "&fFiyat: &e110K":
close player's inventory view
execute player command "/claimsatinal claim4"
open last gui to player
command /claimsatinal [<text>]:
trigger:
if arg-1 is not set:
send "" to player
send "" to player
send "{@prefix} &eClaim Market /claimmarket komutunu kullanmalisin." to player
send "" to player
send "" to player
if arg-1 is not "claim1" or "claim2" or "claim3" or "claim4":
send "" to player
send "" to player
send "{@prefix} &eClaim Market /claimmarket komutunu kullanmalisin." to player
send "" to player
if arg-1 is "claim1":
if player's balance is bigger than or equal to 20000:
execute console command "eco take %player% 20000"
execute console command "/AdjustBonusClaimBlocks %player% 75"
send "" to player
send "" to player
send "{@prefix} &620.000 &fkarsiliginda &e75 claim blogu &faldin!" to player
send "" to player
send "" to player
else:
send "{@prefix} &fYeterli paran yok! &8[&6Gerekli para &f= &e20.000&8]" to player
if arg-1 is "claim2":
if player's balance is bigger than or equal to 40000:
execute console command "eco take %player% 40000"
execute console command "/AdjustBonusClaimBlocks %player% 150"
send "" to player
send "" to player
send "{@prefix} &640.000 &fkarsiliginda &e150 claim blogu &faldin!" to player
send "" to player
send "" to player
else:
send "{@prefix} &fYeterli paran yok! &8[&6Gerekli para &f= &e40.000&8]" to player
if arg-1 is "claim3":
if player's balance is bigger than or equal to 80000:
execute console command "eco take %player% 80000"
execute console command "/AdjustBonusClaimBlocks %player% 300"
send "" to player
send "" to player
send "{@prefix} &680.000 &fkarsiliginda &e300 claim blogu &faldin!" to player
send "" to player
send "" to player
else:
send "{@prefix} &fYeterli paran yok! &8[&6Gerekli Para &8= &e80.000&8]" to player
if arg-1 is "claim4":
if player's balance is bigger than or equal to 110000:
execute console command "eco take %player% 110000"
execute console command "/AdjustBonusClaimBlocks %player% 425"
send "" to player
send "" to player
send "{@prefix} &6110.000 &fkarsiliginda &e425 claim blogu &faldin!" to player
send "" to player
send "" to player
else:
send "{@prefix} &fYeterli paran yok! &8[&6Gerekli Para &8= &e110.000&8]" to player