Open Eelviny opened 10 years ago
That is surprising, I would have thought it would have complained about that before this.
I'll probably have to make the Vault api calls synchronous, might slow the player login process a bit.
To make sure I'm testing against the same stuff that generated the error, can you tell me the exact version of Vault and CubeEngine that generated the error?
Sorry - didn't see your message! Vault 1.2.31 CubeEngine is still in development - there is no version as such to tell you, but here's the tree: https://github.com/CubeEngineDev/CubeEngine/tree/5d870f89 https://docs.google.com/file/d/0B3TNkHJpuS42TXR5cTNCcTBLY3M/edit The main cubeengine jar is needed, along with the vaultlink, selector, conomy and roles modules (vaultlink currently only uses hard dependencies)
Just to sum up what I wrote in our issue: We internally enforce single threaded access to worlds to prevent threading issues from our side.
I'll either need to revise the permission handler for Vault or write one specific to Cube. It may be a while, there are other issues I have to take care of first...including UUID support.
I've a concern about writing a wrapper for something whose API might be changing, though. If Cube is alpha enough to not have releases, that sounds like a moving target to me. :)
Well that should not be necessary. But accessing anything world related in an async way is risky and can cause serious problems. That's the reason, why we internally prevent ourselves from accidentally doing so. The CubeEngine is getting more stable these days and "not having releases" is not actually true, our release are just not very often atm. The vault API is subject to change sooner or later though.
Don't know if this has been reported already, but using the latest version 2.2.2.398, this error is shown after every player login and logoff: