diff options
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java | 16 |
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 |