HolographicDisplays icon indicating copy to clipboard operation
HolographicDisplays copied to clipboard

java.lang.IllegalStateException: Holographic Displays did not load properly (no API implementation was set)

Open ABravePanda opened this issue 2 years ago • 2 comments

Confirmation

Description

Im trying to hook into the new API however I keep getting this error. Right now im just implementing it via this.holographicDisplaysAPI = HolographicDisplaysAPI.get(plugin);

I see this references the HolographicDisplaysAPIProverider however im not sure how to use it.

Holographic Displays version

3.0.0-SNAPSHOT

Additional information

No response

ABravePanda avatar May 16 '22 20:05 ABravePanda

also i cant use the previous versions of the plugin as they dont support 1.18.2

ABravePanda avatar May 16 '22 21:05 ABravePanda

Don't look at the implementation. Just store a field of type HolographicDisplaysAPI with the API instance you get from that method.

After you get the error, are you able to use the /hd command and modify holograms normally?

filoghost avatar Sep 11 '22 15:09 filoghost

Hi, I've got same problem as in topic, creating and editing hologram by /hd command works properly, I'm using 1.19.2 paper server, same thing happening on holographicdisplays 3.0.0 and 3.0.1 https://hastebin.com/ulecipiyet.sql - log

vision419 avatar Nov 15 '22 17:11 vision419

@vision419 Can't access the link

filoghost avatar Apr 29 '23 16:04 filoghost

i also had this issue. it was caused by including the api in the shaded jar. by adding an exclusion i was able to get it to work fine

Varunda avatar Aug 09 '23 17:08 Varunda

@Varunda thanks, that explains the error. For everyone having this problem, make sure the Maven dependency has <scope>provided</scope>

filoghost avatar Sep 03 '23 09:09 filoghost