Fixed bungeecord detection for older Spigot builds

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

No files matched your search

@@ -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 {
@@ -68,7 +68,7 @@ public class PlayerProfile {
this.lastIp = lastIp;
}
public long getLastLogin() {
public synchronized long getLastLogin() {
return lastLogin;
}