Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%{ping} Placeholder not working in player list #496

Open
BWP09 opened this issue Feb 17, 2023 · 0 comments
Open

%{ping} Placeholder not working in player list #496

BWP09 opened this issue Feb 17, 2023 · 0 comments
Assignees
Labels

Comments

@BWP09
Copy link

BWP09 commented Feb 17, 2023

Describe the bug
I am using this plugin with 1.19.3 and the %{ping} placeholder is not working in player-list. The footer part of the player list completely empty in-game.

To Reproduce
Steps to reproduce the behavior:

  1. Set the footer content in player-list to 'Ping: %{ping}'
  2. Reload/Restart the server
  3. Connect to the server
  4. See error in Tab player list

Expected behavior
I expect to see Ping: {my ping} in the tab list

Stacktrace / Error

  • (This error occurs when reloading/restarting)
java.lang.ExceptionInInitializerError: null
        at io.puharesource.mc.titlemanager.internal.reflections.NMSManager.getClassProvider(NMSManager.kt:61) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSClass.<init>(Classes.kt:12) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSClass.<init>(Classes.kt:11) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.CraftPlayer.<init>(Classes.kt:18) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.ReflectionPlayerExtensionsKt.<clinit>(ReflectionPlayerExtensions.kt:5) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText$loadBuiltinPlaceholders$11.invoke(PlaceholderServiceText.kt:63) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText$loadBuiltinPlaceholders$11.invoke(PlaceholderServiceText.kt:63) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText$createPlaceholder$1.getText(PlaceholderServiceText.kt:183) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText.replaceText(PlaceholderServiceText.kt:152) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot.setFooter(PlayerListServiceSpigot.kt:156) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot$createFooterSendableAnimation$4.invoke(PlayerListServiceSpigot.kt:101) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot$createFooterSendableAnimation$4.invoke(PlayerListServiceSpigot.kt:100) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.model.animation.PartBasedSendableAnimation.update(PartBasedSendableAnimation.kt:90) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.model.animation.PartBasedSendableAnimation.start(PartBasedSendableAnimation.kt:60) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot.setProcessedFooter(PlayerListServiceSpigot.kt:171) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot.setProcessedHeaderAndFooter(PlayerListServiceSpigot.kt:198) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot.startPlayerTasks(PlayerListServiceSpigot.kt:34) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.TitleManagerServiceSpigot.start(TitleManagerServiceSpigot.kt:54) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.TitleManagerPlugin.onEnable(TitleManagerPlugin.kt:36) ~[TitleManager-2.3.6.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:371) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:544) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R2.CraftServer.enablePlugin(CraftServer.java:580) ~[paper-1.19.3.jar:git-Paper-404]
        at org.bukkit.craftbukkit.v1_19_R2.CraftServer.enablePlugins(CraftServer.java:493) ~[paper-1.19.3.jar:git-Paper-404]
        at org.bukkit.craftbukkit.v1_19_R2.CraftServer.reload(CraftServer.java:1040) ~[paper-1.19.3.jar:git-Paper-404]
        at org.bukkit.Bukkit.reload(Bukkit.java:930) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:54) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchCommand(CraftServer.java:931) ~[paper-1.19.3.jar:git-Paper-404]
        at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchServerCommand(CraftServer.java:894) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:501) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:448) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-404]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.ClassNotFoundException: net.minecraft.network.chat.ChatComponentText
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:177) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:124) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.Class.forName0(Native Method) ~[?:?]
        at java.lang.Class.forName(Class.java:375) ~[?:?]
        at io.puharesource.mc.titlemanager.internal.reflections.ReflectionClass.<init>(ReflectionClass.kt:7) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSType.getReflectionClass(NMSType.kt:16) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSClassProvider.associate(NMSClassProvider.kt:12) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.Provider117.<clinit>(Providers.kt:203) ~[TitleManager-2.3.6.jar:?]
        ... 36 more
  • (This error occurs when someone joins)
java.lang.ExceptionInInitializerError: null
        at io.puharesource.mc.titlemanager.internal.reflections.NMSManager.getClassProvider(NMSManager.kt:61) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSClass.<init>(Classes.kt:12) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSClass.<init>(Classes.kt:11) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.CraftPlayer.<init>(Classes.kt:18) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.ReflectionPlayerExtensionsKt.<clinit>(ReflectionPlayerExtensions.kt:5) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText$loadBuiltinPlaceholders$11.invoke(PlaceholderServiceText.kt:63) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText$loadBuiltinPlaceholders$11.invoke(PlaceholderServiceText.kt:63) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText$createPlaceholder$1.getText(PlaceholderServiceText.kt:183) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.placeholder.PlaceholderServiceText.replaceText(PlaceholderServiceText.kt:152) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot.setFooter(PlayerListServiceSpigot.kt:156) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot$createFooterSendableAnimation$4.invoke(PlayerListServiceSpigot.kt:101) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot$createFooterSendableAnimation$4.invoke(PlayerListServiceSpigot.kt:100) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.model.animation.PartBasedSendableAnimation.update(PartBasedSendableAnimation.kt:90) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.model.animation.PartBasedSendableAnimation.start(PartBasedSendableAnimation.kt:60) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot.setProcessedFooter(PlayerListServiceSpigot.kt:171) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.features.PlayerListServiceSpigot.setProcessedHeaderAndFooter(PlayerListServiceSpigot.kt:198) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.event.ListenerServiceSpigot$registerSetHeaderAndFooter$$inlined$listenEventSync$default$1.invoke(ListenerServiceSpigot.kt:212) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.services.event.ListenerServiceSpigot$registerSetHeaderAndFooter$$inlined$listenEventSync$default$1.invoke(ListenerServiceSpigot.kt:95) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.model.event.TMEventListener._init_$lambda-1(TMEventListener.kt:31) ~[TitleManager-2.3.6.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:git-Paper-404]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:672) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:319) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.network.ServerLoginPacketListenerImpl.placeNewPlayer(ServerLoginPacketListenerImpl.java:202) ~[?:?]
        at net.minecraft.server.network.ServerLoginPacketListenerImpl.handleAcceptedLogin(ServerLoginPacketListenerImpl.java:183) ~[?:?]
        at net.minecraft.server.network.ServerLoginPacketListenerImpl.tick(ServerLoginPacketListenerImpl.java:85) ~[?:?]
        at net.minecraft.network.Connection.tick(Connection.java:585) ~[?:?]
        at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:233) ~[?:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1565) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.3.jar:git-Paper-404]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-404]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.ClassNotFoundException: net.minecraft.network.chat.ChatComponentText
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:177) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:124) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.Class.forName0(Native Method) ~[?:?]
        at java.lang.Class.forName(Class.java:375) ~[?:?]
        at io.puharesource.mc.titlemanager.internal.reflections.ReflectionClass.<init>(ReflectionClass.kt:7) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSType.getReflectionClass(NMSType.kt:16) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.NMSClassProvider.associate(NMSClassProvider.kt:12) ~[TitleManager-2.3.6.jar:?]
        at io.puharesource.mc.titlemanager.internal.reflections.Provider117.<clinit>(Providers.kt:203) ~[TitleManager-2.3.6.jar:?]
        ... 34 more

Server information:

  • TitleManager version: v2.3.6
  • Spigot version: Paper 1.19.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants