#MrBerkayWinner #Alintidir
options:
Prefix: &6Sunucu &7>> &b
Acildi: Otomatik satma acildi!
Kapatildi: Otomatik satma kapatildi!
Lapiskactane: 640
LapisPara: 6400
Elmaskactane: 640
ElmasPara: 12000
SatildiElmas: Elmaslari Otomatik Olarak sattin!
Essentials: true
Iconomy: false
SatildiLapis: Lapisleri Otomatik Olarak sattin!
demirkactane: 640
DemirPara: 8000
SatildiDemir: Demirleri Otomatik Olarak sattin!
Zumrutkactane: 640
ZumrutPara: 11000
SatildiZumrut: Zumrutleri Otomatik Olarak sattin!
command /otosat [<text>] [<text>]:
trigger:
if arg 1 is "Elmas":
if arg 2 is "ac":
set {elmassat.%player%} to true
send "{@Prefix} {@Acildi}"
if arg 1 is "Elmas":
if arg 2 is "kapat":
delete {elmassat.%player%}
send "{@Prefix} {@Kapatildi}"
if arg 1 is "Lapis":
if arg 2 is "ac":
set {lapissat.%player%} to true
send "{@Prefix} {@Acildi}"
if arg 1 is "Lapis":
if arg 2 is "kapat":
delete {lapissat.%player%}
send "{@Prefix} {@Kapatildi}"
if arg 1 is "Demir":
if arg 2 is "ac":
set {demirsat.%player%} to true
send "{@Prefix} {@Acildi}"
if arg 1 is "Demir":
if arg 2 is "kapat":
delete {demirsat.%player%}
send "{@Prefix} {@Kapatildi}"
if arg 1 is "Zumrut":
if arg 2 is "ac":
set {zumrutsat.%player%} to true
send "{@Prefix} {@Acildi}"
if arg 1 is "Zumrut":
if arg 2 is "kapat":
delete {zumrutsat.%player%}
send "{@Prefix} {@Kapatildi}"
if arg 1 is not set:
send "&e&m--------------------------"
send "&c/otosat Lapis ac - /otosat Lapis kapat"
send "&c/otosat Demir ac - /otosat Demir kapat"
send "&c/otosat Zumrut ac - /otosat Zumrut kapat"
send "&c/otosat Elmas ac - /otosat Elmas kapat"
send "&e&m--------------------------"
if arg 2 is not set:
send "&e&m--------------------------"
send "&c/otosat Lapis ac - /otosat Lapis kapat"
send "&c/otosat Demir ac - /otosat Demir kapat"
send "&c/otosat Zumrut ac - /otosat Zumrut kapat"
send "&c/otosat Elmas ac - /otosat Elmas kapat"
send "&e&m--------------------------"
if arg 1 is not set:
if arg 2 is not set:
send "&e&m--------------------------"
send "&c/otosat Lapis ac - /otosat Lapis kapat"
send "&c/otosat Demir ac - /otosat Demir kapat"
send "&c/otosat Zumrut ac - /otosat Zumrut kapat"
send "&c/otosat Elmas ac - /otosat Elmas kapat"
send "&e&m--------------------------"
on break of diamond ore:
if {elmassat.%player%} is set:
if player has {@Elmaskactane} diamond:
remove {@Elmaskactane} diamond from player
send "{@Prefix} {@SatildiElmas}"
if {@Essentials} is true:
execute console command "eco give %player% {@ElmasPara}"
if {@Iconomy} is true:
execute console command "money give %player% {@ElmasPara}"
stop
on break of lapis ore:
if {lapissat.%player%} is set:
if player has {@Lapiskactane} lapis lazuli:
remove {@Lapiskactane} lapis lazuli from player
send "{@Prefix} {@SatildiLapis}"
if {@Essentials} is true:
execute console command "eco give %player% {@LapisPara}"
if {@Iconomy} is true:
execute console command "money give %player% {@LapisPara}"
stop
on break of iron ore:
if {demirsat.%player%} is set:
if player has {@demirkactane} diamond:
remove {@demirkactane} diamond from player
send "{@Prefix} {@SatildiDemir}"
if {@Essentials} is true:
execute console command "eco give %player% {@DemirPara}"
if {@Iconomy} is true:
execute console command "money give %player% {@DemirPara}"
stop
on break of emerald ore:
if {zumrutsat.%player%} is set:
if player has {@Zumrutkactane} diamond:
remove {@Zumrutkactane} diamond from player
send "{@Prefix} {@SatildiZumrut}"
if {@Essentials} is true:
execute console command "eco give %player% {@ZumrutPara}"
if {@Iconomy} is true:
execute console command "money give %player% {@ZumrutPara}"
stop