Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Conversation

@twisti-dev
Copy link
Contributor

@twisti-dev twisti-dev commented Apr 9, 2025

Should be a draft, but we don't have the GitHub Team plan anymore.

Closes #21

@twisti-dev twisti-dev requested a review from Copilot April 9, 2025 12:28
@twisti-dev twisti-dev self-assigned this Apr 9, 2025
@twisti-dev twisti-dev linked an issue Apr 9, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

surf-cloud-core/surf-cloud-core-common/src/main/kotlin/dev/slne/surf/cloud/core/common/player/playtime/PlaytimeImpl.kt:130

  • In the averagePlaytimePerServer function, calculating the average playtime and directly converting it to seconds may yield a NaN Duration if the entries collection is empty. Consider checking for empty groups or NaN values and defaulting to Duration.ZERO.
.average().seconds

surf-cloud-core/surf-cloud-core-common/src/main/kotlin/dev/slne/surf/cloud/core/common/player/playtime/PlaytimeImpl.kt:139

  • Similarly, in the averagePlaytimePerServer branch with the 'since' filter, the use of .average().seconds can lead to a NaN Duration when there are no matching entries. Consider handling the empty case explicitly.
.average().seconds

@twisti-dev twisti-dev requested a review from Copilot April 10, 2025 16:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 51 out of 51 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

surf-cloud-api/surf-cloud-api-common/src/main/kotlin/dev/slne/surf/cloud/api/common/netty/packet/packet-extension.kt:72

  • [nitpick] Consider specifying an explicit type argument for the serializer() call for clarity and to prevent potential ambiguity in type inference.
val serializer = serializer()

README.md:7

  • [nitpick] Verify if the added external link is intentional; if not, consider removing it to keep the README focused on project-related resources.
https://chatgpt.com/g/g-67f7a61dc2208191bea4663d0771d6dd-flyway-migration-generator

@twisti-dev twisti-dev merged commit 14d22b3 into master Apr 10, 2025
@twisti-dev twisti-dev deleted the 21-add-more-offlineplayerproperties branch April 10, 2025 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add More OfflinePlayerProperties

2 participants