Remove deprecated API methods

This commit is contained in:
games647
2016-09-21 13:22:48 +02:00
parent 87ca00d75d
commit 1acc825f81
13 changed files with 12 additions and 104 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<groupId>com.github.games647</groupId>
<artifactId>fastlogin</artifactId>
<version>1.9</version>
<version>1.10</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -28,7 +28,7 @@ public abstract class JoinManagement<T, S extends LoginSource> {
String ip = source.getAddress().getAddress().getHostAddress();
try {
if (profile.getUserId() == -1) {
if (core.getPendingLogins().containsKey(ip + username) && config.get("secondAttemptCracked", false)) {
if (core.getPendingLogins().remove(ip + username) != null && config.get("secondAttemptCracked", false)) {
core.getLogger().log(Level.INFO, "Second attempt login -> cracked {0}", username);
//first login request failed so make a cracked session