Skip to content

Feat/folia canvas support#29

Open
TheBjoRedCraft wants to merge 4 commits intoversion/1.21.11from
feat/folia-canvas-support
Open

Feat/folia canvas support#29
TheBjoRedCraft wants to merge 4 commits intoversion/1.21.11from
feat/folia-canvas-support

Conversation

@TheBjoRedCraft
Copy link
Member

No description provided.

@TheBjoRedCraft TheBjoRedCraft self-assigned this Mar 11, 2026
Copilot AI review requested due to automatic review settings March 11, 2026 18:58
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.

Pull request overview

Adds CanvasMC support for Folia by introducing Canvas-specific listeners and enabling CanvasMC integration in the build so that world-lock portal blocking and /back-style last-location tracking can work on Canvas/Folia.

Changes:

  • Add CanvasListener handling CanvasMC async portal/teleport events.
  • Allow /world lock and /world unlock on Folia when running on CanvasMC (block only Folia non-Canvas).
  • Enable CanvasMC support in build.gradle.kts via useCanvasMc().

Reviewed changes

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

File Description
src/main/kotlin/dev/slne/surf/essentials/listener/CanvasListener.kt New listener for CanvasMC async portal/teleport events (world lock + last location).
src/main/kotlin/dev/slne/surf/essentials/command/WorldCommand.kt Adjust Folia gating to allow world lock/unlock on CanvasMC.
build.gradle.kts Enable CanvasMC integration for the plugin build.

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

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