summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
diff options
context:
space:
mode:
authorementalo <ementalodev@gmx.co.uk>2013-02-28 21:02:37 +0000
committerementalo <ementalodev@gmx.co.uk>2013-02-28 21:02:37 +0000
commit8d77a3f941606f01b8aa63651a28fd3a127360ed (patch)
tree1d4a394b2f60f5760b12aa03872aa7a0b39f8811 /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
parent58b1b34e4442f342af34b10876e7e7097499b15b (diff)
downloadEssentials-8d77a3f941606f01b8aa63651a28fd3a127360ed.tar
Essentials-8d77a3f941606f01b8aa63651a28fd3a127360ed.tar.gz
Essentials-8d77a3f941606f01b8aa63651a28fd3a127360ed.tar.lz
Essentials-8d77a3f941606f01b8aa63651a28fd3a127360ed.tar.xz
Essentials-8d77a3f941606f01b8aa63651a28fd3a127360ed.zip
[Breaking] Remove protect database functionality for protecting signs and rails.
- Removed config entries - Removed c3p0 lib
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java41
1 files changed, 1 insertions, 40 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
index d52e12444..f19362ee2 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java
@@ -3,10 +3,6 @@ package com.earth2me.essentials.protect;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.IConf;
import com.earth2me.essentials.IEssentials;
-import com.earth2me.essentials.protect.data.ProtectedBlockMemory;
-import com.earth2me.essentials.protect.data.ProtectedBlockMySQL;
-import com.earth2me.essentials.protect.data.ProtectedBlockSQLite;
-import java.beans.PropertyVetoException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.plugin.Plugin;
@@ -41,10 +37,6 @@ public class EssentialsConnect
@Override
public void reloadConfig()
{
- if (protect.getStorage() != null)
- {
- protect.getStorage().onPluginDeactivation();
- }
for (ProtectConfig protectConfig : ProtectConfig.values())
{
if (protectConfig.isList())
@@ -61,37 +53,6 @@ public class EssentialsConnect
}
}
-
- if (protect.getSettingString(ProtectConfig.datatype).equalsIgnoreCase("mysql"))
- {
- try
- {
- protect.setStorage(new ProtectedBlockMySQL(
- protect.getSettingString(ProtectConfig.mysqlDB),
- protect.getSettingString(ProtectConfig.dbUsername),
- protect.getSettingString(ProtectConfig.dbPassword)));
- }
- catch (PropertyVetoException ex)
- {
- LOGGER.log(Level.SEVERE, null, ex);
- }
- }
- else
- {
- try
- {
- protect.setStorage(new ProtectedBlockSQLite("jdbc:sqlite:plugins/Essentials/EssentialsProtect.db"));
- }
- catch (PropertyVetoException ex)
- {
- LOGGER.log(Level.SEVERE, null, ex);
- }
- }
- if (protect.getSettingBool(ProtectConfig.memstore))
- {
- protect.setStorage(new ProtectedBlockMemory(protect.getStorage(), protect));
- }
-
}
}
-}
+} \ No newline at end of file