kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
49 stars 23 forks source link

Folia 1.20.4: Error when using private message #2579

Closed YusakiDev closed 8 months ago

YusakiDev commented 8 months ago

"/version ChatControlRed" - plugin version

10.24.2

Are you using MySQL?

No

Are you using BungeeCord?

No

Error log (if applicable)

https://paste.gg/p/anonymous/e0be73b422734be0b50042ba4302dfce

"/chc debug" output (strongly recommended)

debug.zip

Information about the issue/bug

It seems to happen with private messages.

kangarko commented 8 months ago

You are running an old and unsupported version of ProtocolLib, please update it or remove it.

YusakiDev commented 8 months ago

ah no I believe int he paste there was an old error too.

here is just a new error

------------------------------------[ 10.02.2024 12:57:42 ]-----------------------------------
--
  | ChatControlRed 10.24.2 encountered a ConcurrentModificationException
  | Running Folia 1.20.4-R0.1-SNAPSHOT and Java 17.0.10
  | Plugins: ViaVersion v4.9.2, LuckPerms v5.4.117, ProtocolLib v5.2.0-SNAPSHOT-679, PlaceholderAPI v2.11.5-DEV-null, ViaBackwards v4.9.1, Vault v1.7.3-b0-folia, SkinsRestorer v15.0.6, WorldEdit v7.3.0-SNAPSHOT+6e820d4, Lands v6.44.7, CoreProtect v22.2, AuthMe v5.6.0-SNAPSHOT-bCUSTOM, BlueSlimeCore v2.9.4.402, AutoTreeChop v1.3.0-beta.1, HuskHomes v4.5.5, NotTooExpensive v1.3.4, FallingSnow v1.2.0, voicechat v2.4.30, TAB v4.1.2, ActivityRewarder v2.1.7, spark v1.10.52, FancyHolograms v2.0.5, ChatControlRed v10.24.2, BasicEconomy v0.0.1, NFCNotes v2.4.0, Chunky v1.3.92, MiniMOTD v2.1.0, GrimAC v2.3.56, HeadDatabase v4.19.0, SeeMore v1.0.2
  | ----------------------------------------------------------------------------------------------
  |  
  | More Information:
  | Failed to execute command /reply zxcvb11324 ไงจ๊ะ
  | ConcurrentModificationException (Unknown cause)
  | at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
  | at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1620)
  | at net.minecraft.server.AdvancementDataPlayer.b(AdvancementDataPlayer.java:343)
  | at org.bukkit.craftbukkit.v1_20_R3.util.CraftMagicNumbers.lambda$loadAdvancement$2(CraftMagicNumbers.java:356)
  | at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
  | at org.bukkit.craftbukkit.v1_20_R3.util.CraftMagicNumbers.loadAdvancement(CraftMagicNumbers.java:354)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.remain.AdvancementAccessor.loadAdvancement(Remain.java:3192)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.remain.AdvancementAccessor.show(Remain.java:3182)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.remain.Remain.sendToast(Remain.java:2347)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.model.PrivateMessage.send(PrivateMessage.java:147)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.model.PrivateMessage.send(PrivateMessage.java:209)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.command.CommandReply.execute(CommandReply.java:63)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.command.ChatControlCommands$ChatControlCommand.onCommand(ChatControlCommands.java:232)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.command.SimpleCommand.execute(SimpleCommand.java:443)
  | at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
  | at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1028)
  | at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)
  | at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
  | at net.minecraft.commands.execution.tasks.ExecuteCommand.a(ExecuteCommand.java:32)
  | at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19)
  | at net.minecraft.commands.execution.UnboundEntryAction.a(UnboundEntryAction.java:8)
  | at net.minecraft.commands.execution.CommandQueueEntry.a(CommandQueueEntry.java:5)
  | at net.minecraft.commands.execution.ExecutionContext.a(ExecutionContext.java:101)
  | at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:435)
  | at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:336)
  | at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:323)
  | ----------------------------------------------------------------------------------------------
  |  
  |  
  | ------------------------------------[ 14.02.2024 16:26:20 ]-----------------------------------
  | ChatControlRed 10.24.2 encountered a ConcurrentModificationException
  | Running Folia 1.20.4-R0.1-SNAPSHOT and Java 17.0.10
  | Plugins: ViaVersion v4.9.2, LuckPerms v5.4.117, ProtocolLib v5.2.0-SNAPSHOT-679, PlaceholderAPI v2.11.5-DEV-null, ViaBackwards v4.9.1, Vault v1.7.3-b0-folia, SkinsRestorer v15.0.6, WorldEdit v7.3.0-SNAPSHOT+6e820d4, Lands v6.44.7, CoreProtect v22.2, AxShulkers v1.7.0, AuthMe v5.6.0-SNAPSHOT-bCUSTOM, DiscordSRV v1.27.0, AutoTreeChop v1.3.0-beta.1, HuskHomes v4.5.5, NotTooExpensive v1.3.4, FallingSnow v1.2.0, voicechat v2.4.30, BetterGUI v9.4, BlueSlimeCore v2.9.4.402, TAB v4.1.2, AxInventoryRestore v2.2.0, EconomyShopGUI-Premium v5.8.0, spark v1.10.52, ChatControlRed v10.24.2, EnchantedBook v0.3.1, FancyNpcs v2.0.7, BetterEconomy v2.15, MineStore v1.0.6, Chunky v1.3.92, MiniMOTD v2.1.0, GSit v1.7.0, GrimAC v2.3.56, HeadDatabase v4.19.0, LoadingScreenRemover v1.2, AxBoosters v2.1.1, SeeMore v1.0.2
  | ----------------------------------------------------------------------------------------------
  |  
  | More Information:
  | Failed to execute command /tell Mustmello มาลากหมา
  | ConcurrentModificationException (Unknown cause)
  | at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
  | at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1620)
  | at net.minecraft.server.AdvancementDataPlayer.b(AdvancementDataPlayer.java:343)
  | at org.bukkit.craftbukkit.v1_20_R3.util.CraftMagicNumbers.lambda$loadAdvancement$2(CraftMagicNumbers.java:356)
  | at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
  | at org.bukkit.craftbukkit.v1_20_R3.util.CraftMagicNumbers.loadAdvancement(CraftMagicNumbers.java:354)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.remain.AdvancementAccessor.loadAdvancement(Remain.java:3192)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.remain.AdvancementAccessor.show(Remain.java:3182)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.remain.Remain.sendToast(Remain.java:2347)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.model.PrivateMessage.send(PrivateMessage.java:147)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.model.PrivateMessage.send(PrivateMessage.java:209)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.command.CommandTell.execute(CommandTell.java:86)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.command.ChatControlCommands$ChatControlCommand.onCommand(ChatControlCommands.java:232)
  | at ChatControl-Red-10.24.2.jar//org.mineacademy.chatcontrol.lib.command.SimpleCommand.execute(SimpleCommand.java:443)
  | at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
  | at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1028)
  | at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)
  | at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
  | at net.minecraft.commands.execution.tasks.ExecuteCommand.a(ExecuteCommand.java:32)
  | at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19)
  | at net.minecraft.commands.execution.UnboundEntryAction.a(UnboundEntryAction.java:8)
  | at net.minecraft.commands.execution.CommandQueueEntry.a(CommandQueueEntry.java:5)
  | at net.minecraft.commands.execution.ExecutionContext.a(ExecutionContext.java:101)
  | at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:435)
  | at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:336)
  | at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:323)
  | ----------------------------------------------------------------------------------------------
