Brikster / Chatty

Bukkit-compatible chat management system
MIT License
90 stars 50 forks source link

Not working /pm from console, gives an error #231

Open razenxc opened 1 year ago

razenxc commented 1 year ago

Hello; I cannot use /pm command from console because when I execute it gives an error; In config "allow-console: true";

I have this error exactly on these cores, I haven't checked for others: Paper 1.17.1-411 and Purpur 1.17.1-1428;

Error: [09:33:42 WARN]: Unexpected exception while parsing console command "pm +banan41c3232 test" org.bukkit.command.CommandException: Unhandled exception executing 'pm +banan41c3232 test' in ru.mrbrikster.chatty.commands.pm.MsgCommand(msg) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:182) ~[patched_1.17.1.jar:git-Purpur-1428] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:869) ~[patched_1.17.1.jar:git-Purpur-1428] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchServerCommand(CraftServer.java:832) ~[patched_1.17.1.jar:git-Purpur-1428] at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:567) ~[patched_1.17.1.jar:git-Purpur-1428] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:529) ~[patched_1.17.1.jar:git-Purpur-1428] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1507) ~[patched_1.17.1.jar:git-Purpur-1428] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1300) ~[patched_1.17.1.jar:git-Purpur-1428] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[patched_1.17.1.jar:git-Purpur-1428] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.RuntimeException: NMS features is not supported by Chatty on your server version (v1_17_R1) at ru.mrbrikster.chatty.util.textapi.NMSUtil.sendChatPacket(NMSUtil.java:173) ~[Chatty.jar:?] at ru.mrbrikster.chatty.json.fanciful.FancyMessage.send(FancyMessage.java:582) ~[Chatty.jar:?] at ru.mrbrikster.chatty.json.fanciful.FancyMessage.send(FancyMessage.java:573) ~[Chatty.jar:?] at ru.mrbrikster.chatty.commands.pm.PrivateMessageCommand.handlePrivateMessage(PrivateMessageCommand.java:123) ~[Chatty.jar:?] at ru.mrbrikster.chatty.commands.pm.MsgCommand.handle(MsgCommand.java:62) ~[Chatty.jar:?] at ru.mrbrikster.chatty.shaded.baseplugin.commands.BukkitCommand.execute(BukkitCommand.java:47) ~[Chatty.jar:?] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172) ~[patched_1.17.1.jar:git-Purpur-1428] ... 8 more Caused by: java.lang.IllegalStateException at ru.mrbrikster.chatty.util.textapi.NMSUtil.sendChatPacket(NMSUtil.java:114) ~[Chatty.jar:?] at ru.mrbrikster.chatty.json.fanciful.FancyMessage.send(FancyMessage.java:582) ~[Chatty.jar:?] at ru.mrbrikster.chatty.json.fanciful.FancyMessage.send(FancyMessage.java:573) ~[Chatty.jar:?] at ru.mrbrikster.chatty.commands.pm.PrivateMessageCommand.handlePrivateMessage(PrivateMessageCommand.java:123) ~[Chatty.jar:?] at ru.mrbrikster.chatty.commands.pm.MsgCommand.handle(MsgCommand.java:62) ~[Chatty.jar:?] at ru.mrbrikster.chatty.shaded.baseplugin.commands.BukkitCommand.execute(BukkitCommand.java:47) ~[Chatty.jar:?] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172) ~[patched_1.17.1.jar:git-Purpur-1428] ... 8 more