1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-11 00:55:10 +02:00

More logging!

This commit is contained in:
drtshock
2013-05-02 22:19:28 -05:00
parent f326d0ad0c
commit 3ff12f6bf5
17 changed files with 48 additions and 60 deletions

View File

@@ -12,7 +12,6 @@ import org.bukkit.plugin.Plugin;
public class EssentialsConnect
{
private static final Logger LOGGER = Logger.getLogger("Minecraft");
private final IEssentials ess;
private final IAntiBuild antib;
@@ -20,7 +19,7 @@ public class EssentialsConnect
{
if (!essProtect.getDescription().getVersion().equals(essPlugin.getDescription().getVersion()))
{
LOGGER.log(Level.WARNING, _("§4Version mismatch! Please update all Essentials jars to the same version."));
essPlugin.getLogger().log(Level.WARNING, _("§4Version mismatch! Please update all Essentials jars to the same version."));
}
ess = ((BukkitPlugin)essPlugin).getEssentials();
antib = (IAntiBuild)essProtect;
@@ -43,7 +42,7 @@ public class EssentialsConnect
final Location loc = user.getLocation();
final String warnMessage = _(
"alertFormat", user.getName(), type, item, loc.getWorld().getName() + "," + loc.getBlockX() + "," + loc.getBlockY() + "," + loc.getBlockZ());
LOGGER.log(Level.WARNING, warnMessage);
ess.getLogger().log(Level.WARNING, warnMessage);
for (Player p : ess.getServer().getOnlinePlayers())
{
if (Permissions.ALERTS.isAuthorized(p))