TransWikia.com

How do I test if a specific player is online?

Arqade Asked by DerTypAmKlo on October 4, 2020

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

One Answer

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.

Answered by Fabian Röling on October 4, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP