Connect , Disconnect , Country , City , Message , Sound , Logs , Discord
[Optional: If You Want Custom Sounds]
- Download the latest
Connect-Disconnect-Sound-GoldKingZ.x.x.x.zip
release - Extract contents to your
csgo
directory - Configure settings in
Connect-Disconnect-Sound-GoldKingZ/config/config.json
- Restart your server
Important
Main Configuration
../Connect-Disconnect-Sound-GoldKingZ/config/config.json
Chat & Sound Configuration
../Connect-Disconnect-Sound-GoldKingZ/config/connect_disconnect_config.json
Main Config (Click to expand π½)
Property | Description | Values | Required |
---|---|---|---|
EarlyConnection |
Enable Early Connection of the Players | true = Yesfalse = No (Wait until fully connected) |
- |
IgnoreTheseDisconnectReasons |
Ignore specified disconnect reasons (see disconnect_reasons.json ) |
Comma-separated codes (e.g. 1,54,55 )"" = Disable |
- |
DisableServerHibernate |
Disable server hibernation when empty | true = Yes (Recommended)false = No |
- |
PickRandomSounds |
Pick random sounds instead of sequential | true = Randomfalse = Sequential |
- |
RemoveDefaultDisconnect |
Remove default disconnect message/icon | 0 = No1 = Remove messages2 = Remove messages + icon |
- |
Default_Sounds |
Default sound state for new players | true = Onfalse = Off |
- |
Toggle_Sounds_CommandsInGame |
Commands to toggle sounds on/off | e.g. !sound,!sounds "" = Disable |
- |
Toggle_Sounds_Flags |
Flags/Groups/SteamIDs allowed to use sound toggle commands | e.g. SteamID: 7656...,7656... | Flag: @css/vips,@css/admins | Group: #css/vips,... "" = Everyone |
When Toggle_Sounds_CommandsInGame β "" |
Toggle_Sounds_Hide |
Hide confirmation chat after toggling sounds | true = Yesfalse = No |
When Toggle_Sounds_CommandsInGame β "" |
Default_Messages |
Default message state for new players | true = Onfalse = Off |
- |
Toggle_Messages_CommandsInGame |
Commands to toggle connect/disconnect messages on/off | e.g. !message,!messages "" = Disable |
- |
Toggle_Messages_Flags |
Flags/Groups/SteamIDs allowed to use message toggle commands | e.g. SteamID: 7656...,7656... | Flag: @css/vips,@css/admins | Group: #css/vips,... "" = Everyone |
When Toggle_Messages_CommandsInGame β "" |
Toggle_Messages_Hide |
Hide confirmation chat after toggling messages | true = Yesfalse = No |
When Toggle_Messages_CommandsInGame β "" |
DateFormat |
Format for dates in messages | e.g. MM-dd-yyyy , dd MM yyyy , MM/dd/yy |
- |
TimeFormat |
Format for times in messages | e.g. HH:mm , hh:mm a , HH:mm:ss |
- |
Locally Config (Click to expand π½)
Property | Description | Values | Required |
---|---|---|---|
Log_Locally_Enable |
Enable Local Logging | true -Yesfalse -No |
- |
Log_Locally_Connect_Format |
Connect Message Format | Template with placeholders"" -Disable |
Log_Locally_Enable=true |
Log_Locally_Disconnect_Format |
Disconnect Message Format | Template with placeholders"" -Disable |
Log_Locally_Enable=true |
Log_Locally_DateFormat |
Log Date Format | Examples: MM-dd-yyyy |
Log_Locally_Enable=true |
Log_Locally_TimeFormat |
Log Time Format | Examples: HH:mm:ss |
Log_Locally_Enable=true |
Log_Locally_AutoDeleteLogsMoreThanXdaysOld |
Auto-Delete Logs | Days to keep0 -Disable |
Log_Locally_Enable=true |
Cookies_Enable |
Enable Player Cookies | true -Yesfalse -No |
- |
Cookies_AutoRemovePlayerOlderThanXDays |
Auto-Delete Inactive Cookies | Days to keep0 -Disable |
Cookies_Enable=true |
Discord Config (Click to expand π½)
Property | Description | Values | Required |
---|---|---|---|
Discord_Connect_WebHook |
Connect Webhook URL | Example URL"" -Disable |
- |
Discord_Connect_Style |
Connect Message Style | 0 -Disable1 -Text only2 -Text+Link3 -+Profile Pic4 -+Separate DT5 -+Server IP |
Discord_Connect_WebHook β "" |
Discord_Connect_SideColor |
Connect Message Color | Hex code (e.g. 0cff00 ) |
Discord_Connect_Style=2/3/4/5 |
Discord_Connect_Format |
Connect Message Format | Template with placeholders | Discord_Connect_WebHook β "" |
Discord_Disconnect_WebHook |
Disconnect Webhook URL | Example URL"" -Disable |
- |
Discord_Disconnect_Style |
Disconnect Message Style | 0 -Disable1 -Text only2 -Text+Link3 -+Profile Pic4 -+Separate DT5 -+Server IP |
Discord_Disconnect_WebHook β "" |
Discord_Disconnect_SideColor |
Disconnect Message Color | Hex code (e.g. ff0000 ) |
Discord_Disconnect_Style=2/3/4/5 |
Discord_Disconnect_Format |
Disconnect Message Format | Template with placeholders | Discord_Disconnect_WebHook β "" |
Discord_DateFormat |
Date Format | Examples: MM-dd-yyyy |
Webhook active |
Discord_TimeFormat |
Time Format | Examples: HH:mm:ss |
Webhook active |
Discord_FooterImage |
Footer Image URL | Example image URL | Style=3/4/5 |
Discord_UsersWithNoAvatarImage |
Default Avatar URL | Example image URL | Style=5 |
MySQL Config (Click to expand π½)
Property | Description | Values | Required |
---|---|---|---|
MySql_Enable |
Enable MySQL | true -Yesfalse -No |
- |
MySql_Host |
Database Host | Example: 123.45.67.89 |
MySql_Enable=true |
MySql_Database |
Database Name | Example: test |
MySql_Enable=true |
MySql_Username |
Database User | Example: root |
MySql_Enable=true |
MySql_Password |
Database Password | Example: Password123 |
MySql_Enable=true |
MySql_Port |
Database Port | Default: 3306 |
MySql_Enable=true |
MySql_AutoRemovePlayerOlderThanXDays |
Auto-Delete Old Data | Days to keep0 -Disable |
MySql_Enable=true |
Utilities Config (Click to expand π½)
Property | Description | Values | Required |
---|---|---|---|
AutoUpdateSignatures |
Auto-Update Signatures | true -Yesfalse -No |
- |
AutoUpdateGeoLocation |
Auto-Update GeoLocation | true -Yesfalse -No |
- |
EnableDebug |
Debug Mode | true -Enablefalse -Disable |
- |
Connect Disconnect Config (Click to expand π½)
Color Tag | Example |
---|---|
{Yellow} |
{Yellow}Warning Message |
{Gold} |
{Gold}[VIP] Player |
{Silver} |
{Silver}Regular Member |
{Blue} |
{Blue}Information |
{DarkBlue} |
{DarkBlue}Moderator Tag |
{BlueGrey} |
{BlueGrey}System Alert |
{Magenta} |
{Magenta}Event Notification |
{LightRed} |
{LightRed}Urgent Alert |
{LightBlue} |
{LightBlue}Server Note |
{Olive} |
{Olive}Team Chat |
{Lime} |
{Lime}Success Message |
{Red} |
{Red}Error! |
{Purple} |
{Purple}Admin Command |
{Grey} |
{Grey}12:00:00 |
{Default} |
{Default}Normal Text |
{White} |
{White}Notification |
{Darkred} |
{Darkred}Banned! |
{Green} |
{Green}Connected |
{LightYellow} |
{LightYellow}Hint Text |
Key | Description | Values/Examples |
---|---|---|
"ANY" |
Applies to all non-specified players | "ANY": { ... } |
Flags : @css/admins |
Targets players with admin flags | Flags : @css/admins,@css/admin |
Group : #css/admins |
Targets player groups | Group : #css/admins,#css/admin |
SteamID : STEAM_0:1:122910632 |
Targets specific players by SteamID | SteamID : STEAM_0:1:122910632,U:1:245821265,245821265,76561198206086993 |
CONNECT_MESSAGE_CHAT |
Connect message template | "{Green}{PLAYERNAME} joined" |
CONNECT_SOUND_VOLUME |
Connect sound volume (1-100%) | "75%" |
CONNECT_SOUND |
Connect sound file paths | ["ui/item_acquired.vsnd"] |
DISCONNECT_MESSAGE_CHAT |
Disconnect message template | "{Red}{PLAYERNAME} left" |
DISCONNECT_SOUND_VOLUME |
Disconnect sound volume (1-100%) | "60%" |
DISCONNECT_SOUND |
Disconnect sound file paths | ["ui/item_drop.vsnd"] |
Placeholder | Description | Example Output |
---|---|---|
{NEXTLINE} |
Creates line break in messages | "Line1{NEXTLINE}Line2" |
{DATE} |
Current date (from main config format) | 12-31-2023 |
{TIME} |
Current time (from main config format) | 23:59:59 |
{PLAYERNAME} |
Player's display name | ProPlayer123 |
{STEAMID} |
SteamID | STEAM_0:1:122910632 |
{STEAMID3} |
SteamID3 | [U:1:245821265] |
{STEAMID32} |
SteamID32 | 245821265 |
{STEAMID64} |
SteamID64 | 76561198206086993 |
{IP} |
Player's IP address | 123.45.67.89 |
{CONTINENT} |
Player's continent | Asia |
{LONGCOUNTRY} |
Full country name | United Arab Emirates |
{SHORTCOUNTRY} |
Country code | AE |
{CITY} |
City name | Abu Dhabi |
{REASON} |
Disconnect reason from disconnect_reasons.json |
- |
π View Version History (Click to expand π½)
- Fix Some Bugs
- Fix Toggles
- Fix MySql_AutoRemovePlayerOlderThanXDays = 0
- Cookies_AutoRemovePlayerOlderThanXDays = 0
- Removed DisableLoopConnections
- Added Console css_ ! Commands To Toggle_Messages_CommandsInGame
- Added Console css_ ! Commands To Toggle_Sounds_CommandsInGame
- Added IgnoreTheseDisconnectReasons
- Added Toggle_Messages_Hide
- Added Toggle_Sounds_Hide
- Removed CompatibilityWithCS2Fixes On By Default
- Rework On Players Permissions
- Fix
connect_disconnect_config.json
When Player Have Flag Not Getting His Disconnect (Message/Sounds/Vol) - Fix Default Of
CONNECT_SOUND_VOLUME
/DISCONNECT_SOUND_VOLUME
Value If Not Found Now Its100%
If Not Found
- Added CompatibilityWithCS2Fixes
- Fix Error 'CounterStrikeSharp.API.Core.CCSPlayerController' was not present in the dictionary
- Reworked plugin architecture for better stability
- Fixed connection-related lag spikes
- Added comprehensive config descriptions
- Added
EarlyConnection
(early player initialization) - Added
DisableServerHibernate
(hibernation control) - Added
PickRandomSounds
(random sound selection) - Added
RemoveDefaultDisconnect
(message+icon removal) - Added permission systems for sound/message toggles
- Added cookie-based player data storage
- Added MySQL support with auto-cleanup
- Added automatic signature/geo updates
- Added continent tracking (
{CONTINENT}
placeholder) - Added separate Discord disconnect webhook/style
- Added sound volume controls
- Added custom disconnect reasons file
- Added multi-sound support with random selection
- Added proper sound precaching system
- Added debug mode toggle
- Added chat message customization
- Fixed killfeed icon removal
- Added
DisableLoopConnections
anti-spam feature - Added
RemoveDefaultDisconnect
message control - Fixed various minor issues
- Added console messages for connect/disconnect events
- Added command permission warnings
- Added validation messages for SteamID/IP
- Added geographic unknown state messages
- Added cookie auto-cleanup via
RemovePlayerCookieOlderThanXDays
- Fixed in-game sound toggle commands
- Improved cookie storage path handling
- Added connect/disconnect message templates to localization
- Added
{REASON}
placeholder for disconnect messages
- Fixed log auto-deletion system
- Added separate connect/disconnect message formats
- Added sound toggle command system
- Fixed various stability issues
- Added webhook send modes (1/2/3)
- Added customizable message side colors
- Fixed Discord webhook lag issues
- Implemented log auto-deletion system
- Added server console logging
- Improved sound file management
- Fixed timestamp formatting sequence
- Improved Steam profile linking in Discord
- Added separate connect/disconnect formats
- Expanded placeholder support ({TIME}, {DATE}, SteamIDs)
- Fixed file write permission issues
- Improved async task handling
- Added detailed country/city tracking
- Implemented webhook logging system
- Added IP address logging
- Improved empty field handling
- Initial plugin release