Skip to content

Fix async Bukkit access in spawn and other commands - #1458

Open
YoshiroMaximus wants to merge 3 commits into
EternalCodeTeam:masterfrom
YoshiroMaximus:master
Open

YoshiroMaximus wants to merge 3 commits into
EternalCodeTeam:masterfrom
YoshiroMaximus:master

Conversation

@YoshiroMaximus

@YoshiroMaximus YoshiroMaximus commented Oct 13, 2026 •

Copy link
Copy Markdown

Description

/setspawn was marked async even though it reads the player’s location. Run it on the server thread and handle a missing spawn value safely. Also run jail setup/removal, /setslot, and /eternalcore reload on the server thread to avoid unsafe asynchronous Bukkit access.

No additional dependencies are required.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • :eternalcore-core:test passed.
  • :eternalcore-plugin:shadowJar passed.
  • Tested on a Paper server.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

fixed it from not working after using the /setspawn command
handlers run on the normal command thread now.
@YoshiroMaximus
YoshiroMaximus requested a review from a team as a code owner October 13, 2026 01:57

This branch has not been deployed

No deployments
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.

1 participant