...it works as expected.
My understanding is that the two lines above should be fairly equivalent, except that the first one is run synchronously and the second is run asynchronously, but I'm not sure if that's correct. Regardless, I don't think that the code above should prevent players from joining the server.
Follow this template except for feature requests. Use pastebin when providing /protocol dump and any relevant errors.
Make sure you've done the following:
/reload
Debug paste link: https://pastebin.com/TPFuRzU9 (console error message) https://pastebin.com/Ju8N1Xqs (protocol dump)
Description and relevant errors: I created a plugin with the following (Kotlin) code:
Now, whenever I try to log into the server, there's an error and I'm unable to.
When I make the following replacement:
...it works as expected. My understanding is that the two lines above should be fairly equivalent, except that the first one is run synchronously and the second is run asynchronously, but I'm not sure if that's correct. Regardless, I don't think that the code above should prevent players from joining the server.