mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-29 00:20:24 -05:00
Moved from SQLITE to EntityFramework.
Lots of things are broken!
This commit is contained in:
@ -10,7 +10,7 @@ using System.Data;
|
||||
|
||||
namespace StatsPlugin
|
||||
{
|
||||
public class ChatDatabase : Database
|
||||
public class ChatDatabase : _Database
|
||||
{
|
||||
private string[] CommonWords = new string[] { "for",
|
||||
"with",
|
||||
|
@ -67,7 +67,7 @@ namespace StatsPlugin.Chat
|
||||
public HttpResponse GetPage(NameValueCollection querySet, IDictionary<string, string> headers)
|
||||
{
|
||||
int clientID = Convert.ToInt32(querySet["clientid"]);
|
||||
var client = Stats.ManagerInstance.GetClientDatabase().GetPlayer(clientID);
|
||||
var name = Stats.ManagerInstance.GetDatabase().GetClient(clientID).Name;
|
||||
|
||||
HttpResponse resp = new HttpResponse()
|
||||
{
|
||||
@ -78,7 +78,7 @@ namespace StatsPlugin.Chat
|
||||
ServerID = c.ServerID,
|
||||
Message = c.Message,
|
||||
TimeSent = c.TimeSent,
|
||||
ClientName = client.Name,
|
||||
ClientName = name,
|
||||
}),
|
||||
additionalHeaders = new Dictionary<string, string>()
|
||||
};
|
||||
|
Reference in New Issue
Block a user