From 3d96c9caaf19cc1e6849295067d2a3ac01f05351 Mon Sep 17 00:00:00 2001 From: ementalo Date: Wed, 27 Jun 2012 10:15:20 +0100 Subject: Use essentials data folder location for protect db --- .../src/com/earth2me/essentials/protect/EssentialsConnect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java') diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java index 539ff208b..85a4913f0 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java @@ -105,8 +105,8 @@ public class EssentialsConnect else { try - { - protect.setStorage(new ProtectedBlockSQLite("jdbc:sqlite:plugins/Essentials/EssentialsProtect.db")); + { + protect.setStorage(new ProtectedBlockSQLite("jdbc:sqlite:" + ess.getDataFolder() + "/EssentialsProtect.db")); } catch (PropertyVetoException ex) { -- cgit v1.2.3