From 1de086c09036bcf5b63722269a166423963c7556 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Sat, 11 Jun 2016 18:05:11 +0200 Subject: [PATCH] Fix 755 --- .../xephi/authme/hooks/BungeeCordMessage.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java b/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java index 22a7ae087..47e7d17da 100644 --- a/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java +++ b/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java @@ -9,6 +9,7 @@ import fr.xephi.authme.cache.auth.PlayerAuth; import fr.xephi.authme.cache.auth.PlayerCache; import fr.xephi.authme.datasource.DataSource; import fr.xephi.authme.security.crypts.HashedPassword; +import fr.xephi.authme.settings.properties.SecuritySettings; import fr.xephi.authme.util.BukkitService; import org.bukkit.entity.Player; import org.bukkit.plugin.messaging.PluginMessageListener; @@ -61,16 +62,20 @@ public class BungeeCordMessage implements PluginMessageListener { plugin.sessions.remove(name); } //END - ConsoleLogger.info("Player " + auth.getNickname() - + " has logged in from one of your server!"); + + if (!plugin.getSettings().getProperty(SecuritySettings.REMOVE_SPAM_FROM_CONSOLE)) { + ConsoleLogger.info("Player " + auth.getNickname() + " has logged in from one of your server!"); + } } else if ("logout".equals(act)) { playerCache.removePlayer(name); dataSource.setUnlogged(name); - ConsoleLogger.info("Player " + auth.getNickname() - + " has logged out from one of your server!"); + if (!plugin.getSettings().getProperty(SecuritySettings.REMOVE_SPAM_FROM_CONSOLE)) { + ConsoleLogger.info("Player " + auth.getNickname() + " has logged out from one of your server!"); + } } else if ("register".equals(act)) { - ConsoleLogger.info("Player " + auth.getNickname() - + " has registered out from one of your server!"); + if (!plugin.getSettings().getProperty(SecuritySettings.REMOVE_SPAM_FROM_CONSOLE)) { + ConsoleLogger.info("Player " + auth.getNickname() + " has registered out from one of your server!"); + } } else if ("changepassword".equals(act)) { final String password = args[2]; final String salt = args.length >= 4 ? args[3] : null;