1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +02:00

Fix startup errors

This commit is contained in:
snowleo
2012-10-06 11:06:52 +02:00
parent 21b2e4b072
commit f2e31e56c5
10 changed files with 32 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import static net.ess3.I18n._;
import net.ess3.api.IEssentials;
import net.ess3.bukkit.BukkitPlugin;
import org.bukkit.plugin.Plugin;
@@ -19,7 +20,7 @@ public class EssentialsConnect
{
LOGGER.log(Level.WARNING, _("versionMismatchAll"));
}
ess = (IEssentials)essPlugin;
ess = ((BukkitPlugin)essPlugin).getEssentials();
protect = (IProtect)essProtect;
protect.setSettings(new ProtectHolder(ess));
}