mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-06 07:16:36 +00:00
Update Config.cs
This commit is contained in:
42
Config.cs
42
Config.cs
@@ -1,32 +1,56 @@
|
|||||||
using CounterStrikeSharp.API.Core;
|
using CounterStrikeSharp.API.Core;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace WeaponPaints
|
namespace WeaponPaints
|
||||||
{
|
{
|
||||||
|
public class Messages
|
||||||
|
{
|
||||||
|
[JsonPropertyName("WebsiteMessageCommand")]
|
||||||
|
public string WebsiteMessageCommand { get; set; } = "Visit {WEBSITE} where you can change skins.";
|
||||||
|
[JsonPropertyName("SynchronizeMessageCommand")]
|
||||||
|
public string SynchronizeMessageCommand { get; set; } = "Type !wp to synchronize chosen skins.";
|
||||||
|
[JsonPropertyName("KnifeMessageCommand")]
|
||||||
|
public string KnifeMessageCommand { get; set; } = "Type !knife to open knife menu.";
|
||||||
|
[JsonPropertyName("CooldownRefreshCommand")]
|
||||||
|
public string CooldownRefreshCommand { get; set; } = "You can't refresh weapon paints right now.";
|
||||||
|
[JsonPropertyName("SuccessRefreshCommand")]
|
||||||
|
public string SuccessRefreshCommand { get; set; } = "Refreshing weapon paints.";
|
||||||
|
[JsonPropertyName("ChosenKnifeMenu")]
|
||||||
|
public string ChosenKnifeMenu { get; set; } = "You have chosen {KNIFE} as your knife.";
|
||||||
|
[JsonPropertyName("KnifeMenuTitle")]
|
||||||
|
public string KnifeMenuTitle { get; set; } = "Knife Menu.";
|
||||||
|
}
|
||||||
|
|
||||||
public class WeaponPaintsConfig : BasePluginConfig
|
public class WeaponPaintsConfig : BasePluginConfig
|
||||||
{
|
{
|
||||||
public override int Version { get; set; } = 1;
|
public override int Version { get; set; } = 2;
|
||||||
|
|
||||||
[JsonPropertyName("DatabaseHost")]
|
[JsonPropertyName("DatabaseHost")]
|
||||||
public string DatabaseHost { get; set; } = "";
|
public string DatabaseHost { get; set; } = "localhost";
|
||||||
|
|
||||||
[JsonPropertyName("DatabasePort")]
|
[JsonPropertyName("DatabasePort")]
|
||||||
public int DatabasePort { get; set; } = 3306;
|
public int DatabasePort { get; set; } = 3306;
|
||||||
|
|
||||||
[JsonPropertyName("DatabaseUser")]
|
[JsonPropertyName("DatabaseUser")]
|
||||||
public string DatabaseUser { get; set; } = "";
|
public string DatabaseUser { get; set; } = "DBUSER";
|
||||||
|
|
||||||
[JsonPropertyName("DatabasePassword")]
|
[JsonPropertyName("DatabasePassword")]
|
||||||
public string DatabasePassword { get; set; } = "";
|
public string DatabasePassword { get; set; } = "DBPASSWORD";
|
||||||
|
|
||||||
[JsonPropertyName("DatabaseName")]
|
[JsonPropertyName("DatabaseName")]
|
||||||
public string DatabaseName { get; set; } = "";
|
public string DatabaseName { get; set; } = "DBDATABASE";
|
||||||
|
|
||||||
[JsonPropertyName("CmdRefreshCooldownSeconds")]
|
[JsonPropertyName("CmdRefreshCooldownSeconds")]
|
||||||
public int CmdRefreshCooldownSeconds { get; set; } = 60;
|
public int CmdRefreshCooldownSeconds { get; set; } = 60;
|
||||||
|
|
||||||
[JsonPropertyName("WebSite")]
|
[JsonPropertyName("Prefix")]
|
||||||
public string WebSite { get; set; } = "http://wp.example.com";
|
public string Prefix { get; set; } = "[WeaponPaints]";
|
||||||
|
|
||||||
|
[JsonPropertyName("Website")]
|
||||||
|
public string Website { get; set; } = "example.com/skins";
|
||||||
|
|
||||||
|
[JsonPropertyName("Messages")]
|
||||||
|
public Messages Messages { get; set; } = new Messages();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user