Open danir-de opened 7 months ago
Can you post the config?
The config looks like this:
// This configuration was automatically generated by CounterStrikeSharp for plugin 'Welcome', at 2024.03.09 05:25:53
{
"PluginName": "[CHRONICALSde][Welcome] | ",
"Timer": 5,
"WelcomePlayerOneEnable": "true",
"WelcomePlayerAllEnable": "true",
"DisconnectPlayerAllEnable": "true",
"WelcomeText": "\u0001[\u000bCHRONICALS\u0008de\u0001] \u0008============== \u000bWILLKOMMEN \u0008============== {ENTER}\u0001[\u000bCHRONICALS\u0008de\u0001] Willkommen bei \u000bCHRONICALS\u0008de\u0001, \u000b{PLAYERNAME}\u0001! {ENTER} \u0001[\u000bCHRONICALS\u0008de\u0001] Mode: \u000bRetakes\u0001 - Map: \u000b{MAP}\u0001 - Online: \u000b{PLAYERS}\u0001/\u000b{MAXPLAYERS}\u0001{ENTER} \u0001[\u000bCHRONICALS\u0008de\u0001] TeamSpeak, CS2 Server & mehr: \u0009CHRONICALS.de{ENTER} \u0001[\u000bCHRONICALS\u0008de\u0001] \u0008=========== \u0001Good Luck, Have fun! \u0008=========== {ENTER} {ENTER}",
"disconnectAllText": " \u0001[{RED}-\u0001] {PLAYERNAME} ({REASON}) ",
"WelcomeAllText": " \u0001[{GREEN}+\u0001] {PLAYERNAME} ",
"ConfigVersion": 1
}
"WelcomeText": " ...(example text) "
What do you mean? "WelcomeText": ...
included in my snippet :)
The error occurs if the user gets kicked (by Whitelist, another plugin, etc.) or leaves while joining.
{ "PluginName": "[CHRONICALSde][Welcome] | ", "Timer": 5, "WelcomePlayerOneEnable": "true", "WelcomePlayerAllEnable": "true", "DisconnectPlayerAllEnable": "true", "WelcomeText": " \u0001[\u000bCHRONICALS\u0008de\u0001] \u0008============== \u000bWILLKOMMEN \u0008============== {ENTER}\u0001[\u000bCHRONICALS\u0008de\u0001] Willkommen bei \u000bCHRONICALS\u0008de\u0001, \u000b{PLAYERNAME}\u0001! {ENTER} \u0001[\u000bCHRONICALS\u0008de\u0001] Mode: \u000bRetakes\u0001 - Map: \u000b{MAP}\u0001 - Online: \u000b{PLAYERS}\u0001/\u000b{MAXPLAYERS}\u0001{ENTER} \u0001[\u000bCHRONICALS\u0008de\u0001] TeamSpeak, CS2 Server & mehr: \u0009CHRONICALS.de{ENTER} \u0001[\u000bCHRONICALS\u0008de\u0001] \u0008=========== \u0001Good Luck, Have fun! \u0008=========== {ENTER} {ENTER} ", "disconnectAllText": " \u0001[{RED}-\u0001] {PLAYERNAME} ({REASON}) ", "WelcomeAllText": " \u0001[{GREEN}+\u0001] {PLAYERNAME} ", "ConfigVersion": 1 }
If the timer is set (
"Timer": 5,
) and the user gets kicked or disconnects before the welcome message is sent, the plugin sends a stacktrace to the log:This seems to come from the plugin trying to fetch user data once the timer ends, but by then he has already disconnected, leading to this error.