summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java
new file mode 100644
index 000000000..5642ef0dd
--- /dev/null
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java
@@ -0,0 +1,34 @@
+package com.earth2me.essentials.protect;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.bukkit.event.server.PluginEnableEvent;
+import org.bukkit.event.server.ServerListener;
+
+
+public class EssentialsProtectServerListener extends ServerListener
+{
+ private EssentialsProtect parent;
+ Logger log = Logger.getLogger("minecraft");
+
+ public EssentialsProtectServerListener(EssentialsProtect parent)
+ {
+ this.parent = parent;
+ }
+
+ @Override
+ public void onPluginEnable(PluginEnableEvent event)
+ {
+ if ("WorldGuard".equals(event.getPlugin().getDescription().getName()))
+ {
+ String[] features = new String[] {"disable water flow", "disable lava flow", "disable water bucket flow", "disable all fire spread", "disable tnt explosion", "disable creeper explosion", "disable all damage types"};
+ log.log(Level.WARNING, "[EssentialsProtect] WorldGuard was detected, in the near future the following features of Protect will be disabled in favor of WorldGuard's versions");
+
+ for (String s : features)
+ {
+ log.log(Level.WARNING, s);
+ }
+
+ }
+ }
+}