mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
refactor logging in pretty big overhaul
This commit is contained in:
@ -11,11 +11,9 @@ using SharedLibraryCore.Database.Models;
|
||||
using SharedLibraryCore.Interfaces;
|
||||
using SharedLibraryCore.Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ApplicationTests
|
||||
{
|
||||
@ -53,7 +51,7 @@ namespace ApplicationTests
|
||||
[Test]
|
||||
public async Task Test_GenericGuidClientIsKicked()
|
||||
{
|
||||
var plugin = new ScriptPlugin(Path.Join(PLUGIN_DIR, "SharedGUIDKick.js"), PLUGIN_DIR);
|
||||
var plugin = new ScriptPlugin(serviceProvider.GetRequiredService<ILogger>(), Path.Join(PLUGIN_DIR, "SharedGUIDKick.js"), PLUGIN_DIR);
|
||||
var server = serviceProvider.GetRequiredService<IW4MServer>();
|
||||
server.GameName = Server.Game.IW4;
|
||||
var client = ClientGenerators.CreateBasicClient(server, hasIp: false, clientState: EFClient.ClientState.Connecting);
|
||||
|
Reference in New Issue
Block a user