0

I want to make a command block that detects if me or my friend are online using /execute. How can I accomplish this?

1

Simply insert their name instead of a selector in /execute if, like this:

/execute if entity Horst run …

This checks if that player exists in the world, which is only the case if they're currently online on that server/LAN game or playing that world in Singleplayer.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.