Continued faction system
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user