mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
- modified respawn, now the players need to respawn - added stealth command as hide, removed the team selection menu (from CSS discord) - removed silentmode - added discord webhook logging system (need to set in config -DiscordWebhook and edit Version to 4) in the future, need to add every color to replace thing and maybe need to remove those replace messages and add to sendwebhook but not yet.
38 lines
1009 B
C#
38 lines
1009 B
C#
using CounterStrikeSharp.API.Core;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace CS2_SimpleAdmin
|
|
{
|
|
public class CS2_SimpleAdminConfig : BasePluginConfig
|
|
{
|
|
public override int Version { get; set; } = 4;
|
|
|
|
[JsonPropertyName("DatabaseHost")]
|
|
public string DatabaseHost { get; set; } = "";
|
|
|
|
[JsonPropertyName("DatabasePort")]
|
|
public int DatabasePort { get; set; } = 3306;
|
|
|
|
[JsonPropertyName("DatabaseUser")]
|
|
public string DatabaseUser { get; set; } = "";
|
|
|
|
[JsonPropertyName("DatabasePassword")]
|
|
public string DatabasePassword { get; set; } = "";
|
|
|
|
[JsonPropertyName("DatabaseName")]
|
|
public string DatabaseName { get; set; } = "";
|
|
|
|
[JsonPropertyName("KickTime")]
|
|
public int KickTime { get; set; } = 5;
|
|
|
|
[JsonPropertyName("DisableDangerousCommands")]
|
|
public bool DisableDangerousCommands { get; set; } = true;
|
|
|
|
[JsonPropertyName("BanType")]
|
|
public int BanType { get; set; } = 1;
|
|
|
|
[JsonPropertyName("DiscordWebhook")]
|
|
public string DiscordWebhook { get; set; } = "";
|
|
|
|
}
|
|
} |