Continued faction rank system

This commit is contained in:
Lennart Kampshoff
2018-09-25 21:42:40 +02:00
parent f162f2323c
commit 6a2b010341
14 changed files with 130 additions and 33 deletions

View File

@@ -76,7 +76,7 @@ namespace reallife_gamemode.Server.Commands
using(var context = new DatabaseContext())
{
List<FactionRank> factionRanks = context.FactionRanks.ToList().FindAll(r => r.FactionId == f.Id);
List<FactionRank> factionRanks = context.FactionRanks.ToList().FindAll(r => r.FactionId == f.Id).OrderByDescending(o => o.Order).ToList();
string json = JsonConvert.SerializeObject(factionRanks, Formatting.None);
player.TriggerEvent("manageFactionRanks", json);
}