1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-26 06:09:15 +02:00

I honestly have no idea if this works, but on paper it does. Will be great, now to figure out how to test.

This commit is contained in:
md_5
2012-03-02 21:48:03 +11:00
parent 3b76bbfe78
commit 7b8a9d60d7
10 changed files with 42 additions and 119 deletions

View File

@@ -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