Alvin-LB / NameTagChanger

Library to be shaded into Bukkit Plugins to allow for modification of player name tags.
MIT License
31 stars 10 forks source link

ExceptionInInitializerError #17

Open Level3301 opened 3 years ago

Level3301 commented 3 years ago

Hi i am getting ExceptionInitializerError with this code: if (!NameTagChanger.INSTANCE.isEnabled) { //here NameTagChanger.INSTANCE.enable(); }

Caused by: com.bringholm.nametagchanger.ReflectUtil$ReflectionException: java.lang.NoSuchFieldException: modifiers
    at com.bringholm.nametagchanger.ReflectUtil$ReflectionResponse.getOrThrow(ReflectUtil.java:472) ~[?:?]
    at com.bringholm.nametagchanger.ReflectUtil.<clinit>(ReflectUtil.java:34) ~[?:?]
    ... 16 more
Caused by: java.lang.NoSuchFieldException: modifiers
    at java.base/java.lang.Class.getDeclaredField(Class.java:2489) ~[?:?]
    at com.bringholm.nametagchanger.ReflectUtil.getDeclaredField(ReflectUtil.java:104) ~[?:?]
    at com.bringholm.nametagchanger.ReflectUtil.<clinit>(ReflectUtil.java:34) ~[?:?]
    ... 16 more
SolusBellator commented 1 year ago

I agree, same problem over here. Been looking for a fix, yet I haven't found anything. @Alvin-LB