ButtonWebsiteModule/src/buttondevteam/website/WebUser.java
NorbiPeti f1d21df5d8 Merge branch 'master' of GitHub repo
Conflicts:
	src/buttondevteam/website/ButtonWebsiteModule.java
	src/buttondevteam/website/WebUser.java
2017-11-23 23:31:39 +01:00

22 lines
528 B
Java

package buttondevteam.website;
import java.util.UUID;
import buttondevteam.lib.player.ChromaGamerBase;
import buttondevteam.lib.player.PlayerData;
import buttondevteam.lib.player.UserClass;
@UserClass(foldername = "web")
public class WebUser extends ChromaGamerBase {
private UUID uuid;
public UUID getUUID() {
if (uuid == null)
uuid = UUID.fromString(getFileName());
return uuid;
}
public PlayerData<UUID> sessionID() {
return data(new UUID(0, 0)); //It's used with toString() directly, so can't be null
}
}