on first join:
wait 1 minute
send "&e/otosat ac &7Otomatik Satış Sistemini &aAktif &7Eder!" to player
send "&e/otosat kapat &7Otomatik Satış Sistemini &aDeaktif &7Eder!" to player
command /otosat [<text>]:
trigger:
if arg-1 is "ac":
execute console command "pex user %player% add otosat.ac"
send "&6&lBilgi &c> &7Otomatik Satış Sistemi &aAktif &7Edildi!" to player
else if arg-1 is "kapat":
execute console command "pex user %player% remove otosat.ac"
send "&6&lBilgi &c> &7Otomatik Satış Sistemi &aDeaktif &7Edildi!" to player
else:
send "&e/otosat ac &7Otomatik Satış Sistemini &aAktif &7Eder!" to player
send "&e/otosat kapat &7Otomatik Satış Sistemini &aDeaktif &7Eder!" to player
on break of a lapis ore:
if player has permission "otosat.ac":
if player has 640 of lapis lazuli:
remove 640 lapis lazuli from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Lapis &c4150TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 4150"
on break of a lapis ore:
if player has permission "otosat.ac":
if player has 640 of lapis lazuli ore:
remove 640 lapis lazuli ore from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Lapis Cevheri &c6900TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 6900"
on break of a Iron ore:
if player has permission "otosat.ac":
if player has 640 of Iron ore:
remove 640 Iron ore from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Demir Cevheri &c81000TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 81000"
on break of a Gold ore:
if player has permission "otosat.ac":
if player has 640 of Gold ore:
remove 640 Gold ore from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Altın Cevheri &c99000TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 99000"
on break of a Diamond ore:
if player has permission "otosat.ac":
if player has 640 of Diamond:
remove 640 Diamond from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Elmas &c171000TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 171000"
on break of a Emerald ore:
if player has permission "otosat.ac":
if player has 640 of Emerald:
remove 640 Emerald from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Zümrüt &c135000TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 135000"
on break of a Coal ore:
if player has permission "otosat.ac":
if player has 640 of Coal:
remove 640 Coal from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Kömür &c25600TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 25600"
on break of a Coal ore:
if player has permission "otosat.ac":
if player has 640 of Coal ore:
remove 640 Coal ore from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Kömür Cevheri &c30500TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 30500"
on break of a Redstone ore:
if player has permission "otosat.ac":
if player has 640 of Redstone:
remove 640 Redstone from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Kızıltaş &c30500TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 30500"
on break of a Redstone ore:
if player has permission "otosat.ac":
if player has 640 of Redstone ore:
remove 640 Redstone ore from player
send "&6&lBilgi &7> &7Envanterinizdeki &c640 Adet &7Kızıltaş Cevheri &c42600TL &7karşılığında satılmıştır!" to player
execute console command "eco give %player% 42600"