|
2 | 2 | using System.Text.Json; |
3 | 3 | using CounterStrikeSharp.API; |
4 | 4 | using CounterStrikeSharp.API.Core; |
5 | | -using System.Text.Json.Serialization; |
6 | 5 | using Microsoft.Extensions.Localization; |
7 | 6 | using CounterStrikeSharp.API.Modules.Commands; |
8 | 7 | using CounterStrikeSharp.API.Modules.Cvars; |
9 | 8 |
|
10 | 9 | namespace NeedSystem; |
11 | 10 |
|
12 | | -public class BaseConfigs : BasePluginConfig |
13 | | -{ |
14 | | - [JsonPropertyName("WebhookUrl")] |
15 | | - public string WebhookUrl { get; set; } = ""; |
16 | | - |
17 | | - [JsonPropertyName("IPandPORT")] |
18 | | - public string IPandPORT { get; set; } = "45.235.99.18:27025"; |
19 | | - |
20 | | - [JsonPropertyName("GetIPandPORTautomatic")] |
21 | | - public bool GetIPandPORTautomatic { get; set; } = true; |
22 | | - |
23 | | - [JsonPropertyName("UseHostname")] |
24 | | - public bool UseHostname { get; set; } = true; |
25 | | - |
26 | | - [JsonPropertyName("CustomDomain")] |
27 | | - public string CustomDomain { get; set; } = "https://crisisgamer.com/connect"; |
28 | | - |
29 | | - [JsonPropertyName("MentionRoleID")] |
30 | | - public string MentionRoleID { get; set; } = ""; |
31 | | - |
32 | | - [JsonPropertyName("MentionMessage")] |
33 | | - public bool MentionMessage { get; set; } = true; |
34 | | - |
35 | | - [JsonPropertyName("MaxServerPlayers")] |
36 | | - public int MaxServerPlayers { get; set; } = 12; |
37 | | - |
38 | | - [JsonPropertyName("GetMaxServerPlayers")] |
39 | | - public bool GetMaxServerPlayers { get; set; } = true; |
40 | | - |
41 | | - [JsonPropertyName("MinPlayers")] |
42 | | - public int MinPlayers { get; set; } = 10; |
43 | | - |
44 | | - [JsonPropertyName("CommandCooldownSeconds")] |
45 | | - public int CommandCooldownSeconds { get; set; } = 120; |
46 | | - |
47 | | - [JsonPropertyName("Command")] |
48 | | - public List<string> Command { get; set; } = new List<string> { "css_need", ".need" }; |
49 | | - |
50 | | - [JsonPropertyName("EmbedImage")] |
51 | | - public bool EmbedImage { get; set; } = true; |
52 | | - |
53 | | - [JsonPropertyName("EmbedColor")] |
54 | | - public string EmbedColor { get; set; } = "#ffb800"; |
55 | | - |
56 | | - [JsonPropertyName("ImagesURL")] |
57 | | - public string ImagesURL { get; set; } = "https://imagenes.redage.es/CS2/{map}.png"; |
58 | | - |
59 | | - [JsonPropertyName("PlayerNameList")] |
60 | | - public bool PlayerNameList { get; set; } = true; |
61 | | - |
62 | | - [JsonPropertyName("EmbedFooter")] |
63 | | - public bool EmbedFooter { get; set; } = true; |
64 | | - |
65 | | - [JsonPropertyName("EmbedFooterImage")] |
66 | | - public string EmbedFooterImage { get; set; } = "https://avatars.githubusercontent.com/u/61034981?v=4"; |
67 | | - |
68 | | - [JsonPropertyName("EmbedAuthor")] |
69 | | - public bool EmbedAuthor { get; set; } = true; |
70 | | - |
71 | | - [JsonPropertyName("EmbedAuthorURL")] |
72 | | - public string EmbedAuthorURL { get; set; } = "https://lucauy.dev"; |
73 | | - |
74 | | - [JsonPropertyName("EmbedAuthorImage")] |
75 | | - public string EmbedAuthorImage { get; set; } = "https://avatars.githubusercontent.com/u/61034981?v=4"; |
76 | | - |
77 | | - [JsonPropertyName("EmbedThumbnail")] |
78 | | - public bool EmbedThumbnail { get; set; } = true; |
79 | | - |
80 | | - [JsonPropertyName("EmbedThumbnailImage")] |
81 | | - public string EmbedThumbnailImage { get; set; } = "https://avatars.githubusercontent.com/u/61034981?v=4"; |
82 | | - |
83 | | -} |
84 | | - |
85 | 11 | public class NeedSystemBase : BasePlugin, IPluginConfig<BaseConfigs> |
86 | 12 | { |
87 | 13 | private string _currentMap = ""; |
88 | 14 | private DateTime _lastCommandTime = DateTime.MinValue; |
89 | 15 | private Translator _translator; |
90 | 16 |
|
91 | 17 | public override string ModuleName => "NeedSystem"; |
92 | | - public override string ModuleVersion => "1.1.3"; |
| 18 | + public override string ModuleVersion => "1.1.4"; |
93 | 19 | public override string ModuleAuthor => "luca.uy"; |
94 | 20 | public override string ModuleDescription => "Allows players to send a message to discord requesting players."; |
95 | 21 |
|
|
0 commit comments