Capabilities
GET_ONLINE_COUNT
Report the online-player count in connector heartbeats
Bridge contract
Implement:
@Override
public int onlineCount()
{
return World.getInstance().getPlayers().size();
}The core calls onlineCount() for every heartbeat. HeartbeatSeconds
defaults to 15.
Return a non-negative count from the in-process player registry. Do not use a historical database value.
Verification
Connector check passes when a heartbeat contains an online-player count.