summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect
diff options
context:
space:
mode:
authorementalo <ementalodev@gmx.co.uk>2012-06-27 10:15:20 +0100
committerementalo <ementalodev@gmx.co.uk>2012-06-27 10:15:20 +0100
commit3d96c9caaf19cc1e6849295067d2a3ac01f05351 (patch)
treec962dceeff92db0077edce7d6026312bb68b24d9 /EssentialsProtect
parentc5d93a7e5497f0b17f9b86cbf2561f68945b7f29 (diff)
downloadEssentials-3d96c9caaf19cc1e6849295067d2a3ac01f05351.tar
Essentials-3d96c9caaf19cc1e6849295067d2a3ac01f05351.tar.gz
Essentials-3d96c9caaf19cc1e6849295067d2a3ac01f05351.tar.lz
Essentials-3d96c9caaf19cc1e6849295067d2a3ac01f05351.tar.xz
Essentials-3d96c9caaf19cc1e6849295067d2a3ac01f05351.zip
Use essentials data folder location for protect db
Diffstat (limited to 'EssentialsProtect')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java4
1 files changed, 2 insertions, 2 deletions
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)
{