From 8d77a3f941606f01b8aa63651a28fd3a127360ed Mon Sep 17 00:00:00 2001 From: ementalo Date: Thu, 28 Feb 2013 21:02:37 +0000 Subject: [Breaking] Remove protect database functionality for protecting signs and rails. - Removed config entries - Removed c3p0 lib --- .../essentials/protect/EssentialsConnect.java | 41 +--------------------- 1 file changed, 1 insertion(+), 40 deletions(-) (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java') 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 -- cgit v1.2.3