change over more parts to the new system

This commit is contained in:
2025-07-14 23:29:49 +02:00
parent 43f66370f3
commit 477dc4c297
5 changed files with 20 additions and 16 deletions
+6
View File
@@ -6,6 +6,12 @@ public static class PlayerExtensions
{
public static string GetExtendedClass(this Player player)
{
foreach (var classManagerConfig in CustomClasses.Instance.ClassManager.Configs.Where(classManagerConfig => player.CustomInfo == classManagerConfig.Value.FullCustomInfo &&
!classManagerConfig.Value.Name.IsEmpty()))
{
return classManagerConfig.Value.Name;
}
return "";
}
}