package com.elmakers.mine.bukkit.essentials;

import net.ess3.api.IEssentials;

import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

import com.earth2me.essentials.User;
import com.earth2me.essentials.utils.FormatUtil;
import com.earth2me.essentials.utils.StringUtil;

public class Mailer {
	private final IEssentials essentials;
	
	public Mailer(final Object ess) {
		essentials = (IEssentials)ess;
	}
	
	public boolean sendMail(CommandSender sender, String from, String to, String message) {
		final String mail = ChatColor.UNDERLINE + from + ChatColor.RESET + ": " + StringUtil.sanitizeString(FormatUtil.stripFormat(message));
		
		User toUser = essentials.getUser(to);
		if (toUser == null) {
			sender.sendMessage("Unknown player: " + to);
			return false;
		}
		
		toUser.addMail(mail);
		
		return true;
	}
}

@@ -43,42 +43,8 @@
 s;%0A%0A
-import net.ess3.api.IEssentials;%0A%0A
 impo
@@ -110,16 +110,60 @@
 ender;%0A%0A
+import com.earth2me.essentials.IEssentials;%0A
 import c

Change Mailer reference. I don't know why this is failing. Probably should just remove it.