This commit is contained in:
Paul Reilly
2023-04-13 20:24:40 -05:00
commit 09bede768b
39 changed files with 1377 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package me.totalfreedom.utils;
import java.util.UUID;
public class Identity
{
private final String key;
private final UUID id;
public Identity(String key)
{
this.key = key;
this.id = UUID.nameUUIDFromBytes(key.getBytes());
}
public String getKey()
{
return key;
}
public UUID getId()
{
return id;
}
}