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

Starting to break Protect

This commit is contained in:
snowleo
2012-01-03 00:07:44 +01:00
parent d2c1b24e4b
commit 7153676137
8 changed files with 64 additions and 34 deletions

View File

@@ -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"))
{