fix scheine zeigen

This commit is contained in:
hydrant
2020-04-18 21:41:14 +02:00
parent 5b9868ac34
commit 9f827b476d
4 changed files with 24 additions and 3 deletions

View File

@@ -1873,6 +1873,8 @@ namespace ReallifeGamemode.Server.Commands
User u = target.GetUser(dbContext);
FactionHelper.ResetPlayer(target, u, dbContext);
if (faction != 0)
{
u.FactionId = f.Id;
@@ -1939,6 +1941,8 @@ namespace ReallifeGamemode.Server.Commands
User u = target.GetUser(dbContext);
FactionHelper.ResetPlayer(target, u, dbContext);
u.FactionId = f.Id;
u.FactionRankId = dbContext.FactionRanks.
OrderByDescending(x => x.Order)