summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-03-02 21:48:03 +1100
committermd_5 <md_5@bigpond.com>2012-03-02 21:48:03 +1100
commit7b8a9d60d7da4cba5013671920b1064f711b4538 (patch)
tree7d1d954de52cafa24c7ef5194a40297eb86addbd /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
parent3b76bbfe78914230a6d0c24567eb31465f0b0ef1 (diff)
downloadEssentials-7b8a9d60d7da4cba5013671920b1064f711b4538.tar
Essentials-7b8a9d60d7da4cba5013671920b1064f711b4538.tar.gz
Essentials-7b8a9d60d7da4cba5013671920b1064f711b4538.tar.lz
Essentials-7b8a9d60d7da4cba5013671920b1064f711b4538.tar.xz
Essentials-7b8a9d60d7da4cba5013671920b1064f711b4538.zip
I honestly have no idea if this works, but on paper it does. Will be great, now to figure out how to test.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
index 539ff208b..9f1cc122a 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
@@ -66,10 +66,6 @@ public class EssentialsConnect
@Override
public void onReload()
{
- if (protect.getStorage() != null)
- {
- protect.getStorage().onPluginDeactivation();
- }
/*
* for (ProtectConfig protectConfig : ProtectConfig.values()) { if (protectConfig.isList()) {
@@ -97,7 +93,7 @@ public class EssentialsConnect
settings.getData().getDbuser(),
settings.getData().getDbpassword()));
}
- catch (PropertyVetoException ex)
+ catch (ClassNotFoundException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
}
@@ -108,15 +104,15 @@ public class EssentialsConnect
{
protect.setStorage(new ProtectedBlockSQLite("jdbc:sqlite:plugins/Essentials/EssentialsProtect.db"));
}
- catch (PropertyVetoException ex)
+ catch (ClassNotFoundException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
}
}
- /*if (protect.getSettingBool(ProtectConfig.memstore))
- {
- protect.setStorage(new ProtectedBlockMemory(protect.getStorage(), protect));
- }*/
+ /*
+ * if (protect.getSettingBool(ProtectConfig.memstore)) { protect.setStorage(new
+ * ProtectedBlockMemory(protect.getStorage(), protect)); }
+ */
}
finally