CSSPanel Support

This commit is contained in:
Sachin 2024-10-28 17:50:22 +05:30
parent d30ac80a36
commit f01beebea9
21 changed files with 762 additions and 214 deletions

View file

@ -22,6 +22,33 @@ using CS2_SimpleAdmin.Managers;
namespace CS2_SimpleAdmin;
public partial class CS2_SimpleAdmin
{
bool IsStringValid(string input)
{
if (!string.IsNullOrEmpty(input) && (string.IsNullOrEmpty(Config.ChatLog.ExcludeMessageContains) || !input.Any(c => Config.ChatLog.ExcludeMessageContains.Contains(c))) && !char.IsWhiteSpace(input.Last()))
{
return true;
}
return false;
}
static int CountLetters(string input)
{
int count = 0;
foreach (char c in input)
{
if (char.IsLetter(c))
{
count++;
}
}
return count;
}
}
internal static class Helper
{
private static readonly string AssemblyName = Assembly.GetExecutingAssembly().GetName().Name ?? "";