summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-03 21:37:36 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-03 21:37:36 +0000
commitcb55472fe64a7adfd1524100ca27b70d42197355 (patch)
treeb2d1e2cf68ba5289860ea32987fcd993cf904c95 /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java
parent71b7c1d524cb28b17ec02ffa00bac0016bfb8c51 (diff)
downloadEssentials-cb55472fe64a7adfd1524100ca27b70d42197355.tar
Essentials-cb55472fe64a7adfd1524100ca27b70d42197355.tar.gz
Essentials-cb55472fe64a7adfd1524100ca27b70d42197355.tar.lz
Essentials-cb55472fe64a7adfd1524100ca27b70d42197355.tar.xz
Essentials-cb55472fe64a7adfd1524100ca27b70d42197355.zip
[trunk/protect] Adding warning for changes coming soon to protect in regards to worldguard
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1332 e251c2fe-e539-e718-e476-b85c1f46cddb
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);
+ }
+
+ }
+ }
+}