11-07-2016, 11:23 PM
(11-06-2016, 08:46 AM)Cl1608Ho Wrote: @xoft again, "next to the cuberite binary" isn't the whole truth.Yup, i've changed my code a little bit to make load the sqlite3 from the plugin's folder
Current folder means from where you execute stuff, which should he the Server directory but doesn't have to be.
Anyway, shouldn't be "current directory" for a plugin its own directory? I would expect that cuberite is simulating that
<shcode=lua>
db = sqlite3.open('Plugins/EggWars/storage.sqlite3')
</shcode>
again the default directory is the main cuberite directory.