Skip to content

Conversation

@Zoriot
Copy link
Collaborator

@Zoriot Zoriot commented Apr 16, 2025

Should fix the issue that sometimes there are players on the map who are not online on the server.

@Zoriot Zoriot requested review from Nachwahl and Copilot April 16, 2025 16:17
Copy link

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.

Pull Request Overview

This PR ensures that players are removed when the Minecraft server loses connection.

  • Updated the copyright header.
  • Applied readonly modifiers to class properties.
  • Changed the removal mechanism for players to a disconnect event and improved type annotations.
Comments suppressed due to low confidence (1)

backend/src/util/SocketIOController.ts:71

  • [nitpick] Consider renaming the variable 'u' to something more descriptive, such as 'userSegment', to improve code clarity.
split.forEach((u: string) => {

@Zoriot Zoriot force-pushed the bug/fixPlayerData branch from 5bdf269 to 41157d4 Compare April 17, 2025 16:17
Should fix the issue that sometimes there are players on the map who are not online on the server.
Also fixed a build issue and updated the pipeline config to work again on pr's.
@Zoriot Zoriot force-pushed the bug/fixPlayerData branch from 41157d4 to 78981b9 Compare April 17, 2025 16:34
Copy link

@Nudelsuppe42 Nudelsuppe42 left a comment

Choose a reason for hiding this comment

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

Wenns funktioniert.

RegionView.jsx gehört zwar nicht dazu aber gut 😄

@Zoriot Zoriot changed the title 🐛 Remove players when mcServer lose connection 🐛 Remove players when mcServer lose connection and improve region player name lookup Apr 19, 2025
@Zoriot
Copy link
Collaborator Author

Zoriot commented Apr 19, 2025

Wenns funktioniert.

RegionView.jsx gehört zwar nicht dazu aber gut 😄

Keine Ahnung, ob es funktioniert. Wüsste nicht, wie ich das halbwegs einfach testen kann.
Habe den Titel angepasst

@Zoriot Zoriot merged commit 482189c into main Apr 21, 2025
1 check failed
@bte-germany-sentry-integration
Copy link

bte-germany-sentry-integration bot commented Apr 24, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ AxiosError: Request failed with status code 400 / View Issue
  • ‼️ TypeError: Cannot create property 'username' on string '' / View Issue

Did you find this useful? React with a 👍 or 👎

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.

4 participants