Calling 'OnPlayerChat' took Xms

Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 3818ms

[Better Chat] [Global] АЛМАЗ КУКОЛД: DDOS???

Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 6953ms

6460686/АЛМАЗ КУКОЛД kicked: Packet Flooding: Player Tick
8259865974/TheBigCheese kicked: Packet Flooding: Player Tick
1197962755946/Sid the Sloth kicked: Packet Flooding: Player Tick
1198073614999/bekacho333 kicked: Packet Flooding: Player Tick
etc

that made my players kicks every half hour

There is normally absolutely no reason Better Chat would take that long. My guess would be that your server might have had general slow down which would also slow down Better Chat.

Same thing is happening on my server too

Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 9159ms 
Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took average 4ms 
[Better Chat] [Global] DarkGuardianN: laaaaag 
[Better Chat] [Team] Sou1Kek: LAG 
93.99.25.117:62186/76561197993702408/TRAVMATOLOG kicked: Packet Flooding: Player Tick 
194.11.28.21:55045/76561198352693556/HAV4EEK kicked: Packet Flooding: Player Tick 
85.232.128.77:62471/76561198341668110/DToutlaws kicked: Packet Flooding: Player Tick 

we are having the same issue causing server lag when better chat is loaded but no lag when it's not. the working theory is that our config files are a mess and causing the plugin to bog down. we will be testing it when out population dies down.

ive tried to download and use the betterchatgroupmanager program but just get errors.

I am getting this issue as well now. Has been acting up the last couple days causing pretty bad server lag.

Here is a little side by side of what went on in chat and server console. Once server pop dies down ill also take a look at config and other things that might be affecting. Although we haven't really messed with config much since setup and its been working perfect up until when it started acting up a couple of days ago.

Any ideas?

CHAT
01/21 14:43:40 | #GLOBAL | ShamedOne : lag
01/21 14:43:41 | #GLOBAL | Theodore : holy shit the server is lagging bad
01/21 14:43:44 | #TEAM | kylinhill21 : LAG??
01/21 14:43:51 | #GLOBAL | kylinhill21 : LSGG??
01/21 14:44:02 | #GLOBAL | josephcoggins54321 : lag???
01/21 14:44:11 | #GLOBAL | Pill Cosby : lmaoo
01/21 14:44:13 | #GLOBAL | ShamedOne : still lagging
CONSOLE
01/21 14:43:41 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 436ms
01/21 14:43:44 | [Better Chat] [Team] kylinhill21: LAG??
01/21 14:43:51 | [Better Chat] [Global] kylinhill21: LSGG??
01/21 14:44:02 | [Better Chat] [Global] josephcoggins54321: lag???
01/21 14:44:02 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 2376ms

We are seeing the exact same thing.

01/21 17:37:56 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 217ms
01/21 17:38:06 | Yourmomlovesme[76561############] was killed by bear (Bear)
01/21 17:38:08 | [Better Chat] [Global] Fatal Exodus: ddos?
01/21 17:38:09 | [Better Chat] [Global] Mak_N_Chease: NOOOO
01/21 17:38:09 | [Better Chat] [Global] skymooney13: ya lag
01/21 17:38:09 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 293ms

This console shows from the start where it says 01/21 17:39:49 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 336ms and lags all the way until I unload the plugin. It doesnt just say that one time it happens multiple times and looks like this within 2 minutes:

01/21/2021 17:38:38 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 134ms
01/21/2021 17:38:09 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 293ms
01/21/2021 17:37:56 | Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 217ms

Not sure of the problem. @misticos said its not a problem because "servers much larger than yours are running it without any problems" but clearly we aren't the first person to post this nor the last. Not sure why or how its happening just wanted to see if Laser has a fix or the community knows of a fix would be greatly appreciated :)

My players got kicked with"Packet flooding: Player tick too.
Got this in console when that happened:
13:07 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took 11500ms
13:07 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.5' took average 2ms

Server host said I should try this:

Please stop the server and add the following to server.cfg at the bottom

server.maxpacketspersecond_tick "2000"
server.maxpacketspersecond "2500"
server.maxpacketspersecond_command "500"
server.maxpacketspersecond_world "2"
server.maxpacketspersecond_rpc "600"

once done save and start it should fix this for you.

Can this be a solution?

sounds like a workaround, not a fix. we redid our config file and have had no issues since 

Hello,

Is there a fix for this? My server isn't kicking players but I'm getting the yellow message
"OnPlayerChat" blah blah blah "Took x Amount MS"

I'm running on more than enough Ram, CPU cores, CPU Speed and a Network switch based off a rack in Sydney. Not saying there is a problem with BetterChat but it's taking forever to compile for what little modifications or settings we have for it. We only use Clans with Betterchat to enable that feature on our server, with no other core modifications to in-game.

If I could talk with the dev or someone who's a bit more advanced in their knowledge with plugins and umod running on servers that would be much appreciated.

I'm having the same issues.  I'll try recreating the config as someone mentioned. 

14:14 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.6' took 10210ms
14:14 [Info] [Discord Events] Player Badgerbair03 disconnected (Kicked: Packet Flooding: Player Tick).
14:14 [Info] [Discord Events] Player Willow disconnected (Kicked: Packet Flooding: Player Tick).

19:11 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.6' took 3927ms
19:11 [Info] [Discord Events] Player boomya1010 disconnected (Kicked: Packet Flooding: Player Tick).
19:11 [Info] [Admin Logger] [03/25/2021 19:11:23] Bumfuzzler [76561############] disconnected.
19:11 [Info] [Discord Events] Player Bumfuzzler disconnected (Kicked: Packet Flooding: Player Tick).
19:11 [Info] [Discord Events] Player Kyle disconnected (Kicked: Packet Flooding: Player Tick).
19:11 [Info] [Discord Events] Player KrUsTy-ThE-ClOwN disconnected (Kicked: Packet Flooding: Player Tick).​

There's an issue where Oxide will sometimes record a hook call as slow even when the hook is running code that is extremely fast that could not possibly take that long, even something like 1+1. This is usually caused by other slowdowns and has nothing to do with the plugin blamed. The reason it happens more often for particular plugins is do to the frequency of the hook calls. Chatting happens a lot in high pop servers so chat hooks are more likely to be running during a lag spike.