command /autosell [<text>]:
trigger:
if player has permission "autosell.use":
if argument 1 is set:
if argument 1 is "off":
set {autosell.%player%} to false
message "&e[Otosat] &akapatıldı!"
else if argument 1 is "on":
set {autosell.%player%} to true
message "&e[Otosat] &aaçıldı!"
else:
if {autosell.%player%} is true:
set {autosell.%player%} to false
message "&e[Otosat] &akapatıldı!"
else:
set {autosell.%player%} to true
message "&e[Otosat] &aaçıldı!"
while {autosell.%player%} is true:
make player execute command "sell all"
wait {@waitingtimeinseconds} second
else:
message "&cBunun için izniniz yok!"