Fixed bungeecord detection for older Spigot builds

This commit is contained in:
games647
2016-05-12 20:11:56 +02:00
parent 9e06fd7735
commit bfaf390463
7 changed files with 28 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
package com.github.games647.fastlogin.bungee;
import com.google.gson.Gson;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
@@ -9,6 +10,7 @@ import java.net.URL;
import java.util.UUID;
import java.util.logging.Level;
import java.util.regex.Pattern;
import net.md_5.bungee.BungeeCord;
public class MojangApiConnector {

View File

@@ -68,7 +68,7 @@ public class PlayerProfile {
this.lastIp = lastIp;
}
public long getLastLogin() {
public synchronized long getLastLogin() {
return lastLogin;
}