idk what i did wrong, no errors. It just don't work.
Code:
on join:
set {autosell.%player%} to 0
command /autosell:
trigger:
if {autosell.%player%} is 0:
set {autosell.%player%} to 1
send "&a&lAUTOSELL &8: &aActivated!"
else:
set {autosell.%player%} to 0
send "&a&lAUTOSELL &8: &cDeactivated!"
every 1 seconds:
loop all players:
if {autosell.%loop-player%} is 1:
loop all items in the loop-player's inventory:
add 1 to {fullinv.%loop-player%}
if loop-player's boots is not empty or air:
subtract 1 from {fullinv.%loop-player%}
if loop-player's leggings is not empty or air:
subtract 1 from {fullinv.%loop-player%}
if loop-player's chestplate is not empty or air:
subtract 1 from {fullinv.%loop-player%}
if loop-player's helmet is not empty or air:
subtract 1 from {fullinv.%loop-player%}
if {fullinv.%loop-player%} is 36:
send "&a&lAUTOSELL &8: &cFull inventory!" to loop-player
execute loop-player command "sell"