mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
update stats plugin to IPluginV2
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Data.Models;
|
||||
using IW4MAdmin.Plugins.Stats.Config;
|
||||
using SharedLibraryCore;
|
||||
using SharedLibraryCore.Interfaces;
|
||||
@ -21,26 +22,26 @@ namespace Stats.Config
|
||||
public WeaponNameParserConfiguration[] WeaponNameParserConfigurations { get; set; } = {
|
||||
new()
|
||||
{
|
||||
Game = Server.Game.IW3,
|
||||
Game = Reference.Game.IW3,
|
||||
WeaponSuffix = "mp",
|
||||
Delimiters = new[] {'_'}
|
||||
},
|
||||
new()
|
||||
{
|
||||
Game = Server.Game.IW4,
|
||||
Game = Reference.Game.IW4,
|
||||
WeaponSuffix = "mp",
|
||||
Delimiters = new[] {'_'}
|
||||
},
|
||||
new()
|
||||
{
|
||||
Game = Server.Game.IW5,
|
||||
Game = Reference.Game.IW5,
|
||||
WeaponSuffix = "mp",
|
||||
WeaponPrefix = "iw5",
|
||||
Delimiters = new[] {'_'}
|
||||
},
|
||||
new()
|
||||
{
|
||||
Game = Server.Game.T6,
|
||||
Game = Reference.Game.T6,
|
||||
WeaponSuffix = "mp",
|
||||
Delimiters = new[] {'_', '+'}
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
using SharedLibraryCore;
|
||||
using Data.Models;
|
||||
|
||||
namespace Stats.Config
|
||||
{
|
||||
public class WeaponNameParserConfiguration
|
||||
{
|
||||
public Server.Game Game { get; set; }
|
||||
public Reference.Game Game { get; set; }
|
||||
public char[] Delimiters { get; set; }
|
||||
public string WeaponSuffix { get; set; }
|
||||
public string WeaponPrefix { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user