mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-05 22:27:23 +02:00
Log notice when chat ignore is blocked by another plugin.
This commit is contained in:
@@ -69,6 +69,8 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
user.sendMessage(_("voiceSilenced"));
|
user.sendMessage(_("voiceSilenced"));
|
||||||
LOGGER.info(_("mutedUserSpeaks", user.getName()));
|
LOGGER.info(_("mutedUserSpeaks", user.getName()));
|
||||||
}
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
final Iterator<Player> it = event.getRecipients().iterator();
|
final Iterator<Player> it = event.getRecipients().iterator();
|
||||||
while (it.hasNext())
|
while (it.hasNext())
|
||||||
{
|
{
|
||||||
@@ -78,6 +80,19 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
it.remove();
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (UnsupportedOperationException ex)
|
||||||
|
{
|
||||||
|
if (ess.getSettings().isDebug())
|
||||||
|
{
|
||||||
|
ess.getLogger().log(Level.INFO, "Ignore could not block chat due to custom chat plugin event.", ex);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ess.getLogger().info("Ignore could not block chat due to custom chat plugin event.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
user.updateActivity(true);
|
user.updateActivity(true);
|
||||||
user.setDisplayNick();
|
user.setDisplayNick();
|
||||||
}
|
}
|
||||||
|
@@ -9,6 +9,7 @@ import java.util.Iterator;
|
|||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.util.logging.Level;
|
||||||
import net.ess3.api.events.LocalChatSpyEvent;
|
import net.ess3.api.events.LocalChatSpyEvent;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
@@ -93,7 +94,7 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer
|
|||||||
{
|
{
|
||||||
if (ess.getSettings().isDebug())
|
if (ess.getSettings().isDebug())
|
||||||
{
|
{
|
||||||
ess.getLogger().info("Plugin triggered custom chat event, local chat handling aborted.");
|
ess.getLogger().log(Level.INFO, "Plugin triggered custom chat event, local chat handling aborted.", ex);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user