1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 15:52:25 -05:00

added top player stats

fix for some commands returning multiple matches found when target not required
This commit is contained in:
RaidMax
2018-05-28 20:30:31 -05:00
parent 045260c648
commit ebda1984fa
137 changed files with 426 additions and 41 deletions

View File

@ -20,6 +20,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Text;
using IW4MAdmin.Application.API.Master;
using System.Reflection;
namespace IW4MAdmin.Application
{
@ -510,5 +511,7 @@ namespace IW4MAdmin.Application
{
OnEvent.Set();
}
public IList<Assembly> GetPluginAssemblies() => SharedLibraryCore.Plugins.PluginImporter.PluginAssemblies;
}
}

View File

@ -308,7 +308,7 @@ namespace IW4MAdmin
List<Player> matchingPlayers;
if (E.Target == null) // Find active player including quotes (multiple words)
if (E.Target == null && C.RequiresTarget) // Find active player including quotes (multiple words)
{
matchingPlayers = GetClientByName(E.Data.Trim());
if (matchingPlayers.Count > 1)
@ -333,7 +333,7 @@ namespace IW4MAdmin
}
}
if (E.Target == null) // Find active player as single word
if (E.Target == null && C.RequiresTarget) // Find active player as single word
{
matchingPlayers = GetClientByName(Args[0]);
if (matchingPlayers.Count > 1)