command selloto:
trigger:
check(player)
function check(.: player):
if {sell::%{_.}%} = false:
set {sell::%{_.}%} to true
else:
set {sell::%{_.}%} to false
send "&eOtomatik satış durumu değiştirildi: &b%{sell::%{_.}%}%" to {_.}
every 3 seconds:
loop all players:
sell(loop-value)
function sell(.: player):
if {sell::%{_.}%} = true:
execute {_.} command "sell all"