Log player handling

Related #354
This commit is contained in:
games647
2020-05-23 21:39:47 +02:00
parent 5c5b7384a4
commit 286b755ee3
4 changed files with 8 additions and 4 deletions

View File

@ -72,7 +72,7 @@ Possible values: `Premium`, `Cracked`, `Unknown`
* Run Spigot (or a fork e.g. Paper) and/or BungeeCord (or a fork e.g. Waterfall) in offline mode
* An auth plugin. Supported plugins
### Bukkit/Spigot/Paper
### Spigot/Paper
* [AuthMe (5.X)](https://dev.bukkit.org/bukkit-plugins/authme-reloaded/)
* [xAuth](https://dev.bukkit.org/bukkit-plugins/xauth/)
@ -97,7 +97,7 @@ This plugin performs network requests to:
## How to install
### Bukkit/Spigot/Paper
### Spigot/Paper
1. Download and install ProtocolLib/ProtocolSupport
2. Download and install FastLogin (or FastLoginBukkit for newer versions)

View File

@ -81,8 +81,11 @@ public class ConnectListener implements Listener {
return;
}
preLoginEvent.registerIntent(plugin);
InitialHandler initialHandler = (InitialHandler) connection;
String username = initialHandler.getLoginRequest().getData();
plugin.getLog().info("Incoming login request for {} from {}", username, initialHandler.getAddress());
preLoginEvent.registerIntent(plugin);
Runnable asyncPremiumCheck = new AsyncPremiumCheck(plugin, preLoginEvent, connection);
plugin.getScheduler().runAsync(asyncPremiumCheck);
}

View File

@ -21,6 +21,7 @@ public abstract class JoinManagement<P extends C, C, S extends LoginSource> {
}
public void onLogin(String username, S source) {
core.getPlugin().getLog().info("Handling player {}", username);
StoredProfile profile = core.getStorage().loadProfile(username);
if (profile == null) {
return;

View File

@ -6,7 +6,7 @@
# https://github.com/games647/FastLogin/blob/master/core/src/main/resources/config.yml
# This a **very** simple anti bot protection. Recommendation is to use a a dedicated program to approach this
# problem. Low level firewalls like iptables, ufw are more efficient than a Minecraft plugin. TCP reverse
# problem. Low level firewalls like uwf (or iptables direct) are more efficient than a Minecraft plugin. TCP reverse
# proxies could also be used and offload some work even to different host.
#
# The settings wil limit how many connections this plugin will handle. After hitting this limit. FastLogin will