summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-19 11:11:59 +0200
committersnowleo <schneeleo@gmail.com>2011-07-19 11:11:59 +0200
commit6a156ede687c4a43b042ce6d7aa4ab2be8a19794 (patch)
treeb12aad6d7c47e63495f56a7042780c2a773fa95c
parent4a963b22f128756340d59ca601b1625637ca9aa5 (diff)
downloadEssentials-6a156ede687c4a43b042ce6d7aa4ab2be8a19794.tar
Essentials-6a156ede687c4a43b042ce6d7aa4ab2be8a19794.tar.gz
Essentials-6a156ede687c4a43b042ce6d7aa4ab2be8a19794.tar.lz
Essentials-6a156ede687c4a43b042ce6d7aa4ab2be8a19794.tar.xz
Essentials-6a156ede687c4a43b042ce6d7aa4ab2be8a19794.zip
Removing the annoying c3p0 start message.
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java
index ed02291cf..bae792d06 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java
@@ -27,12 +27,26 @@ import org.bukkit.plugin.java.JavaPlugin;
public class EssentialsProtect extends JavaPlugin implements IConf, IProtect
{
private static final Logger LOGGER = Logger.getLogger("Minecraft");
+ private static com.mchange.v2.log.MLogger C3P0logger;
private final transient Map<ProtectConfig, Boolean> settingsBoolean = new EnumMap<ProtectConfig, Boolean>(ProtectConfig.class);
private final transient Map<ProtectConfig, String> settingsString = new EnumMap<ProtectConfig, String>(ProtectConfig.class);
private final transient Map<ProtectConfig, List<Integer>> settingsList = new EnumMap<ProtectConfig, List<Integer>>(ProtectConfig.class);
private transient IProtectedBlock storage = null;
public transient IEssentials ess = null;
+ @Override
+ public void onLoad()
+ {
+ C3P0logger = com.mchange.v2.log.MLog.getLogger(com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.class);
+ C3P0logger.setFilter(new Filter()
+ {
+ public boolean isLoggable(LogRecord lr)
+ {
+ return lr.getLevel() != Level.INFO;
+ }
+ });
+ }
+
public void onEnable()
{
final PluginManager pm = this.getServer().getPluginManager();
@@ -61,7 +75,7 @@ public class EssentialsProtect extends JavaPlugin implements IConf, IProtect
pm.registerEvent(Type.LIGHTNING_STRIKE, weatherListener, Priority.Highest, this);
pm.registerEvent(Type.THUNDER_CHANGE, weatherListener, Priority.Highest, this);
pm.registerEvent(Type.WEATHER_CHANGE, weatherListener, Priority.Highest, this);
-
+
reloadConfig();
ess.addReloadListener(this);
if (!this.getDescription().getVersion().equals(ess.getDescription().getVersion()))