This commit is contained in:
ZXMushroom63 2024-09-16 17:04:39 +08:00
commit cdf92a46c5

View File

@ -8,7 +8,7 @@
const senderPos = event.sender.getPosition(); const senderPos = event.sender.getPosition();
// Create a fake player GameProfile // Create a fake player GameProfile
const GameProfileClass = ModAPI.reflect.getClassById("com.mojang.authlib.GameProfile"); const GameProfileClass = ModAPI.reflect.getClassById("net.lax1dude.eaglercraft.v1_8.mojang.authlib.GameProfile");
const fakeProfile = GameProfileClass.constructors[2]( const fakeProfile = GameProfileClass.constructors[2](
ModAPI.reflect.getClassById("java.util.UUID").staticMethods.randomUUID(), ModAPI.util.str("Steve") ModAPI.reflect.getClassById("java.util.UUID").staticMethods.randomUUID(), ModAPI.util.str("Steve")
); );