The Online Detector is a block that emits a redstone signal when a player you specify is online. Simply right click the block to open up its gui and input the name of the player you want to detect. While the specified player is online the block will emit a redstone signal, otherwise it won’t.
When Open Computers is installed it also provides a component called “online_detector” with the following functions: