Added an error stating the lack of SQLite connector

This commit is contained in:
Acrobot 2013-01-29 21:02:20 +01:00
parent 616950e54a
commit 1c3be2c7eb
1 changed files with 7 additions and 0 deletions

View File

@ -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());