Closed ianlibanio closed 2 years ago
@ianlibanio I think I can see that you intended this to go into your fork, not into upstream, but just wanted to let you know that I noticed in your code you're calling Bukkit.unloadWorld in your completableFuture.thenRun block without wrapping in Bukkit.getScheduler.runTask - this will result in modifying the worlds off the main thread. The Bukkit API is not thread-safe, and this may result in unexpected behaviour. Hope this helps :)
@ComputerNerd100 hi, so the PR is for here, but noticed those mistakes, so I'll create it again fixing this.
When running the unload command without someone on the island, the command wouldn't work.
This PR fix this issue.