Fix ChatService.BroadcastFaction(string, List<int>)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using ReallifeGamemode.Server.Entities;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
using ReallifeGamemode.Server.Job;
|
||||
using ReallifeGamemode.Server.Models;
|
||||
using ReallifeGamemode.Server.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -105,9 +106,12 @@ namespace ReallifeGamemode.Server.Services
|
||||
job.GetUsersInJob().ForEach(c => ChatService.SendMessage(c, message));
|
||||
}
|
||||
|
||||
internal static void BroadcastFaction(string v, List<int> list)
|
||||
internal static void BroadcastFaction(string message, List<int> factionIds)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
using(var dbContext = new DatabaseContext())
|
||||
{
|
||||
BroadcastFaction(message, dbContext.Factions.Where(f => factionIds.Contains(f.Id)).ToList());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user