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:
@@ -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
|
||||
|
Reference in New Issue
Block a user