mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
- Fixed crashing on servers with a lot of players - Every command chat message respect player language for now css_lang or use https://github.com/aprox2/GeoLocationLanguageManagerPlugin to detect language related on player ip - Fixed css_respawn - Fixed css_vote player can't vote multiple times - Added TeamSwitchType to config, if set to 0 plugin always slay player on css_team command - Minor changes
20 lines
370 B
C#
20 lines
370 B
C#
using MySqlConnector;
|
|
|
|
namespace CS2_SimpleAdmin;
|
|
public class Database
|
|
{
|
|
private readonly string _dbConnectionString;
|
|
|
|
public Database(string dbConnectionString)
|
|
{
|
|
_dbConnectionString = dbConnectionString;
|
|
}
|
|
|
|
public MySqlConnection GetConnection()
|
|
{
|
|
var connection = new MySqlConnection(_dbConnectionString);
|
|
connection.Open();
|
|
return connection;
|
|
}
|
|
}
|