1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

allow prompt string to have an empty/default value

upgrade some project dependencies
don't try to run events on parsers
update top players rank distribution
This commit is contained in:
RaidMax
2020-02-17 10:05:31 -06:00
parent 89bee14216
commit 87987f885d
7 changed files with 30 additions and 16 deletions

View File

@ -1,5 +1,6 @@
using IW4MAdmin.Application.EventParsers;
using IW4MAdmin.Application.IO;
using IW4MAdmin.Application.Misc;
using IW4MAdmin.Application.RconParsers;
using SharedLibraryCore;
using SharedLibraryCore.Configuration;
@ -157,6 +158,12 @@ namespace IW4MAdmin
{
try
{
// we don't want to run the events on parser plugins
if (plugin is ScriptPlugin scriptPlugin && scriptPlugin.IsParser)
{
continue;
}
await plugin.OnEventAsync(E, this);
}
catch (AuthorizationException e)
@ -183,7 +190,7 @@ namespace IW4MAdmin
{
lastException = e;
if (E.Origin != null)
if (E.Origin != null && E.Type == GameEvent.EventType.Command)
{
E.Origin.Tell(_translationLookup["SERVER_ERROR_COMMAND_INGAME"]);
}