Add Faction Ranks

This commit is contained in:
hydrant
2018-09-23 21:10:42 +02:00
parent bba0f7206c
commit bac725f2dc
6 changed files with 72 additions and 18 deletions

View File

@@ -40,14 +40,14 @@ namespace reallife_gamemode.Server.Extensions
{
User u = client.GetUser();
if (u == null) return null;
return context.Factions.FirstOrDefault(f => f.Id == u.FactionId);
return u.GetFaction();
}
}
else
{
User u = client.GetUser();
if (u == null) return null;
return context.Factions.FirstOrDefault(f => f.Id == u.FactionId);
return u.GetFaction();
}
}
}