Continued faction system

This commit is contained in:
hydrant
2018-09-22 16:48:03 +02:00
parent bac110258d
commit 0034f29b18
6 changed files with 75 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ using System.Text;
/**
* @overview Life of German Reallife - Client Extension (ClientExtension.cs)
* @author VegaZ, hydrant
* @author hydrant
* @copyright (c) 2008 - 2018 Life of German
*/
@@ -23,5 +23,10 @@ namespace reallife_gamemode.Server.Extensions
return dbContext.Users.FirstOrDefault(u => u.Name == client.Name);
}
}
public static Faction GetFaction(this Client client)
{
return client.GetUser()?.Faction ?? null;
}
}
}