diff options
author | snowleo <schneeleo@gmail.com> | 2012-01-03 00:07:44 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-01-03 00:07:44 +0100 |
commit | 7153676137a23f6780b21682456377b0f86b6fb1 (patch) | |
tree | 7e455830ab2356e9f8a7411dc097ecb86149d428 /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java | |
parent | d2c1b24e4bea0b54b1af2a3f78e78eb2c840b51b (diff) | |
download | Essentials-7153676137a23f6780b21682456377b0f86b6fb1.tar Essentials-7153676137a23f6780b21682456377b0f86b6fb1.tar.gz Essentials-7153676137a23f6780b21682456377b0f86b6fb1.tar.lz Essentials-7153676137a23f6780b21682456377b0f86b6fb1.tar.xz Essentials-7153676137a23f6780b21682456377b0f86b6fb1.zip |
Starting to break Protect
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java index 7f9ec44e4..6f724ac87 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java @@ -1,13 +1,13 @@ package com.earth2me.essentials.protect; -import com.earth2me.essentials.api.IReload; +import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.api.IEssentials; +import com.earth2me.essentials.api.IReload; import com.earth2me.essentials.api.IUser; 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 static com.earth2me.essentials.I18n._; import java.util.logging.Level; import java.util.logging.Logger; import org.bukkit.Location; @@ -30,7 +30,7 @@ public class EssentialsConnect ess = (IEssentials)essPlugin; protect = (IProtect)essProtect; ProtectReloader pr = new ProtectReloader(); - pr.reloadConfig(); + pr.onReload(); ess.addReloadListener(pr); LOGGER.info(_("loadinfo", essProtect.getDescription().getName(), essProtect.getDescription().getVersion(), "essentials team")); @@ -72,7 +72,8 @@ public class EssentialsConnect { protect.getStorage().onPluginDeactivation(); } - for (ProtectConfig protectConfig : ProtectConfig.values()) + + /*for (ProtectConfig protectConfig : ProtectConfig.values()) { if (protectConfig.isList()) { @@ -87,7 +88,7 @@ public class EssentialsConnect protect.getSettingsBoolean().put(protectConfig, ess.getSettings().getProtectBoolean(protectConfig.getConfigName(), protectConfig.getDefaultValueBoolean())); } - } + }*/ if (protect.getSettingString(ProtectConfig.datatype).equalsIgnoreCase("mysql")) { |