Add Faction Ranks

This commit is contained in:
Lennart Kampshoff
2018-09-23 21:10:42 +02:00
parent f91ef8960c
commit 73bb9b6fda
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();
}
}
}