kangarko commented 8 months ago

Disable toast notifications under Private_Message.Toasts in settings.yml, looks like they are broken under folia

YusakiDev commented 8 months ago

Alright that works!

After that works another error appears should I open a new issue? Im not sure if this is related


java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1019) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2471) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:702) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:124) ~[ChatControl-Red-10.24.2.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2578) ~[ChatControl-Red-10.24.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[13:54:05 WARN]: [ChatControlRed] Global task for ChatControlRed v10.24.2 generated an exception
java.lang.IllegalStateException: Dispatching command async
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1019) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2471) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:702) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:124) ~[ChatControl-Red-10.24.2.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2578) ~[ChatControl-Red-10.24.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[13:54:07 INFO]: _JuuzouXIII issued server command: /tell popvb1203 sd
[13:54:07 ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Dispatching command async
java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1019) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2471) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:702) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:124) ~[ChatControl-Red-10.24.2.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2578) ~[ChatControl-Red-10.24.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[13:54:07 WARN]: [ChatControlRed] Global task for ChatControlRed v10.24.2 generated an exception
java.lang.IllegalStateException: Dispatching command async
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1019) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2471) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:702) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:124) ~[ChatControl-Red-10.24.2.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2578) ~[ChatControl-Red-10.24.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[13:54:08 INFO]: _JuuzouXIII issued server command: /tell popvb1203 eawe
[13:54:08 ERROR]: Thread Region Scheduler Thread #3 failed main thread check: Dispatching command async
java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1019) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2471) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:702) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:124) ~[ChatControl-Red-10.24.2.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2578) ~[ChatControl-Red-10.24.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[13:54:08 WARN]: [ChatControlRed] Global task for ChatControlRed v10.24.2 generated an exception
java.lang.IllegalStateException: Dispatching command async
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1019) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2471) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:702) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:124) ~[ChatControl-Red-10.24.2.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2578) ~[ChatControl-Red-10.24.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]```
YusakiDev commented 8 months ago

This happen when toogle PM mode it is not possible to send messages at all

kangarko commented 8 months ago

Thanks for reporting, I'll investigate

YusakiDev commented 6 months ago

Has this been fixed?

kangarko commented 6 months ago

Yes if you have errors still please post the new stack trace

YusakiDev commented 6 months ago
[15:11:55 ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Dispatching command async
java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1031) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2467) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:666) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:126) ~[ChatControl-Red-10.25.6.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2530) ~[ChatControl-Red-10.25.6.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[15:11:55 WARN]: [ChatControlRed] Global task for ChatControlRed v10.25.6 generated an exception
java.lang.IllegalStateException: Dispatching command async
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1031) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2467) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:666) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:126) ~[ChatControl-Red-10.25.6.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2530) ~[ChatControl-Red-10.25.6.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?

The message got send with as unformatted chat

kangarko commented 6 months ago

I cant reproduce on the next chatcontrol release:

a

I used Folia from: https://github.com/Slackadays/FoliaToGo

kangarko commented 6 months ago

The new version should be up tonight, let me know how it goes please and if anything post a new stack trace. Try to see if you can disable the async catcher in folia somewhere - I am on stock settings.

YusakiDev commented 6 months ago

I don't believe folia have some settings like that Im On Latest Version of folia

The problem doesn't seems to be the dm the command /t is totally fine but when use conversation mode that toggle with /t and send message it breaks

[18:23:27 INFO]: _Yusaki issued server command: /t 0Rimuru0
[18:23:32 INFO]: _Yusaki issued server command: /tell 0Rimuru0 test 1
[18:23:32 ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Dispatching command async
java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1031) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2467) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:666) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:126) ~[ChatControl-Red-10.25.7.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2530) ~[ChatControl-Red-10.25.7.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[18:23:32 WARN]: [ChatControlRed] Global task for ChatControlRed v10.25.7 generated an exception
java.lang.IllegalStateException: Dispatching command async
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1031) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2467) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:666) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at org.mineacademy.chatcontrol.listener.ChatListener.lambda$execute$0(ChatListener.java:126) ~[ChatControl-Red-10.25.7.jar:?]
        at org.mineacademy.chatcontrol.lib.Common.lambda$runLater$12(Common.java:2530) ~[ChatControl-Red-10.25.7.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]

javaw_kSZ0hp3now

kangarko commented 6 months ago

I am sorry, I just found out this is broken on Folia due to a bug on Folia side. Disable automode. Next version of chatcontrol will autodisable it on Folia