Skip to content

Feat/queue api#22

Merged
Keviro merged 6 commits intoversion/1.21.11from
feat/queue-api
Feb 21, 2026
Merged

Feat/queue api#22
Keviro merged 6 commits intoversion/1.21.11from
feat/queue-api

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

No description provided.

@TheBjoRedCraft TheBjoRedCraft self-assigned this Feb 21, 2026
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

Adds queue-based routing for the Event NPC, including a bypass permission, and wires in the queue API dependency. Also updates a lobby teleport location and bumps the plugin snapshot version.

Changes:

  • Route Event NPC interaction through the queue API (with optional queue bypass permission).
  • Add surf.lobby.queue.bypass permission and require the surf-queue-paper server dependency.
  • Adjust SURVIVAL_TELEPORT coordinates/yaw and bump project version.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/main/kotlin/dev/slne/surf/lobby/utils/PermissionRegistry.kt Adds QUEUE_BYPASS permission node for skipping the queue.
src/main/kotlin/dev/slne/surf/lobby/utils/Locations.kt Updates survival teleport destination coordinates and facing.
src/main/kotlin/dev/slne/surf/lobby/hook/npc/SurfNpcHook.kt Uses queue API to enqueue players for the event server and supports bypass.
gradle.properties Bumps snapshot version to …3.0.6-SNAPSHOT.
build.gradle.kts Adds queue API dependency and marks surf-queue-paper as required.

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

Comment on lines +318 to +319
} ?: error("Event server with name ${lobbyConfig.eventServerName} not found")
}
Copy link

Copilot AI Feb 21, 2026

Choose a reason for hiding this comment

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

queueToEventServer ends with ?: error(...) if the configured event server can't be found. Since this method is triggered by a player interaction, this will throw an exception at runtime for every click (spamming logs) instead of failing gracefully. Prefer logging the misconfiguration once and sending the player an error message, then returning without throwing.

Copilot uses AI. Check for mistakes.
@Keviro Keviro merged commit 3254ced into version/1.21.11 Feb 21, 2026
@Keviro Keviro deleted the feat/queue-api branch February 21, 2026 12:21
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