mirror of
https://github.com/GTNewHorizons/DummyCore.git
synced 2026-11-17 02:55:08 +00:00
21 lines
469 B
Java
21 lines
469 B
Java
package DummyCore.Utils;
|
|
|
|
import java.util.Hashtable;
|
|
import java.util.UUID;
|
|
|
|
import com.mojang.authlib.GameProfile;
|
|
|
|
public class DummyFakePlayerFactory {
|
|
|
|
public static Hashtable<Class, GameProfile> fakeProfiles = new Hashtable();
|
|
|
|
public static GameProfile getGameProfile(Class mod)
|
|
{
|
|
if(fakeProfiles.get(mod) == null)
|
|
{
|
|
fakeProfiles.put(mod, new GameProfile(UUID.randomUUID(), "[DC]["+mod.getSimpleName()+"]"));
|
|
}
|
|
return fakeProfiles.get(mod);
|
|
}
|
|
}
|