Skip to content

Add a command and API endpoint to see the game date and time#23

Merged
zefir-git merged 2 commits intomainfrom
datetime
May 25, 2024
Merged

Add a command and API endpoint to see the game date and time#23
zefir-git merged 2 commits intomainfrom
datetime

Conversation

@zefir-git
Copy link
Member

Command /time, /date, /today, /smpcore time will now show the current in-game date and time.

GET / will now return {time: long} with the current UNIX timestamp for the equivalent game time.

@zefir-git zefir-git added the feature A request, idea, or new functionality label May 25, 2024
@zefir-git zefir-git requested a review from a team May 25, 2024 14:28
@zefir-git zefir-git self-assigned this May 25, 2024
@zefir-git zefir-git enabled auto-merge May 25, 2024 14:28
Copy link
Member

@Dviih Dviih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good to me.

@zefir-git zefir-git added this pull request to the merge queue May 25, 2024
Merged via the queue into main with commit eb0f7ac May 25, 2024
@zefir-git zefir-git deleted the datetime branch May 25, 2024 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A request, idea, or new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants