mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-22 00:27:36 +01:00
Add an info in console when player login from other server
This commit is contained in:
parent
75084e62ec
commit
12de593ec4
@ -3,6 +3,7 @@ package fr.xephi.authme.hooks;
|
|||||||
import com.google.common.io.ByteArrayDataInput;
|
import com.google.common.io.ByteArrayDataInput;
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
import fr.xephi.authme.AuthMe;
|
import fr.xephi.authme.AuthMe;
|
||||||
|
import fr.xephi.authme.ConsoleLogger;
|
||||||
import fr.xephi.authme.cache.auth.PlayerAuth;
|
import fr.xephi.authme.cache.auth.PlayerAuth;
|
||||||
import fr.xephi.authme.cache.auth.PlayerCache;
|
import fr.xephi.authme.cache.auth.PlayerCache;
|
||||||
|
|
||||||
@ -66,11 +67,13 @@ public class BungeeCordMessage implements PluginMessageListener {
|
|||||||
{
|
{
|
||||||
PlayerCache.getInstance().addPlayer(auth);
|
PlayerCache.getInstance().addPlayer(auth);
|
||||||
plugin.database.setLogged(name);
|
plugin.database.setLogged(name);
|
||||||
|
ConsoleLogger.info("Player " + auth.getNickname() + " has logged in from one of your server!");
|
||||||
}
|
}
|
||||||
else if (args[1].equalsIgnoreCase("logout"))
|
else if (args[1].equalsIgnoreCase("logout"))
|
||||||
{
|
{
|
||||||
PlayerCache.getInstance().removePlayer(name);
|
PlayerCache.getInstance().removePlayer(name);
|
||||||
plugin.database.setUnlogged(name);
|
plugin.database.setUnlogged(name);
|
||||||
|
ConsoleLogger.info("Player " + auth.getNickname() + " has logged out from one of your server!");
|
||||||
}
|
}
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{}
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user