fraktionsname bei /mfr anzeigen ;)))
This commit is contained in:
@@ -2474,7 +2474,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
List<FactionRank> factionRanks = context.FactionRanks.ToList().FindAll(r => r.FactionId == f.Id).OrderByDescending(o => o.Order).ToList();
|
||||
List<FactionRank> factionRanks = context.FactionRanks.Where(r => r.FactionId == f.Id).OrderByDescending(o => o.Order).ToList();
|
||||
List<Rank> rankList = new List<Rank>();
|
||||
|
||||
factionRanks.ForEach(r =>
|
||||
@@ -2488,6 +2488,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
|
||||
FactionRankHelper helper = new FactionRankHelper
|
||||
{
|
||||
FactionName = f.Name,
|
||||
FactionId = f.Id,
|
||||
Ranks = rankList
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user