-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Description
When I try to retrieve a me.tofaa.entitylib.wrapper.WrapperEntity from a org.bukkit.entity.Entity (which in this case is a org.bukkit.entity.Player) I get the error below.
[14:27:21 ERROR]: #!#! Caused by: java.lang.NoSuchMethodException: com.mojang.authlib.GameProfile.getProperties()
[14:27:21 ERROR]: #!#! at java.base/java.lang.Class.getMethod(Class.java:2454)
[14:27:21 ERROR]: #!#! at io.papermc.reflectionrewriter.runtime.AbstractDefaultRulesReflectionProxy.getMethod(AbstractDefaultRulesReflectionProxy.java:100)
[14:27:21 ERROR]: #!#! at io.papermc.paper.pluginremap.reflect.PaperReflectionHolder.getMethod(Unknown Source)
[14:27:21 ERROR]: #!#! at PacketEventsSK-1.0.jar//threeadd.entitylib.spigot.ExtraConversionUtil.getProfileFromBukkitPlayer(ExtraConversionUtil.java:44)
[14:27:21 ERROR]: #!#! at PacketEventsSK-1.0.jar//threeadd.entitylib.spigot.SpigotEntityLibAPI.cloneEntity(SpigotEntityLibAPI.java:77)
From a non-player entity I believe it works fine
Code
@Override
protected @Nullable WrapperEntity getOne(Event currentEvent) {
Entity bukkitEntity = getValue(0, Entity.class, currentEvent);
return EntityLib.getApi().cloneEntity(bukkitEntity);
}Extra
I'm shading EntityLib (which I believe is what you're supposed to do, my plugin didn't enable correctly without it)
Metadata
Metadata
Assignees
Labels
No labels