Fix SQLite file not found issue #2371
Merged
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When OP customize bukkit/spigot plugins directory location, SQLite file will still on default directory.
It will cause directory not found exception. Also let SQLite file not correct in the plugin directory.
for example, my server use following script to execute server
Our directory structure is as following:
In current version,
authme.db
will create atserver/configs/vanilla/plugins/authme/authme.db
, and if directory is no exist, it will raise exception and stop server.Other plugin config files (e.g.
config.yml
will locate onserver/plugins/authme/
. The db file and config file not on the same directory. It not out expectation.The pull request wanna solve this issue. I found the path of db file is hardcode, so I edit to use variable
this.dataFolder
and useFile.separator
to concat the path.