Skip to content

Feat/awaiting transfers#28

Merged
Keviro merged 14 commits intoversion/1.21.11from
feat/awaiting-transfers
Feb 15, 2026
Merged

Feat/awaiting transfers#28
Keviro merged 14 commits intoversion/1.21.11from
feat/awaiting-transfers

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

No description provided.

@TheBjoRedCraft TheBjoRedCraft self-assigned this Feb 15, 2026
Copilot AI review requested due to automatic review settings February 15, 2026 16:50
…ing-transfers

# Conflicts:
#	surf-core-api/surf-core-api-paper/src/main/kotlin/dev/slne/surf/core/api/paper/command/argument/PermissionCommonSurfServerArgument.kt
Copy link
Copy Markdown
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.

Pull request overview

This pull request implements a feature for awaiting proxy transfers with proper status tracking. The changes add support for transferring players between proxy servers using Minecraft's modern transfer protocol, with comprehensive error handling, tracking, and reporting.

Changes:

  • Added sendPlayerAwaiting API method for proxy transfers with status tracking using Redis-based watchers
  • Implemented SendPlayerToProxyRequest Redis request/response system with acknowledgment and result tracking
  • Enhanced shutdown logic to use awaiting transfers and provide detailed status reporting
  • Added transferred boolean field to SurfPlayer to track transfer state across the network

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
SendPlayerToProxyHandler.kt New handler for proxy transfer requests via Redis
SendPlayerToServerHandler.kt Updated import path for refactored request classes
VelocityServerListener.kt Enhanced shutdown with awaiting transfers and comprehensive status reporting
ConnectionListener.kt Sets transferred flag based on authentication listener transfer tracking
AuthenticationListener.kt Added UUID tracking set for player transfers
VelocityMain.kt Registered new SendPlayerToProxyHandler (replaced SendPlayerToServerHandler)
PlayerConnectListener.kt Added transfer confirmation logic and response publishing on player join
SurfCoreCommand.kt Restructured test command with separate server/proxy subcommands
NetworkServerCommand.kt Updated to use awaiting transfer API with result handling
NetworkSendCommand.kt Added awaiting transfer support for proxy sends with detailed error reporting
PaperBootstrap.kt Added validation for server configuration fields
PlayerServerConnectionResultWatcher.kt Refactored package structure (moved to watcher subpackage)
PlayerProxyConnectionResultWatcher.kt New watcher for proxy transfer results with Redis-based deduplication
SendPlayerToServerRequest.kt Moved to request subpackage and updated types
SendPlayerToProxyRequest.kt New request/response definitions for proxy transfers
SendPlayerToServerListener.kt Updated imports for refactored classes
SendPlayerToProxyListener.kt New listener for proxy transfer response events
RedisLoader.kt Added SendPlayerToProxyListener registration
SurfCoreApiImpl.kt Implemented sendPlayerAwaiting for proxies and added getCommonServer methods
SurfPlayerServiceImpl.kt Added transferred field initialization
SurfPlayerRepository.kt Added transferred field to database mapping
SurfCommonServerArgument.kt (velocity) Updated to use getCommonServerByName
SurfCommonServerArgument.kt (paper) Updated to use getCommonServerByName and getCommonServers
PermissionCommonSurfServerArgument.kt Updated to use getCommonServerByName and getCommonServers
SurfProxyServerConnectionResult.kt New result class for proxy connection status
SurfPlayerSerializer.kt Added transferred field serialization/deserialization
SurfPlayer.kt Added transferred boolean field
SurfCoreApi.kt Added sendPlayerAwaiting and getCommonServer methods to API
gradle.properties Version bump to 1.21.11-1.2.1-SNAPSHOT

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…surf/core/core/common/redis/watcher/PlayerProxyConnectionResultWatcher.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 15, 2026 16:58
TheBjoRedCraft and others added 9 commits February 15, 2026 18:00
…ner/PlayerConnectListener.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…surf/core/core/common/redis/watcher/PlayerProxyConnectionResultWatcher.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/listener/VelocityServerListener.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
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.

Pull request overview

Copilot reviewed 28 out of 28 changed files in this pull request and generated 13 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Keviro Keviro disabled auto-merge February 15, 2026 17:07
@Keviro Keviro merged commit 73060ed into version/1.21.11 Feb 15, 2026
@Keviro Keviro deleted the feat/awaiting-transfers branch February 15, 2026 17:07
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.

3 participants