> {
protected final Map > {
this.passwordGenerator = passwordGenerator;
}
- public ConcurrentMap >
+public abstract class ForceLoginManagement >
implements Runnable {
protected final FastLoginCore core;
@@ -14,7 +14,7 @@ public abstract class ForceLoginMangement core, P player) {
+ public ForceLoginManagement(FastLoginCore core, P player) {
this.core = core;
this.player = player;
}
diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java
index 6b24b08d..28a8e96e 100644
--- a/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java
+++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java
@@ -29,7 +29,7 @@ public abstract class JoinManagement {
profile.setLastIp(ip);
try {
if (profile.getUserId() == -1) {
- if (core.getPendingLogins().remove(ip + username) != null && config.get("secondAttemptCracked", false)) {
+ if (core.getPendingLogin().remove(ip + username) != null && config.get("secondAttemptCracked", false)) {
core.getPlugin().getLogger().log(Level.INFO, "Second attempt login -> cracked {0}", username);
//first login request failed so make a cracked session
diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/MojangApiConnector.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/MojangApiConnector.java
index 1fba0727..b853f6fe 100644
--- a/core/src/main/java/com/github/games647/fastlogin/core/shared/MojangApiConnector.java
+++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/MojangApiConnector.java
@@ -112,7 +112,7 @@ public abstract class MojangApiConnector {
return null;
}
- public abstract boolean hasJoinedServer(LoginSession session, String serverId);
+ public abstract boolean hasJoinedServer(LoginSession session, String serverId, InetSocketAddress ip);
protected abstract String getUUIDFromJson(String json);
diff --git a/core/src/main/resources/config.yml b/core/src/main/resources/config.yml
index f828cf1c..11f44ec1 100644
--- a/core/src/main/resources/config.yml
+++ b/core/src/main/resources/config.yml
@@ -37,7 +37,7 @@ secondAttemptCracked: false
switchMode: false
# If this plugin detected that a player has a premium, it can also set the associated
-# uuid from that account. So if the players changes their usernames, they will still have
+# uuid from that account. So if the player changes the username, they will still have
# the same player data (inventory, permissions, ...)
#
# Warning: This also means that the UUID will be different if the player is connecting
@@ -49,14 +49,14 @@ switchMode: false
# players could still join the server, because they have different UUID.
#
# Moreover you may want to convert the offline UUID to a premium UUID. This will ensure that the player
-# will have the same inventory, permissions, ... if they switched to premium authentification from offline/cracked
+# will have the same inventory, permissions, ... if they switched to premium authentication from offline/cracked
# authentication.
#
# This feature requires Cauldron, Spigot or a fork of Spigot (Paper)
premiumUuid: false
# This will make an additional check (only for player names which are not in the database) against the mojang servers
-# in order to get the premium UUID. If that premium UUID is in the database, we can assume on sucessful login that the
+# in order to get the premium UUID. If that premium UUID is in the database, we can assume on successful login that the
# player changed it's username and we just update the name in the database.
# Examples:
# #### Case 1
diff --git a/core/src/main/resources/messages.yml b/core/src/main/resources/messages.yml
index a8ab31ce..b4affdbd 100644
--- a/core/src/main/resources/messages.yml
+++ b/core/src/main/resources/messages.yml
@@ -8,7 +8,7 @@
# You want to have language template? Visit the Github Wiki here:
# https://github.com/games647/FastLogin/wiki/English
-# In order to split a message into seperate lines you could just make a new line, but keep the '
+# In order to split a message into separate lines you could just make a new line, but keep the '
# Example:
# bla: '&aFirst line
# Second line
@@ -24,10 +24,10 @@
# Switch mode is activated and a new (non-whitelist) cracked player tries to join
switch-kick-message: '&4Only paid minecraft whitelisted accounts are allowed to join this server'
-# Player activated premium logins in order to skip offline authentication
+# Player activated premium login in order to skip offline authentication
add-premium: '&2Added to the list of premium players'
-# Player activated premium logins in order to skip offline authentication
+# Player activated premium login in order to skip offline authentication
add-premium-other: '&2Player has been added to the premium list'
# Player is already set be a paid account
@@ -73,17 +73,17 @@ wait-on-proxy: '&6Sending request...'
# authentication. In this state the client expects a success packet with a encrypted connection or disconnect packet.
# So we kick the player, if we cannot encrypt the connection. In other situation (example: premium name check),
# the player will be just authenticated as cracked
-error-kick: '&4Error occured'
+error-kick: '&4Error occurred'
-# The server sents a verify token within the premium authentication reqest. If this doesn't match on response,
+# The server sends a verify token within the premium authentication request. If this doesn't match on response,
# it could be another client sending malicious packets
invalid-verify-token: '&4Invalid token'
# The client sent no request join server request to the mojang servers which would proof that it's owner of that
-# acciunt. Only modified clients would do this.
+# account. Only modified clients would do this.
invalid-session: '&4Invalid session'
-# The client sent a malicous packet without a login request packet
+# The client sent a malicious packet without a login request packet
invalid-requst: '&4Invalid request'
# Message if the bukkit isn't fully started to inject the packets