Fix update username in FastLogin database after nameChange (Fixes #67)

This commit is contained in:
games647
2016-08-31 13:29:06 +02:00
parent ebe768f7a2
commit 58ac73a5a9
5 changed files with 19 additions and 2 deletions
@@ -4,7 +4,7 @@ import java.util.UUID;
public class PlayerProfile {
private final String playerName;
private String playerName;
private long userId;
@@ -32,10 +32,14 @@ public class PlayerProfile {
this.lastIp = lastIp;
}
public String getPlayerName() {
public synchronized String getPlayerName() {
return playerName;
}
public synchronized void setPlayerName(String playerName) {
this.playerName = playerName;
}
public synchronized long getUserId() {
return userId;
}