NorbiPeti
f1d21df5d8
Conflicts: src/buttondevteam/website/ButtonWebsiteModule.java src/buttondevteam/website/WebUser.java
22 lines
528 B
Java
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
|
|
}
|
|
}
|