mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-11 17:47:44 +01:00
Added an error stating the lack of SQLite connector
This commit is contained in:
parent
616950e54a
commit
1c3be2c7eb
@ -26,6 +26,13 @@ public class ItemDatabase {
|
||||
private Table table;
|
||||
|
||||
public ItemDatabase() {
|
||||
try {
|
||||
Class.forName("org.sqlite.JDBC");
|
||||
} catch (ClassNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
ChestShop.getBukkitLogger().severe("You haven't got any SQLite JDBC installed!");
|
||||
}
|
||||
|
||||
Database database = new Database("jdbc:sqlite:" + new File(ChestShop.getFolder(), "items.db").getAbsolutePath());
|
||||
yaml = new Yaml(new YamlConstructor(), new YamlRepresenter(), new DumperOptions());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user