summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectServerListener.java
blob: 5642ef0dd1bf421595eaea403359943cb16a3eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
			}
			
		}
	}
}