Skip to content

Feat/launcher#47

Open
TheBjoRedCraft wants to merge 28 commits into
version/26.1from
feat/launcher
Open

Feat/launcher#47
TheBjoRedCraft wants to merge 28 commits into
version/26.1from
feat/launcher

Conversation

@TheBjoRedCraft

Copy link
Copy Markdown
Member

No description provided.

# Conflicts:
#	gradle.properties
#	surf-core-velocity/src/main/kotlin/dev/slne/surf/core/velocity/permission/PermissionList.kt
# Conflicts:
#	surf-core-api/surf-core-api-common/build.gradle.kts
Copilot AI review requested due to automatic review settings June 20, 2026 20:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new core launcher module that can start/monitor a Minecraft server process (including Redis bootstrap, crash/unreachable detection, and optional plugin auto-updates), and wires Paper/Velocity to avoid double-firing SurfServerStartEvent when launched via the launcher. Also introduces Redis events for service status notifications and updates build tooling (new included modules + Gradle wrapper/version bump).

Changes:

  • Introduce surf-core-launcher (API + server) with process launch, Redis bootstrap, plugin update checking, and MC reachability/crash monitoring.
  • Add service-status Redis event + Velocity-side notification listener and a command to opt out of those notifications.
  • Adjust Paper/Velocity startup behavior to skip local start-event fire when launched by the core launcher; move SurfEventFireRedisEvent into the API module.

Reviewed changes

Copilot reviewed 33 out of 34 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
surf-core-velocity/src/main/kotlin/dev/slne/surf/core/velocity/VelocityMain.kt Skip firing SurfServerStartEvent when launched by core launcher.
surf-core-velocity/src/main/kotlin/dev/slne/surf/core/velocity/redis/listener/VelocityRedisListener.kt Listen for service status Redis events and notify players (with opt-out).
surf-core-velocity/src/main/kotlin/dev/slne/surf/core/velocity/permission/PermissionList.kt Add permission for toggling service status messages.
surf-core-velocity/src/main/kotlin/dev/slne/surf/core/velocity/command/CoreCommand.kt Add toggle command and display launcher state in version output.
surf-core-velocity/build.gradle.kts Depend on launcher API.
surf-core-paper/src/main/kotlin/dev/slne/surf/core/paper/PaperBootstrap.kt Skip firing SurfServerStartEvent when launched by core launcher.
surf-core-paper/src/main/kotlin/dev/slne/surf/core/paper/command/SurfCoreCommand.kt Adds (commented-out) debug commands; otherwise unchanged behavior.
surf-core-paper/build.gradle.kts Depend on launcher API.
surf-core-launcher/surf-core-launcher-server/src/main/resources/logging.properties Add JUL console formatting for launcher output.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/updater/UpdatablePlugin.kt Model for updateable plugins and GitHub release URL derivation.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/updater/process/PluginUpdater.kt Concurrent update check + download/backup logic.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/updater/process/PluginScanner.kt Scan plugin jars and read metadata from Velocity/Paper descriptors.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/updater/github/GitHubClient.kt Minimal GitHub API client for release fetch + asset download.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/updater/cooldown/UpdateCooldownTracker.kt Persisted cooldown tracking to avoid repeated update attempts.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/ping/ping-util.kt Packet utilities for Minecraft status ping.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/ping/MinecraftServerPinger.kt Monitor process exit + periodic reachability checks, publish status events.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/CoreLauncherEnvironment.kt Read server memory/port from environment.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/CoreLauncher.kt Main launcher orchestration: Redis, updating, process start, monitoring, shutdown.
surf-core-launcher/surf-core-launcher-server/src/main/kotlin/dev/slne/surf/core/launcher/server/config/CoreLauncherConfig.kt Launcher config model + config file binding.
surf-core-launcher/surf-core-launcher-server/build.gradle.kts New standalone app module build + main class manifest.
surf-core-launcher/surf-core-launcher-api/src/main/kotlin/dev/slne/surf/core/launcher/api/redis/ServiceStatusRedisEvent.kt New Redis event type for service status.
surf-core-launcher/surf-core-launcher-api/src/main/kotlin/dev/slne/surf/core/launcher/api/LauncherConstants.kt Shared constant for launcher system property flag.
surf-core-launcher/surf-core-launcher-api/build.gradle.kts New launcher API module build/publishing.
surf-core-core/surf-core-core-common/src/main/kotlin/dev/slne/surf/core/core/common/event/SurfEventBus.kt Update import to new SurfEventFireRedisEvent package.
surf-core-core/surf-core-core-common/src/main/kotlin/dev/slne/surf/core/core/common/event/LocalSurfEventBusListener.kt Update import to new SurfEventFireRedisEvent package.
surf-core-api/surf-core-api-common/src/main/kotlin/dev/slne/surf/core/api/common/server/state/SurfServiceStatus.kt New enum for CRASHED/UNREACHABLE service states.
surf-core-api/surf-core-api-common/src/main/kotlin/dev/slne/surf/core/api/common/event/redis/SurfEventFireRedisEvent.kt Move Redis event wrapper into API package.
surf-core-api/surf-core-api-common/build.gradle.kts Enable SurfRedis for API-common module.
settings.gradle.kts Include new launcher modules.
gradlew.bat Update wrapper script logic/exit handling.
gradlew Update wrapper metadata link.
gradle/wrapper/gradle-wrapper.properties Bump Gradle distribution + wrapper settings.
gradle.properties Bump project version.

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

TheBjoRedCraft and others added 3 commits June 21, 2026 00:53
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants