Helllo! How I make that if the player is online generator drops the item. If player is offline it stops to drop them. I would be so thankful if somebody could help me
heres my code
every 10 seconds:
loop all players:
loop all blocks in radius 10 around loop-player:
if loop-block is dirt:
drop a sand at loop-block's position