Whenever the server tries to tab complete, it shouldn't send an error in the console. It still does tab complete correctly, though
Observed/Actual behavior
[11:40:58 ERROR]: Could not pass event AsyncTabCompleteEvent to PaperTweaks v0.5.0-SNAPSHOT
java.lang.ClassCastException: class me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier cannot be cast to class me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler (me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier and me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler are in unnamed module of loader 'PaperTweaks.jar' @3b491ed)
at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.AsyncCommandSuggestionListener.onTabCompletion(AsyncCommandSuggestionListener.java:57) ~[PaperTweaks.jar:?]
at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.BrigadierAsyncCommandSuggestionListener.onTabCompletion(BrigadierAsyncCommandSuggestionListener.java:53) ~[PaperTweaks.jar:?]
at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:1.20.6-115-9d6f2cc]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:627) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.event.Event.callEvent(Event.java:45) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomCommandSuggestions0(ServerGamePacketListenerImpl.java:819) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$1(ServerGamePacketListenerImpl.java:808) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[11:40:58 ERROR]: Could not pass event AsyncTabCompleteEvent to PaperTweaks v0.5.0-SNAPSHOT
java.lang.ClassCastException: class me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier cannot be cast to class me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler (me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier and me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler are in unnamed module of loader 'PaperTweaks.jar' @3b491ed)
at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.AsyncCommandSuggestionListener.onTabCompletion(AsyncCommandSuggestionListener.java:57) ~[PaperTweaks.jar:?]
at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.BrigadierAsyncCommandSuggestionListener.onTabCompletion(BrigadierAsyncCommandSuggestionListener.java:53) ~[PaperTweaks.jar:?]
at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:1.20.6-115-9d6f2cc]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:627) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.event.Event.callEvent(Event.java:45) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomCommandSuggestions0(ServerGamePacketListenerImpl.java:819) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$1(ServerGamePacketListenerImpl.java:808) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Steps/models to reproduce
Try typing in any command on the newest github build and an error will send in the console
Expected behavior
Whenever the server tries to tab complete, it shouldn't send an error in the console. It still does tab complete correctly, though
Observed/Actual behavior
[11:40:58 ERROR]: Could not pass event AsyncTabCompleteEvent to PaperTweaks v0.5.0-SNAPSHOT java.lang.ClassCastException: class me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier cannot be cast to class me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler (me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier and me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler are in unnamed module of loader 'PaperTweaks.jar' @3b491ed) at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.AsyncCommandSuggestionListener.onTabCompletion(AsyncCommandSuggestionListener.java:57) ~[PaperTweaks.jar:?] at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.BrigadierAsyncCommandSuggestionListener.onTabCompletion(BrigadierAsyncCommandSuggestionListener.java:53) ~[PaperTweaks.jar:?] at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:1.20.6-115-9d6f2cc] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:627) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at org.bukkit.event.Event.callEvent(Event.java:45) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomCommandSuggestions0(ServerGamePacketListenerImpl.java:819) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$1(ServerGamePacketListenerImpl.java:808) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] [11:40:58 ERROR]: Could not pass event AsyncTabCompleteEvent to PaperTweaks v0.5.0-SNAPSHOT java.lang.ClassCastException: class me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier cannot be cast to class me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler (me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.ModernPaperBrigadier and me.machinemaker.papertweaks.libs.org.incendo.cloud.bukkit.BukkitPluginRegistrationHandler are in unnamed module of loader 'PaperTweaks.jar' @3b491ed) at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.AsyncCommandSuggestionListener.onTabCompletion(AsyncCommandSuggestionListener.java:57) ~[PaperTweaks.jar:?] at PaperTweaks.jar/me.machinemaker.papertweaks.libs.org.incendo.cloud.paper.suggestion.BrigadierAsyncCommandSuggestionListener.onTabCompletion(BrigadierAsyncCommandSuggestionListener.java:53) ~[PaperTweaks.jar:?] at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:1.20.6-115-9d6f2cc] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:627) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at org.bukkit.event.Event.callEvent(Event.java:45) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomCommandSuggestions0(ServerGamePacketListenerImpl.java:819) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$1(ServerGamePacketListenerImpl.java:808) ~[paper-1.20.6.jar:1.20.6-115-9d6f2cc] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Steps/models to reproduce
Try typing in any command on the newest github build and an error will send in the console
Plugin and Datapack List
Paper tweaks Via Version, Via Backwards
Server Version Info
Paper 1.20.6 #117
Plugin Version
PaperTweaks v0.5.0-SNAPSHOT
Other
No response