Output more informational messages by default

This commit is contained in:
games647
2017-08-19 21:53:07 +02:00
parent 551441cdc4
commit 82cb25f809
4 changed files with 7 additions and 10 deletions

View File

@ -1,8 +1,5 @@
# FastLogin
[![Build Status](https://travis-ci.org/games647/FastLogin.svg?branch=master)](https://travis-ci.org/games647/FastLogin)
[![Donate Button](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8ZBULMAPN7MZC)
Checks if a Minecraft player has a paid account (premium). If so, they can skip offline authentication (auth plugins).
So they don't need to enter passwords. This is also called auto login (auto-login).

View File

@ -46,9 +46,9 @@ public class BungeeCordListener implements PluginMessageListener {
}
ByteArrayDataInput dataInput = ByteStreams.newDataInput(message);
String subchannel = dataInput.readUTF();
plugin.getLogger().log(Level.FINEST, "Received plugin message for subchannel {0} from {1}"
, new Object[]{subchannel, player});
String subChannel = dataInput.readUTF();
plugin.getLogger().log(Level.FINEST, "Received plugin message for sub channel {0} from {1}"
, new Object[]{subChannel, player});
String playerName = dataInput.readUTF();
@ -64,7 +64,7 @@ public class BungeeCordListener implements PluginMessageListener {
//fail if BungeeCord support is disabled (id = null)
if (proxyIds.contains(sourceId)) {
readMessage(checkedPlayer, subchannel, playerName, player);
readMessage(checkedPlayer, subChannel, playerName, player);
}
}
}

View File

@ -82,7 +82,7 @@ public class VerifyResponseTask implements Runnable {
String username = session.getUsername();
if (plugin.getCore().getApiConnector().hasJoinedServer(session, serverId)) {
plugin.getLogger().log(Level.FINE, "Player {0} has a verified premium account", username);
plugin.getLogger().log(Level.INFO, "Player {0} has a verified premium account", username);
session.setVerified(true);
setPremiumUUID(session.getUuid());

View File

@ -71,7 +71,7 @@ public abstract class ForceLoginMangement<P extends C, C, L extends LoginSession
}
public boolean forceRegister(P player) {
core.getPlugin().getLogger().log(Level.FINE, "Register player {0}", getName(player));
core.getPlugin().getLogger().log(Level.INFO, "Register player {0}", getName(player));
String generatedPassword = core.getPasswordGenerator().getRandomPassword(player);
boolean success = core.getAuthPluginHook().forceRegister(player, generatedPassword);
@ -86,7 +86,7 @@ public abstract class ForceLoginMangement<P extends C, C, L extends LoginSession
}
public boolean forceLogin(P player) {
core.getPlugin().getLogger().log(Level.FINE, "Logging player {0} in", getName(player));
core.getPlugin().getLogger().log(Level.INFO, "Logging player {0} in", getName(player));
boolean success = core.getAuthPluginHook().forceLogin(player);
if (success) {