Skip to content

.server command enhancements - #6764

Open
Magnus-Krill wants to merge 2 commits into
MeteorDevelopment:masterfrom
Magnus-Krill:master
Open

Magnus-Krill wants to merge 2 commits into
MeteorDevelopment:masterfrom
Magnus-Krill:master

Conversation

@Magnus-Krill

@Magnus-Krill Magnus-Krill commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

Add .server uptime, .server channels [page], .server ping, and .server players. Include uptime, ping, and player counts in the default server information, using short output labels.

Uptime is a keepalive-clock estimate, not verified host or process uptime. It requires three consistent samples, rejects unsupported clocks and stale data, and resets on reconnect. Channels use Fabric's advertised receive-channel list with pagination; the networking API module is bundled for this.

Ping and player counts distinguish current connection information from cached server-list values.

Related issues

None.

How Has This Been Tested?

  • ./gradlew build passed.
  • java -ea -cp build/classes/java/main tools/tests/ServerUptimeTest.java passed, covering clock formats, unsupported IDs, freshness, jitter, clock changes, resets, and bounded state.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

Add keepalive-clock uptime estimates, advertised channels with pagination, tab and cached ping, and player counts to the server command. Reject unsupported clocks and stale estimates, and reset observations across connections. Bundle Fabric networking for advertised channel access and include a standalone clock regression check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant