unldenis / holoeasy

a simple and modern Java and Kotlin minecraft hologram library for 1.8-1.20.4 servers.
https://unldenis.github.io/holoeasy/
GNU Lesser General Public License v3.0
86 stars 26 forks source link

Does not work correctly on Paper 1.18.2 #40

Closed ItsTheSky closed 9 months ago

ItsTheSky commented 1 year ago

Hey there! I was looking for a Hologram API for a project, and this one looked perfect. Unfortunately, I'm unable to spawn a working hologram. Here's my current code:

final HologramPool pool = new HologramPool(warcrafted, 70);
Hologram.builder(warcrafted, player.getLocation())
        .addLine("Hello")
        .addClickableLine("Click me", 0.5f, 5f)
        .addBlockLine(new ItemStack(Material.GOLD_BLOCK))
        .addBlockLine(new ItemStack(Material.DIAMOND_BLOCK), Animation.AnimationType.CIRCLE)
        .loadAndBuild(pool);

I tried to follow the wiki to end there. When the code is run, it only spawns stacked ghasts with no errors in the console or the chat: image

Env Info:

Thanks for your help in advance :p