DecentSoftware-eu / DecentHolograms

A lightweight but powerful hologram plugin with many features and configuration options.
https://www.spigotmc.org/resources/96927/
GNU General Public License v3.0
183 stars 82 forks source link

Add support for 1.21 #218

Closed ashduino101 closed 6 days ago

ashduino101 commented 2 weeks ago

This should add fairly stable support for 1.21, and implements bindings to the necessary NMS functions.

frafol commented 2 weeks ago

[10:09:17] [Server thread/INFO]: [DecentHolograms] Loading server plugin DecentHolograms v2.8.9 [10:09:17] [Server thread/ERROR]: [DecentHolograms] Error initializing plugin 'DecentHolograms-2.8.9.jar' in folder 'plugins\.paper-remapped' (Is it up to date?) java.lang.NoClassDefFoundError: org/bstats/charts/CustomChart at DecentHolograms-2.8.9.jar/eu.decentsoftware.holograms.api.DecentHologramsAPI.onLoad(DecentHologramsAPI.java:35) ~[DecentHolograms-2.8.9.jar:?] at DecentHolograms-2.8.9.jar/eu.decentsoftware.holograms.plugin.DecentHologramsPlugin.onLoad(DecentHologramsPlugin.java:16) ~[DecentHolograms-2.8.9.jar:?] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[paper-1.21.jar:1.21-9-4ea696f] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[paper-1.21.jar:1.21-9-4ea696f] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39) ~[paper-1.21.jar:1.21-9-4ea696f] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40) ~[paper-1.21.jar:1.21-9-4ea696f] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:535) ~[paper-1.21.jar:1.21-9-4ea696f] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:290) ~[paper-1.21.jar:1.21-9-4ea696f] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1157) ~[paper-1.21.jar:1.21-9-4ea696f] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-9-4ea696f] at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?] Caused by: java.lang.ClassNotFoundException: org.bstats.charts.CustomChart at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:197) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:164) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] ... 11 more

On Paper 1.21 (build 9)

tomasalias commented 2 weeks ago

@ashduino101 Can you build me .jar file?

ashduino101 commented 1 week ago

Sure, I'll fix the versioning and build a jar tonight

ashduino101 commented 1 week ago

DecentHolograms-2.8.9.zip

Here's a zip of prebuilt the jar for whoever wants it (@tomasalias)

resi23 commented 1 week ago

DecentHolograms-2.8.9.zip

Here's a zip of prebuilt the jar for whoever wants it (@tomasalias)


[13:47:11] [Server thread/INFO]: Resi issued server command: /hologram line add test 1 #ICON:PORKCHOP
[13:47:11] [Server thread/ERROR]: [DecentHolograms] Could not invoke method encode in class net.minecraft.network.codec.StreamCodec
[13:47:11] [Server thread/ERROR]: [DecentHolograms] Failed to create new instance of class net.minecraft.network.protocol.game.ClientboundSetEntityDataPacket with parameter types [Ljava.lang.Class;@6206ce86```
d0by1 commented 6 days ago

Hello, thank you for the PR but I will now close this in favor of a more complete implementation: https://github.com/DecentSoftware-eu/DecentHolograms/pull/220