I'm making a plugin and need to store some data.
I'm using sqlite3 and everytime i run my cuberite server i see this error.
[10:45:24] Can\'t load plugin TestPlugin because of an initialization error in file Plugins/TestPlugin/test.lua: 2 (no such table: table)
Here's my code
db = sqlite3.open(\'test.sqlite3\') LOG(db.rows(\'SELECT * FROM table\')) db:close()
EDIT:
i just realised that i'm an idiot the db files were located in cuberite's folder not in the plugin's folder
I'm using sqlite3 and everytime i run my cuberite server i see this error.
[10:45:24] Can\'t load plugin TestPlugin because of an initialization error in file Plugins/TestPlugin/test.lua: 2 (no such table: table)
Here's my code
db = sqlite3.open(\'test.sqlite3\') LOG(db.rows(\'SELECT * FROM table\')) db:close()
EDIT:
i just realised that i'm an idiot the db files were located in cuberite's folder not in the plugin's folder