Home » cs2-connectionlogs – Log connections to discord and/or a dat

cs2-connectionlogs – Log connections to discord and/or a dat

Download / Go to latest repository

cs2-connectionlogs Version 0.4

Create a folder called ConnectionLogs inside your /plugins/ folder.

Use the compiled version: Drag the files from binReleasenet7.0publish inside of the ConnectionLogs folder except from CounterStrikeSharp.API.dll

Compile yourself: Run _compile.bat to compile the plugin, it will be placed in binReleasenet7.0publish folder.

Dependencies

Description

This plugin adds players to a database to track when they join with their ip.
It prints to discord through a webhook when a player join (with their ip) and leaves.
It has a command !connectedplayers that prints the 50 recent players that joined the server (only available if a databse is used)

Config

The config will automaticly be generated on first run and will be placed inside /counterstrikesharp/configs/plugins/ConnectionLogs.
Colors can be used in every key-value that is a string like so {White} or {Red} (this is case insensitive, thanks to k4ryuu for the idea), every color in the ChatColors class can be used.
Example:

{
  "ChatPrefix": "[CPH-{Darkred}GAMING{white}]",

  "SendMessageToDiscord": true,
  "DiscordWebhook": "https://discord.com/api/webhooks/",

  "StoreInDatabase": true,
  "DatabaseHost": "192.168.1.210",
  "DatabasePort": 3306,
  "DatabaseUser": "WidovV",
  "DatabasePassword": "MySuperSecretPassword",
  "DatabaseName": "test-connectionlogs"
}

Download / Go to latest repository

Leave a Reply

Your email address will not be published. Required fields are marked *