diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-08-19 23:41:28 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-08-19 23:41:28 +0100 |
commit | 1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe (patch) | |
tree | 266de57d0d9c2213f4150f88a0345eb56fab68f5 /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java | |
parent | 2c965ce9aee030fcc94e564506ffd592a4ac0346 (diff) | |
parent | f0f37a16714123694e7cc6f7de07161c6ccd71a2 (diff) | |
download | Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar.gz Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar.lz Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar.xz Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.zip |
Merge branch 'antibuild' into 2.9
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java index 7503c334c..e17264ca9 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsConnect.java @@ -2,7 +2,6 @@ package com.earth2me.essentials.protect; import com.earth2me.essentials.IConf; import com.earth2me.essentials.IEssentials; -import com.earth2me.essentials.User; import com.earth2me.essentials.protect.data.ProtectedBlockMemory; import com.earth2me.essentials.protect.data.ProtectedBlockMySQL; import com.earth2me.essentials.protect.data.ProtectedBlockSQLite; @@ -10,8 +9,6 @@ import java.beans.PropertyVetoException; import static com.earth2me.essentials.I18n._; import java.util.logging.Level; import java.util.logging.Logger; -import org.bukkit.Location; -import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; @@ -43,23 +40,6 @@ public class EssentialsConnect return ess; } - public void alert(final User user, final String item, final String type) - { - 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); - for (Player p : ess.getServer().getOnlinePlayers()) - { - final User alertUser = ess.getUser(p); - if (alertUser.isAuthorized("essentials.protect.alerts")) - { - alertUser.sendMessage(warnMessage); - } - } - } - private class ProtectReloader implements IConf { |